dkast/biztro
关于
Biztro (QR Menu Micro-SaaS)
网站与应用开发可以做什么
- Digital menu builder — create menu items, categories, variants, prices, images, allergens and one active public menu per organization.
- Visual menu editor — compose and preview mobile-first public menus with editable font and color themes.
- AI menu import — upload a PDF or image menu, extract products with confidence/review metadata, edit the generated rows, then save products or generate a complete draft menu with AI-selected design settings.
- CSV import/export — import products with Spanish or English column aliases and export catalog rows by product variant.
实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Biztro
[!NOTE] This project is in beta and under active development.
Biztro helps restaurants create and publish digital menus and manage day-to-day sales. It combines a visual menu editor, public menus, AI-assisted menu tools, multilingual content, media management, subscriptions and restaurant operations.
Product capabilities
- Digital menu builder — create menu items, categories, variants, prices, images, allergens and one active public menu per organization.
- Visual menu editor — compose and preview mobile-first public menus with editable font and color themes.
- AI menu import — upload a PDF or image menu, extract products with confidence/review metadata, edit the generated rows, then save products or generate a complete draft menu with AI-selected design settings.
- CSV import/export — import products with Spanish or English column aliases and export catalog rows by product variant.
- AI translations — translate active menu items, variants and categories to supported locales: English, French, German, Portuguese, Italian, Japanese and Chinese.
- Sales module — register quick sales from the active catalog, support dine-in/takeout/delivery order types, void sales with reasons, inspect sale details, filter and export transaction history to CSV, view revenue dashboards, best sellers and recent activity, and export daily closing reports to CSV.
- Order operations — send orders to a live kitchen board, collect payment for pending orders, and track customer balances and payments in receivables.
- Organization operations — manage locations, opening hours, services, member settings, billing and Cloudflare R2-backed media assets.
- Public publishing — publish mobile-friendly menus at organization URLs/subdomains, with QR codes and supported menu translations.
Core stack
- Next.js 16 App Router + TypeScript
- React 19 with React Server Components preferred
- Tailwind CSS 4 + Shadcn UI + Radix UI primitives
- Prisma 7 with the LibSQL adapter; Turso for local/dev database access
- Upstash Redis and Realtime for order updates
- Better Auth for authentication and organization membership
- next-safe-action for server mutations
- Zod for schemas and validation
- nuqs for URL query state
- TanStack Query/Table/Virtual for client data workflows
- Vercel AI SDK through AI Gateway for AI extraction, visual analysis and translations
- Cloudflare R2/S3-compatible storage for uploads
- Stripe + better-auth Stripe plugin for subscriptions
- PostHog and Sentry for analytics, monitoring and logging
Useful files
package.json— scripts and dependency listsrc/env.mjs— environment schema and required variablessrc/app/config.ts— product limits and defaultssrc/flags.ts— feature flags, including simulated PDF AI importsprisma.config.ts— Prisma adapter configprisma/schema.prisma— application data model, including sales and translationsdocs/kitchen-display.md— kitchen queue and payment timing behaviordocs/deployment/subdomain-routing.md— Cloudflare + Vercel host-based subdomain deployment guide
Quick start
Use Bun and Node.js 24 for local development. The local database command also requires the Turso CLI.
- Install dependencies
bun install
- Configure environment variables
Create a .env file at the project root, or export variables in your shell.
Configure the variables validated by src/env.mjs before starting the app:
- Database and realtime:
TURSO_DATABASE_URL,TURSO_AUTH_TOKEN,UPSTASH_REDIS_REST_URL,UPSTASH_REDIS_REST_TOKEN - Authentication:
BETTER_AUTH_URL,AUTH_GOOGLE_ID,AUTH_GOOGLE_SECRET; production also requiresBETTER_AUTH_SECRETandAUTH_SECRET - Media and email:
R2_ACCOUNT_ID,R2_ACCESS_KEY_ID,R2_SECRET_KEY_ID,R2_BUCKET_NAME,R2_CUSTOM_DOMAIN,RESEND_API_KEY - Billing and analytics:
STRIPE_SECRET_KEY,STRIPE_WEBHOOK_SECRET,NEXT_PUBLIC_STRIPE_PRICE_PRO_MONTHLY,NEXT_PUBLIC_STRIPE_PRICE_PRO_YEARLY,NEXT_PUBLIC_POSTHOG_KEY AI_GATEWAY_API_KEYis optional for startup; real AI imports and translations require it.
The local Turso server started below backs local.db. Set the runtime
TURSO_DATABASE_URL to the local server's URL and TURSO_AUTH_TOKEN to a
nonempty value. Prisma CLI uses LOCAL_DATABASE_URL (defaulting to
file:./local.db), separate from the application's runtime connection.
- Generate Prisma client
Lifecycle scripts run prisma generate automatically, but you can run it
manually when needed:
bun run predev
# or
bunx prisma generate
- Start the local database
bun run db:dev
This starts a local Turso development database backed by local.db.
- Apply migrations to the local database
Make sure LOCAL_DATABASE_URL points to the local database, then run:
bun run prisma:migrate
- Start the development server
bun run dev
Common scripts
bun run dev— start the Next.js dev serverbun run build— build for productionbun run start— start the production serverbun run lint— run Oxlintbun run lint:fix— run Oxlint fixesbun run typecheck— run TypeScript type checkingbun run test— run Vitest testsbun run format— format source files with Prettierbun run prisma:migrate— apply deployed Prisma migrationsbun run db:dev— start the local Turso databasebun run email— run React Email dev toolingbun run stripe:listen— forward Stripe webhooks to the local auth webhook
Feature flags
FLAGS_ENABLE_SUBSCRIPTIONS=1enables subscription-related UI and flows.FLAGS_SIMULATE_PDF_AI=1uses AI SDK mock responses for menu import during development/testing. Unset or any other value uses real AI.
Real AI menu import and visual generation require AI_GATEWAY_API_KEY. Menu
translations require it regardless of the simulation flag.
For contributor guidance and less frequently needed compatibility or performance
notes, see AGENTS.md and docs/development-notes.md.
探索相关项目
加载中…