Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Finance App For Personal Trainers
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Sessions, packages, monthly bills and studio rent for personal trainers, counted from Google Calendar.
src/app.js holds all the logic and screens. Each adapter only answers "where is the data" and "how do I read the calendar". Change the app once and both versions get it.
Then ask Claude to republish that file to the existing Trainer Tally link. Data paths never change, so everyone's data carries over.
About an hour of clicking, in this order.查看完整 README ↗Sessions, packages, monthly bills and studio rent for personal trainers, counted from Google Calendar.
One codebase, two homes:
| claude.ai version (today) | Hosted version (launch) | |
|---|---|---|
| Runs in | a Claude artifact | your own domain on Vercel |
| Sign-in | the viewer's Claude account | Continue with Google |
| Calendar | the viewer's Claude Google Calendar connector | Google Calendar API (read-only) |
| Data | artifact database, private per viewer | Supabase, private per trainer (row-level security) |
| Built from | src/app.js + src/adapter-claude.js | src/app.js + src/adapter-hosted.js |
src/app.js holds all the logic and screens. Each adapter only answers "where is the data" and "how do I read the calendar". Change the app once and both versions get it.
src/
app.js engine + UI (shared)
styles.css design (shared; cream light + dark)
shell.html page frame (shared)
adapter-claude.js claude.ai storage + calendar
adapter-hosted.js Supabase storage + /api/calendar
api/
calendar.js Google Calendar proxy (read-only)
auth/store-token.js keeps the Google refresh token server-side
billing/*.js Stripe checkout, portal, webhook
supabase/schema.sql tables + row-level security
scripts/build-artifact.mjs builds the single-file claude.ai page
public/privacy.html privacy policy draft (needed for Google review)
npm run build:artifact # writes dist-artifact/index.html
Then ask Claude to republish that file to the existing Trainer Tally link. Data paths never change, so everyone's data carries over.
About an hour of clicking, in this order.
supabase/schema.sql → Run.https://YOUR-DOMAIN/privacy.html). Scopes: add .../auth/calendar.readonly. Under Test users, add Tatjana and anyone else testing (up to 100).https://YOUR-PROJECT.supabase.co/auth/v1/callbackhttps://YOUR-DOMAIN, and add http://localhost:3000 for local testing..env.example.APP_URL to it.Do all of this in a sandbox first, then repeat in live mode.
price_...).STRIPE_SECRET_KEY (never paste it into chat or commit it).https://YOUR-DOMAIN/api/billing/webhook, events:
checkout.session.completed, customer.subscription.created, customer.subscription.updated, customer.subscription.deleted, customer.subscription.paused, customer.subscription.resumed, invoice.paid, invoice.payment_failed.
Copy the signing secret into STRIPE_WEBHOOK_SECRET.STRIPE_AUTOMATIC_TAX=true (Massachusetts taxes SaaS; check with your accountant).VITE_BILLING_ENABLED=true. When the trial should start counting, set REQUIRE_SUBSCRIPTION=true; new sign-ups get TRIAL_DAYS free.How access works: the webhook re-reads each subscription from Stripe and stores access_until (end of the paid period + 2 days). active, trialing and past_due (while Stripe retries the card) keep the app unlocked; canceled, unpaid and expired checkouts lock it once access_until passes. A subscriber who taps Subscribe again is sent to the portal, not a second subscription.
Test cards: 4242 4242 4242 4242 succeeds, 4000 0000 0000 0341 fails on renewal. Any future date and any CVC.
While the consent screen is in Testing, only listed test users can sign in. To open it to everyone, click Publish app and submit for verification. calendar.readonly is a sensitive scope: Google asks for the privacy policy, a short screen recording of the sign-in and how calendar data is used, and domain verification. Typical turnaround is a few weeks. No paid security audit is needed for this scope.
/studio.html)For studio owners who rent space to trainers. Run supabase/studio.sql once after schema.sql.
/?join=CODE). The trainer signs in to Trainer Tally, is linked to their row, and sees the same statement under Billing. Links are created only by /api/studio/join; row-level security lets a linked trainer read only their own row.In the claude.ai version: Settings → Download backup (.json). In the hosted version, after sign-in: first setup screen → Restore from a backup (or Settings → Restore a backup).
npm install
npx vercel link # once
npx vercel env pull .env.local
npm run dev # app + /api on http://localhost:3000
supabase/automation.sql adds synced events (calendar_events), the email outbox, client links, and an hourly job./api/cron/hourly. For each trainer it re-syncs the calendar (35 days back to 70 ahead; full history the first time) and queues anything due, in the trainer's time zone:
RESEND_API_KEY and MAIL_FROM are set. Until then they wait in the app under Settings → Automatic messages./s/<token> shows a client their sessions left and upcoming dates (no prices). Created and turned off from the client sheet.supabase/signoff.sql. Linked trainers see the studio's statement next to their own count of studio sessions and tap Confirm or Dispute (with a note). The studio sees only the answer, the trainer's count and the note; a confirmed month is locked until the studio reopens it. Sessions titled with a no-rent word ("Sarah home", "Mike - online") count as sessions but owe no rent, on both sides.
While recording a session, tap 🎙 Say it, say what the client did ("goblet squat ten at thirty-five", "same again", "three sets of eight at 135"), and tap again. /api/voice turns it into sets; they show up as a card to check, and nothing is saved until you tap Save. A set number is used only if you say one; otherwise each set goes into the next open set for that exercise. With no exercise named, it means the last one you logged.
ANTHROPIC_API_KEY (the same key as the Programs assistant).OPENAI_API_KEY set, the server transcribes the clip with gpt-4o-mini-transcribe, primed with today's exercise names. Without it, the browser's own speech recognition is used (free; Chrome and Safari).