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/).