βοΈ Click the image to visit the live site. The preview auto-refreshes to match your latest deployment.
Med-Varta is a real-time healthcare coordination platform designed to improve communication between medical professionals, hospitals, and healthcare systems.
The platform enables patient tracking, case management, facility coordination, and real-time system updates using a scalable microservices architecture.
It is built with Next.js, TypeScript, Prisma, and WebSockets to ensure high performance and real-time synchronization.
- Register and manage patient records
- Track patient details and medical information
- Centralized patient database
- Create and manage medical cases
- Track case status and updates
- Assign cases to healthcare facilities
- WebSocket-based communication
- Instant updates across the system
- Live event notifications
- Manage hospitals and medical facilities
- Assign cases to facilities
- Facility-based analytics
- Powered by Clerk
- Role-based access control
- Secure session handling
- Real-time statistics
- Healthcare activity insights
- Case monitoring dashboard
Med-Varta follows a modular microservices architecture for scalability and performance.
Client (Next.js UI)
β
βΌ
API Layer (Next.js API Routes)
β
βΌ
Service Layer
βββ Realtime Service
βββ Priority Gateway
βββ Compression Service
β
βΌ
Database (Prisma ORM)
Handles WebSocket communication for live system updates.
Manages request prioritization to ensure important healthcare operations are processed first.
Optimizes data transfer between services to reduce bandwidth and improve speed.
- Next.js 14
- React
- TypeScript
- Tailwind CSS
- shadcn/ui
- Next.js API Routes
- Node.js
- WebSockets
- Prisma ORM
- SQLite / relational database
- Clerk Authentication
- Bun
- ESLint
- PostCSS
Med-Varta
β
βββ src
β βββ app
β β βββ api
β β β βββ auth
β β β βββ patients
β β β βββ cases
β β β βββ facilities
β β β βββ dashboard
β β β
β β βββ sign-in
β β βββ sign-up
β β
β βββ components
β β βββ ui
β β
β βββ hooks
β βββ lib
β
βββ mini-services
β βββ realtime-service
β βββ priority-gateway
β βββ compression-service
β
βββ prisma
βββ public
βββ db
git clone https://github.com/Sadiqueahmed/Med-Varta-.git
cd Med-VartaUsing bun
bun installor using npm
npm installCreate a .env file
DATABASE_URL=
CLERK_SECRET_KEY=
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=
npx prisma generate
npx prisma db pushbun run devor
npm run devApplication will start on
http://localhost:3000
/api/auth/me
/api/patients
/api/cases
/api/cases/:id
/api/facilities
/api/dashboard/stats
/api/users
/api/sync
/api/webhooks/clerk
Example implementation available in:
examples/websocket
Includes:
- WebSocket client
- WebSocket server
- AI assisted diagnosis suggestions
- Medical record encryption
- Telemedicine video consultation
- Mobile application support
- Advanced analytics dashboard
Contributions are welcome.
-
Fork the repository
-
Create a feature branch
git checkout -b feature/new-feature- Commit changes
git commit -m "Add new feature"- Push to branch
git push origin feature/new-feature- Open a Pull Request
This project is licensed under the MIT License.
Sadique Ahmed