
The Challenge
One of the primary challenges in developing ClickFarma was addressing the operational dependency on stable internet connections. Many pharmacies operate in areas where connectivity is inconsistent, leading to frequent service interruptions during peak hours.
Traditional cloud-based POS systems often fail entirely when offline, preventing cashiers from completing sales transactions. This results in lost revenue, customer dissatisfaction, and manual workarounds that introduce data inaccuracies.
Another major challenge was maintaining accurate inventory records while operating offline. Sales, stock adjustments, and returns needed to be recorded locally and later synchronized without creating duplicate or conflicting data entries.
Performance was also a critical concern. The system had to remain fast and responsive on lower-spec devices commonly used in small to medium-sized pharmacies, even while handling large volumes of transactional data.
Finally, the platform needed to be scalable and secure. As pharmacies grow into multi-outlet operations, the system must support centralized reporting, role-based access control, and reliable data synchronization across multiple locations without compromising data integrity.
The Solution
We developed an offline-first POS system using Next.js and IndexedDB (Dexie) to store transactional data locally. A Go-based backend with PostgreSQL handles synchronization, reporting, and multi-outlet management once the connection is restored.
Tech Stack
Key Results
- POS remains fully operational during internet outages
- Faster transaction processing with local-first data access
- Improved reliability for daily pharmacy operations
- Scalable architecture ready for multi-outlet pharmacies
Project Gallery





