Lalabase
Tickets, Doku, Zeiterfassung und Kundengespräche an einem Ort, durchsuchbar per KI. Für Softwarefirmen mit Kundenprojekten. Open Source: auf deinem eigenen Server oder in unserer Cloud in Deutschland.
翻译准备中
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证AI Nail Salon Receptionist SaaS
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
A multi-tenant platform for nail salons: AI receptionist, online booking, customer CRM,
and (coming) Vietnamese ⇄ English interpreter, automations, and AI marketing.
web/ has its own package-lock.json and is built standalone (Vercel root directory =
web). client/ and server/ are npm workspaces of the root.
Run in the SQL editor, in order:
1. supabase/schema.sql
2. supabase/migrations/0001_multi_tenant_salons.sql
3. supabase/migrations/0002_receptionist_and_booking.sql
4. `supabase/migrations/0003_查看完整 README ↗A multi-tenant platform for nail salons: AI receptionist, online booking, customer CRM, and (coming) Vietnamese ⇄ English interpreter, automations, and AI marketing.
Docs: docs/AUDIT.md · docs/ARCHITECTURE.md ·
docs/MIGRATION_PLAN.md
.
├── web/ Next.js 15 (App Router) SaaS dashboard ← Phase 1, the future of the product
│ ├── app/
│ │ ├── (auth)/ login, signup, forgot-password
│ │ ├── app/[slug]/ dashboard: appointments, customers, interpreter, automations, marketing, billing, services, staff, inbox, receptionist, gallery, settings
│ │ ├── s/[slug]/ public storefront, /book, /book/[id], /chat (iframe embed), /review
│ │ └── api/ /api/chat, /api/salons/[slug]/availability, /api/interpreter/*, /api/cron/{automations,publish}, /api/webhooks/stripe
│ ├── actions/ server actions (zod-validated; dashboard ones are RLS-scoped)
│ ├── components/ ui/, forms/, app/ (dashboard shell), storefront/, booking/, chat/
│ └── lib/ supabase clients, availability engine, booking, ai/ (providers + receptionist)
├── client/ Vite + React storefront, booking page, AI chat widget, legacy admin (kept)
├── server/ Express API: /api/chat, /api/bookings, /api/salon, /api/admin (tenant-aware)
├── supabase/
│ ├── schema.sql base schema (single-salon v1)
│ ├── migrations/0001_multi_tenant_salons.sql multi-tenant upgrade (run after schema.sql)
│ ├── seed.sql demo data for the "nail-bar" salon
│ └── dedupe_and_harden.sql legacy one-off cleanup (superseded by 0001)
├── scripts/ping.mjs keep-alive for the Render-hosted API
└── docs/ audit, architecture, migration plan
web/ has its own package-lock.json and is built standalone (Vercel root directory =
web). client/ and server/ are npm workspaces of the root.
Run in the SQL editor, in order:
supabase/schema.sqlsupabase/migrations/0001_multi_tenant_salons.sqlsupabase/migrations/0002_receptionist_and_booking.sqlsupabase/migrations/0003_invites_and_media.sql (team invites, gallery, salon-media storage bucket)supabase/migrations/0004_interpreter.sql (Bee Interpreter sessions + quick phrases)supabase/migrations/0005_automations.sql (automation rules, job queue, message log)supabase/migrations/0006_marketing.sql (campaigns, assets, scheduled posts, Meta connection)supabase/migrations/0007_billing_and_hardening.sql (Stripe subscriptions, audit log, custom domains, usage)supabase/migrations/0008_delivery_and_inbound.sql (delivery receipts, inbound SMS, OAuth state)supabase/seed.sql (optional demo salon nail-bar)Upgrading an existing install: run steps 2–9 only. After changing the schema, regenerate
web/lib/database.types.ts (see web/scripts/gen-types.md). It creates the nail-bar salon from your
current salon_profile row, backfills salon_id everywhere, and turns every admin_users
row into an owner of that salon. It is idempotent.
Auth → URL configuration: add https://<your-web-domain>/auth/callback (and
http://localhost:3000/auth/callback for local dev) to the redirect allow-list.
web/.env.local (from web/.env.example)
NEXT_PUBLIC_SUPABASE_URL=...
NEXT_PUBLIC_SUPABASE_ANON_KEY=...
NEXT_PUBLIC_SITE_URL=http://localhost:3000
SUPABASE_SERVICE_ROLE_KEY=... # server-only: public booking + AI chat
AI_PROVIDER=gemini # or "anthropic"
GEMINI_API_KEY=...
GEMINI_MODEL=gemini-2.5-flash
# ANTHROPIC_API_KEY=... ANTHROPIC_MODEL=claude-opus-5
server/.env (from server/.env.example)
PORT=4000
CLIENT_ORIGIN=http://localhost:5173
SUPABASE_URL=...
SUPABASE_SERVICE_ROLE_KEY=...
GEMINI_API_KEY=...
GEMINI_MODEL=gemini-2.5-flash
DEFAULT_SALON_SLUG=nail-bar
client/.env (from client/.env.example)
VITE_API_BASE_URL=http://localhost:4000/api
VITE_SUPABASE_URL=...
VITE_SUPABASE_ANON_KEY=...
VITE_SALON_SLUG=nail-bar # optional; API falls back to DEFAULT_SALON_SLUG
npm install # client + server workspaces
npm run install:web # web/ (standalone lockfile)
npm run dev:web # Next.js dashboard → http://localhost:3000
npm run dev # Vite storefront (5173) + Express API (4000)
Checks: npm run typecheck, npm run lint, npm run build (client + server),
npm run build:web.
http://localhost:3000/signup, create an account (confirm the email if
confirmations are enabled in Supabase)./app/new — create your salon. The URL slug becomes /app/<slug>.Existing admins of the Fishers salon: sign in with the same email/password at
/login; you are already an owner of /app/nail-bar after the migration.
salons is the tenant; salon_members gives users owner / admin / staff roles.salon_id. Row Level Security policies allow access only when
is_salon_member(salon_id); the dashboard uses the anon key + the user's session, so the
database enforces isolation.x-salon-slug header, ?salon= query, or
DEFAULT_SALON_SLUG, and checks membership for /api/admin/*.Every salon gets, with no extra setup:
/s/<slug> — public page: menu, team, hours, map, FAQs, promotions, floating AI chat./s/<slug>/book — online booking with real availability (business hours, service
duration, technician conflicts, lead time, booking window, buffer). Requests land as
pending appointments in the dashboard./s/<slug>/chat — transparent iframe embed for any other website (snippet shown in
Dashboard → AI Receptionist).POST /api/chat — the receptionist rebuilds its knowledge from live data on every
message and can check availability, book (as source = 'ai'), and flag a human.
Gemini is the default provider; set AI_PROVIDER=anthropic to use Claude.salon-media bucket; storage policies only let salon members write under their own
salon folder.The Express API keeps serving the legacy Vite storefront until you cut the domain over to
/s/<slug>.
Dashboard → Interpreter opens a two-person console: the technician side (Vietnamese by
default) and the guest side (English by default). Tap a mic or type; the message is
translated for the other person, read aloud with the device's voice, and saved to the
conversation history. Quick phrases cover the usual salon flow with one tap and never
call the model. Speech recognition uses the browser's Web Speech API; browsers without it
record audio and transcribe it server-side with Gemini (needs GEMINI_API_KEY).
Translation goes through the same provider setting as the AI receptionist.
Dashboard → Automations lists six rules per salon, all off by default: reminders 24 h and 2 h before, review request after a completed visit, next-day follow-up for first-time guests, comeback nudge after 35 days, birthday treat 3 days early. Each rule has an English and a Vietnamese template (guests get the language on their profile), a channel (SMS via Twilio or email via Resend), timing, and a sending window in the salon timezone.
The worker at /api/cron/automations plans and sends messages; web/vercel.json runs it
every 15 minutes on Vercel Cron with CRON_SECRET. Any scheduler can call it with
Authorization: Bearer <CRON_SECRET>. Set MESSAGING_DRY_RUN=true to log instead of
send. Cancelled or rescheduled appointments drop their pending reminders automatically,
and guests who opt out only receive appointment reminders.
Dashboard → Marketing → New campaign: describe the goal, pick platforms, tone, languages,
a featured service and a promotion. The AI returns a content pack (captions, promo copy,
hashtags, SMS, email, image and video prompts) in English and Vietnamese. Edit, favorite,
copy, regenerate, and schedule posts. Connect a Facebook Page (Page ID + long-lived Page
token, optional Instagram business account) to auto-publish through the Meta Graph API;
otherwise scheduled posts surface as "ready to post" reminders. /api/cron/publish runs
every 15 minutes.
web/lib/billing/plans.ts. Stripe
Checkout and Customer Portal from Dashboard → Billing; the webhook at
/api/webhooks/stripe mirrors subscriptions into salon_subscriptions and keeps
salons.plan in sync. Set STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET,
STRIPE_PRICE_PRO, STRIPE_PRICE_PREMIUM.salons.custom_domain → add the domain to Vercel, the middleware
rewrites it to /s/<slug>).npm test (Vitest unit tests) and npm run test:e2e (Playwright smoke tests in
Chromium against a real build). Both run in GitHub Actions on every push and PR.Set the salon's Twilio number in Dashboard → AI Receptionist → Text messaging, then in the
Twilio console point that number's incoming-message webhook at
https://<your-domain>/api/webhooks/twilio/inbound. Guests who text you appear in the
Inbox flagged for a human, and staff reply by text from the conversation thread. Turn on
"Let the AI answer incoming texts" if you want the receptionist to reply first.
Delivery receipts: Twilio status callbacks are attached automatically; for email add a
Resend webhook pointing at /api/webhooks/resend and set RESEND_WEBHOOK_SECRET. Both
endpoints verify signatures and update the message log with delivered/failed status.
The AI can pick up your Twilio number, talk to the caller, quote prices and hours, check availability and create the booking — the same brain that runs the web chat, reached by voice. It is off until you turn it on.
https://<your-domain>/api/webhooks/twilio/voicehttps://<your-domain>/api/webhooks/twilio/voice/statusHow a call runs: Twilio transcribes each thing the caller says and posts it to
/api/webhooks/twilio/voice/turn; the receptionist answers and we hand Twilio the next
<Gather>. The CallSid is the conversation's session id, so every call becomes one
thread in the Inbox alongside web chats and texts, and call_logs records the outcome
(answered / booked / sent to a person), turn count and duration. The last ten calls show
on the AI Receptionist page.
Guardrails, because a phone call costs money and reaches a real customer:
Costs are Twilio's: roughly $1.15/month for the number plus per-minute voice and speech-recognition charges. Answered calls count toward the plan's monthly AI usage.
web, framework Next.js, env vars from web/.env.example.client (unchanged), plus VITE_SALON_SLUG.server, npm run build / npm start, add
DEFAULT_SALON_SLUG.server/ (never in web/ or client/).