Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗The MilcodeUni reference SaaS (weeks 6–8). A barber, salon or coach shares one link; customers pick a service and a free time; the owner manages everything in a dashboard.
Stack: Next.js (App Router, Server Actions) · Supabase (Postgres, Auth, Row Level Security) · Vercel
Built to the MilcodeUni capstone spec:
| Required | Where |
|---|---|
| Landing page with a clear value proposition | / |
| Service listing and detail | /b/<link> and /b/<link>/services/<id> |
| Sign-up, sign-in, sign-out | /login |
| Booking form with validation | /b/<link>: service → day → free time → name + WhatsApp |
| Loading, empty, success and error feedback | loading.tsx, empty states, form errors, /done |
| Protected dashboard | /dashboard (signed-out visitors go to /login) |
| Create and view bookings | New requests, today's schedule, next 7 days, "Add a booking" |
| Update a status | Confirm, Decline, Done, Cancel |
| Delete with confirmation | Services and cancelled/done bookings ("Sure? Yes, delete") |
| Owner-only data with RLS | supabase/migrations/0001_mawid.sql |
| Responsive navigation | Dashboard menu stacks on phones |
How double-booking is prevented, in two simple layers:
src/lib/bookings.ts).How privacy works: customers can send a booking (always pending) but can't read any.
The booking page only reads public_busy_times, a view with the taken times and no names or phones.
supabase/migrations/0001_mawid.sql, then supabase/seed.sql
(creates the demo business Atlas Barbershop)..env.example to .env.local and fill in the URL and anon key
(Project Settings → API).npm install
npm run dev
Open http://localhost:3000 → "Try the demo booking page".update public.businesses
set owner_id = (select id from auth.users where email = '[email protected]')
where slug = 'atlas-barbershop';
Your dashboard now shows Atlas Barbershop. (Or create your own business from the setup screen.)Tip: for quick testing, turn off "Confirm email" in Supabase → Authentication → Providers → Email.
supabase/migrations/0001_mawid.sql tables, view, RLS policies
supabase/seed.sql demo business: Atlas Barbershop
src/app/page.tsx landing page
src/app/b/[slug]/ booking page, service detail, form, server action, confirmation
src/app/login/ sign in / sign up / sign out (server actions)
src/app/dashboard/ today, add booking, services & hours, first-time setup
src/lib/bookings.ts server-side checks: hours, past times, overlaps
src/lib/slots.ts which start times to show (every 30 minutes)
src/lib/time.ts "today" and "now" in Morocco, date formatting
src/proxy.ts keeps the login fresh, protects /dashboard (from Supabase's Next.js guide)
Dates and times are stored as the shop's local time (day + start_time), so the
only timezone code is "what's today in Morocco" in src/lib/time.ts.