Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 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