Synaplan
Open-source AI platform for companies: self-hosted AI agents, GDPR-compliant chatbot widget, RAG knowledge base, WhatsApp and Outlook AI, MCP, multi-model routing. Docker, Kubernetes or hosted in Germ
Role-aware care and stay operations for appointments, queues, records, diagnostics, rooms, and guest service.
BusinessTypeScript · PLpgSQLGitHub @meetmehta0685Availability needs another checkOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗This repository is a hybrid Next.js 16 application with two modules in one codebase:
This README is the single source of truth for local setup and production deployment.
npm install
npm run db:start # starts local Supabase, applies supabase/migrations, loads supabase/seed.sql
npx supabase status # copy "API URL" and "anon key" into .env.local (see .env.example)
npm run dev
Open http://localhost:3000 and use a demo shortcut on the login page.
Every demo account uses the password password123:
| Role | |
|---|---|
| Patient | [email protected] |
| Doctor | [email protected] |
| Admin | [email protected] |
| Lab | [email protected] |
| Pharmacy | [email protected] |
| Hotel guest | [email protected] (reservations AR-2391, AR-4530, AR-7812, last name Rao) |
| Hotel staff | [email protected] |
npm run db:reset rebuilds the local database from the migrations and seed.
supabase/migrations/ holds the whole schema, RLS policies, and database functions.supabase/seed.sql creates the demo accounts and sample data. Use it for local or demo projects only.handle_new_user trigger enforces this.
Other roles are assigned by an admin, who changes profiles.role.set_token_number trigger and the get_booked_times, get_queue, and allocate_room functions.
The browser never computes them from partial data.npm run lint
npm run typecheck
npm run build
npx supabase link --project-ref <ref> and npx supabase db push.
Optionally run supabase/seed.sql in the SQL editor to get the demo accounts.NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY to that project's values.<domain>/callback as a redirect URL.Hospital module:
/patient/doctor/admin/lab/pharma/api/discharge/[appointmentId]Hospitality module:
//guest/staffproxy.ts.lib/supabase/middleware.ts using lib/auth/roles.ts./login.app/: pages, route groups, and API routescomponents/: shared UI and dashboard componentshooks/: custom hookslib/: Supabase clients, roles, validations, utilitiessupabase/: config, migrations, and demo seedtypes/: shared TypeScript types