Fri Jun 05 2026


Next.js
TypeScript
PostgreSQL
Prisma
TailwindCSS
PWA
Firebase
A modern, offline-first pharmacy management web application with real-time push notifications, a Point-of-Sale system, and role-based dashboards for Dispensers, Admins, and the Super Admin. Built with Next.js, TypeScript, PostgreSQL, and Prisma — installable as a PWA on any device.
Planet Health Care System is a full-stack pharmacy management platform built to help pharmacies run smoothly — from selling drugs at the counter to managing stock, suppliers, and staff — all from one place. It works without an internet connection, sends real-time notifications to the right people, and can be installed on any phone, tablet, or computer just like a native app.
Whether you are a pharmacist behind the counter, a pharmacy manager, or the business owner, Planet Health Care has a dedicated space built specifically for you.
Planet Health Care is designed around three types of users, each with their own dashboard and set of tools:
The Dispenser is the person who handles customers directly — receiving prescriptions, picking drugs off the shelf, and processing sales. Their dashboard is built around speed and simplicity.
What a Dispenser can do:
The Admin is the pharmacy manager — the person responsible for keeping the business running day to day. They have a broader set of tools compared to the Dispenser.
What an Admin can do:
The Super Admin has full control over the entire platform. This is the highest level of access — typically the pharmacy owner or the person who set up the system.
What the Super Admin can do:
Planet Health Care is built as an offline-first application. This means the app continues to work even when the internet goes down — which is common in many pharmacy settings. Sales can still be processed, prescriptions can still be viewed, and data is automatically synced back to the server the moment the connection returns. No data is lost.
Planet Health Care is a Progressive Web App (PWA). This means you can install it on your phone, tablet, or computer directly from the browser — no app store needed. Once installed, it opens like a native app, works offline, and feels fast and responsive on every screen size.
The system uses Firebase Cloud Messaging (FCM) to send instant push notifications to the right people at the right time. Examples include:
Notifications are role-based — meaning each person only receives alerts relevant to their job. Dispensers don't receive admin-level alerts, and vice versa.
The POS interface is fast, clean, and designed for real pharmacy workflows. The dispenser can search for drugs by name, adjust quantities, apply discounts, and complete a sale with just a few clicks. The cart state is preserved even if the page is accidentally refreshed.
Stock is tracked in batches — each batch has its own expiry date and quantity. When dispensing drugs, the system automatically prioritises the batch that expires soonest (FEFO), reducing the risk of dispensing expired medication and minimising wastage.
Frontend
Backend
PWA & Notifications
Deployment
Planet Health Care is built on a clean, layered architecture — from the database schema all the way up to the UI. Every feature follows a consistent pattern: Prisma schema → TypeScript types → API routes → Server Actions → Service layer → React Query hooks → Zod validation → UI components. This makes the codebase easy to maintain, extend, and hand off to another developer.
Visit the live application and explore it for yourself: