PharmacyNext — AI-Powered Smart Pharmacy Management System
PharmacyNext is a full-featured pharmacy Point of Sale (POS) and back-office system built with Next.js 15, React 19, TypeScript, MongoDB, and NextAuth.js. It combines fast checkout with inventory, procurement, expenses, customer tools, reporting, and optional OpenAI-based assistance—suitable for independent pharmacies and growing teams.
Live demo
Demo URL: https://pharmacy-next-sigma.vercel.app
Username: admin@pharmacy.com
Password: Admin123!
Core features
- Product search at POS — Find items quickly while selling.
- Barcode support — Scan or enter barcodes at checkout.
- Batch tracking — Sell from batches with expiry awareness.
- Line discounts — Per-line discount control on the sale.
- Multiple payment methods — Cash, card, mobile, credit, and other options as configured.
- Invoices and receipts — Generate professional sale documents.
- Keyboard shortcuts — Speed up common POS actions.
- Sales history — Browse past sales with filters.
- Export sales data — Excel and CSV export from history where available.
- Returns — Process returns against past sales and update stock.
- Cash drawer — Open and close shifts; paid in and paid out.
- Drawer history — Review cash drawer activity over time.
- Notifications — In-app notification center for alerts.
- Customer list — Create and manage customer records.
- Customer insights — Segments and value-style analytics.
- Refill reminders — Manage refill reminder workflows.
- Customer credit and payments — Where enabled, track credit and record payments.
- Communication log — Log customer communications where available.
- Products catalog — Maintain your product master data.
- Stock and inventory — Track quantities, batches, and movements.
- Stock alerts — Visibility for low or risky stock.
- Suppliers — Maintain supplier records.
- Purchase orders — Create, send, receive, and track POs.
- Bulk import — Import products or inventory where provided.
- Expenses — Record spending by category.
- Reports — Presets, date ranges, and exports (PDF, Excel, CSV).
- Analytics dashboard — KPIs, trends, payment mix, stock value, and related metrics.
- Role-based access — Separate admin and staff capabilities.
- User management — Admins manage staff accounts.
- Business settings — Tax, currency, receipts, and global preferences.
- User profile — Each user can manage their profile where allowed.
- Command palette — Jump to pages with Ctrl+K or Cmd+K (and sidebar search).
- Theme — Light, dark, and system appearance.
- PWA-ready — Web app manifest for installable experience on supported browsers.
AI features
AI features use your OpenAI API key or in-app AI settings where configured. Always follow local regulations and professional standards.
- Prescription processing — AI-assisted reading and structuring of prescription inputs.
- AI product search — Natural-language search to find products from the POS.
- Drug interaction checking — AI-assisted checks on the current cart; pharmacist review required.
- AI data assistant — Ask questions about your data in plain language.
- AI analytics — Dedicated AI analytics views in the application.
- Demand forecasting — Per-product or demand-style forecasting to support purchasing.
- Anomaly detection — Highlights unusual patterns for review.
- Reorder suggestions — AI-assisted reorder recommendations linked to procurement.
- Margin optimization — Suggestions to review pricing and margins where shown in the UI.
- Inventory prediction — Broader inventory and expiry-style signals in AI and dashboard areas.
- AI configuration — Admins configure API keys and feature toggles.
Technical stack
- Next.js 15 (App Router), React 19, TypeScript, Tailwind CSS
- MongoDB and Mongoose; REST-style routes under
app/api - Charts where used; exports via ExcelJS; PDF and print via browser and related libraries per page
- next-themes, cmdk (command palette), TanStack Query, Zod, and other utilities as listed in
package.json
Security and roles
- Session-based authentication and server-side API handlers
- Admin-only areas (for example users and AI config) enforced in the application
Business benefits
- Single system for counter sales, stock, purchasing, and expenses
- Exports for accounting; clearer visibility via dashboard and reports
- Optional AI for search, alerts, and analytics
Package includes
- Full source code
- Integrated HTML documentation:
public/docs/documentation.html (sidebar navigation), plus user and developer guides - Installation steps and environment variables (MongoDB, NextAuth, optional OpenAI)
- Mongoose models and API structure
Support duration and channels: as stated on your marketplace listing.
Requirements
- Node.js 18 or newer
- MongoDB (local or Atlas)
- Modern browser; OpenAI API access is optional but required for AI features
Ideal for
- Independent pharmacies and dispensaries
- Medical stores and small chains
- Teams needing POS, inventory, procurement, and reporting in one product
Updates
- Structured codebase with shared navigation in
lib/dashboard-nav.ts for sidebar and command palette - Ongoing dependency maintenance
Documentation and support
- Single-file documentation with sidebar: documentation.html
- Separate user-guide.html and developer-guide.html
- Support as described on your listing
Note: Self-hosted web application. Configure production URLs, secrets, and HTTPS. AI features depend on API availability and configuration. Comply with local pharmacy, privacy, and healthcare regulations.
Why PharmacyNext?
- Modern stack (Next.js 15, React 19) with a broad feature set beyond basic POS
- Optional AI that supports workflow without replacing pharmacist judgment or regulatory compliance
- Polished experience: themes, command palette, notifications, and exports
Deploy PharmacyNext to streamline sales, stock, purchasing, and reporting in one place.
Tags: pharmacy management, pharmacy POS, medical store, inventory, purchase orders, expenses, AI assistant, demand forecast, Next.js 15, React, MongoDB, TypeScript, full stack, reports, PWA