Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗POS + accounting system for a football-field operation: product sales, general expenses, stock receiving, credit sales ("เซ็น") with partial-payment debt tracking, cash↔bank transfers, a Void flow, and a monthly closing report (26th–25th accounting period) that allocates net profit 30/30/30/10 and emits a PDF.
Rebuilt from the original Google Apps Script + Sheets version onto: Next.js (App Router) · Supabase (Postgres, Storage) · Vercel.
No accounts/login — same trust model as the original (anyone who opens the app has full access; the original only gated destructive actions behind a shared "1234" prompt, which this drops in favor of just... not pretending to be security).
supabase/migrations/),
not application code — see the comments at the top of
20250101000003_functions.sql. RLS denies direct table writes from the
client; the RPC functions are the only way to mutate anything.src/lib/types/database.ts is hand-written to match the migrations. Every
Row/Insert/Update type must stay a fully inlined object literal —
see the comment in that file for why (a real, reproducible Supabase
TypeScript client bug where referencing a named interface, or even the
built-in Partial<T>, silently collapses .rpc()/.from() typing to
undefined/never). Regenerating with supabase gen types typescript
produces this same literal style, so that's always safe to run.supabase init +
supabase start for a local stack). Apply the migrations in
supabase/migrations/ in order — either supabase db push, or paste each
file's contents into the SQL Editor in order (0001 → 0005).cp .env.local.example .env.local and fill in the Supabase URL + keys
(Project Settings → API).npm installnpm run dev — http://localhost:3000See the header comment in scripts/migrate-from-sheets.ts for the Google
service-account setup, then:
npm run migrate
Run it against a staging/throwaway Supabase project first and spot-check totals against the original sheet before pointing it at production.
.env.local (except the GOOGLE_* ones — those are only for the one-off
migration script) in the Vercel project settings./api/reports/generate route needs the Node.js runtime (already set
via export const runtime = "nodejs") — it renders PDFs with
@react-pdf/renderer and uploads them to the private reports Storage
bucket using the service-role key.The original design (still in git history) had Supabase Auth + a profiles
table with staff/admin roles, gating Void and period-close to admins.
Dropped per a deliberate call to keep this a walk-up-and-use tool for a small
team. Re-adding it means: a profiles table + signup trigger, auth.uid()
checks back in the RPC functions, RLS policies scoped to authenticated
instead of anon, and a login page + route guard on the frontend.