Skip to content
stdevMacPublic

About

Open-source restaurant operating system: QR ordering, split bills, payments, AI waiter, fiscal invoicing. Self-host in one command.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Payverge

CI CodeQL License Latest release

Payverge is a self-hostable restaurant system with AI built into real operations. Guests scan a QR code, order, split the bill and pay. Staff run the floor, the kitchen display, reservations and delivery. Owners get an AI waiter for guests, an ops assistant for the shift and a director console that proposes changes they preview and apply. Payments go through Stripe, PayPal, MercadoPago or USDC on-chain, and Argentine venues can issue ARCA (AFIP) fiscal receipts.

It is a Go/Gin + PostgreSQL 18 backend and a Next.js 15 frontend, shipped as Docker images with a one-command installer.

To try it without installing anything, use the live demo: enter a seeded restaurant as the owner, as kitchen or waiter staff, or as a guest at a table, no sign-up. Anyone can see what you change there, and it all resets every night at 03:00 UTC. To run a public demo of your own, see docs/self-hosting/public-demo.md.

Screenshots

Captured from a local --demo install. The venues and their data are fictional. The AI screens show what an install with no model key shows. The staff AI screens are stamped to say no model is connected; the guest helper says so itself. How these were made and how to recapture them: docs/assets/screenshots/README.md.

Venue storefront with the venue name over a grill illustration and buttons to book, see the menu or call
Storefront. / is the venue page when one venue is primary.
Owner dashboard overview with takings today, open bills, orders and a daily briefing
Owner dashboard. Takings, open bills and the day's briefing.

Guest, on a phone:

Guest QR menu on a phone with dishes, allergen tags, an active offer and a cart bar
QR menu. Allergens, offers and the cart.
Guest cart with three dishes, the automatic discount and a Place Order button
Cart. Discounts apply before the order is sent.
Split bill panel offering split equally, pay for my items or a custom amount
Split the bill. Equal shares, by item, or a custom amount.
Payment options on the bill with the pay at counter tender
Payment choice. Pay at the counter works with no processor connected.
Thank-you receipt after paying at the cashier with the paid items and total
Receipt. Shown as soon as staff record the payment.

Staff and owner:

Kitchen screen with tickets waiting for approval and approved tickets with allergen tags
Kitchen. Approve guest tickets, then cook.
Tables list with status, covers, server and current bill for each table
Floor and tables. Live status and open bills.
Menu builder showing a category of dishes with prices and allergen tags
Menu editor. Two languages, allergens, offers.
Reservations screen with covers today, the next arrival and the booking list
Reservations. Covers, waitlist and arrivals.
Delivery configuration with cash on delivery, fee, minimum order and prep time
Delivery. Own zones and drivers.
Platform admin dashboard with businesses, users, payment volume and system health
Admin. Platform health, queues and workers.

AI, on an install without a model key:

Guest menu helper chat with no model connected: it says it is not an AI and answers from the menu
AI waiter, no model key. It becomes a menu helper that says it is not an AI.
AI waiter settings with the assistant name, priority mode and instructions, stamped as no model
AI waiter settings. Name, tone and guardrails.
Director console answering that it lacks the data, stamped as no model configured
Director console, no model key. It says what data it lacks instead of making up an answer.

Features

Area What you get
Guest ordering QR menus per table, multi-language guest UI (21 locales), allergen and dietary info, ordering from the table
Bills and payments Bill splitting (by item, equal shares, custom amounts), tips, receipts, Stripe / PayPal / MercadoPago plugins, USDC payments verified on-chain
Kitchen and floor Kitchen display (KDS), table and space layout, staff roles with per-permission RBAC, shared-terminal PIN clock-in, thermal printing
Reservations Public booking pages, availability, confirmation emails
Delivery Delivery zones, drivers, order tracking
Back office Menu management, inventory and recipes, CRM, loyalty, analytics, accounting exports
Fiscal ARCA/AFIP electronic receipts for Argentina (docs/fiscal/)
AI AI waiter, ops assistant, director console, menu AI (docs/ai/)
Self-hosting One-command install, runtime configuration (one image for any domain), local or S3 storage, SMTP or API email, any OpenAI-compatible LLM

AI in real restaurant operations

The AI features ran against real service, so they are built around one rule: the model never decides a fact, a price or an action on its own. Prices come from the menu snapshot, tool calls are validated server-side, director changes are previewed and can be undone, and every AI feature has a daily budget and a no-model fallback.

AI is optional. Without a provider, everything else works and the AI surfaces are hidden or fall back. To turn it on, see docs/self-hosting/ai.md (OpenRouter, Ollama, vLLM or any OpenAI-compatible endpoint).

Architecture

browser ──> Caddy (TLS, one origin)
              ├── /api/v1/*, /media/*  ──> backend  (Go, Gin, GORM) ──> PostgreSQL 18
              └── everything else      ──> frontend (Next.js 15)  ──(server-side)──> backend

Quick start

Install on a server

You need a Linux server with Docker Engine and the Compose plugin, and a domain pointing at it. Download the installer from the latest release, read it, run it:

curl -fsSLO https://github.com/stdevMac/payverge/releases/latest/download/install.sh
less install.sh
bash install.sh

It asks for the domain, the admin email and whether to load demo restaurants, writes .env with fresh secrets, starts the stack behind Caddy with a Let's Encrypt certificate, and prints the admin password once. Everything else (flags, upgrades, backups, restore, Cloudflare, building from source) is in deploy/README.md.

Manual compose

The installer only automates deploy/docker-compose.yml. To do it by hand, take deploy/ from a release (the payverge-deploy-<version>.tar.gz asset, or a clone checked out at its tag; main can be ahead of the newest release), fill in .env.example as .env, and run docker compose up -d. See deploy/README.md § Configuration.

Managed platforms

Templates for Coolify, Dokploy, Render and Railway are in deploy/platforms/. They have not been tested on those platforms yet; see docs/self-hosting/platforms.md for how they differ from the compose stack.

Local trial

With the installer downloaded as above:

bash install.sh --domain localhost --admin-email [email protected] --demo

From a clone of this repository, run the copy in deploy/ instead. Add --build to build the images from your checkout rather than pull them:

./deploy/install.sh --domain localhost --admin-email [email protected] --demo

Caddy serves https://localhost from its own local CA; see deploy/README.md § Local trial for trusting it and for alternate ports.

Where things live

URL What it is
/dashboard Operator sign-in and your venues. Sign in with the admin email and the password the installer printed.
/ Your published venue page. With several published venues it lists them; set PRIMARY_VENUE to pin one. Until a venue is published, / sends you to /dashboard.
/b/<slug> Any published venue's page.
/t/<code> A table's QR code target: menu, ordering, bill and payment.
/business/<id>/dashboard A venue's dashboard.
/admin Platform admin.

Configuration

Every setting is an environment variable. Start with deploy/README.md § Configuration, then the topic pages in docs/self-hosting/: admin and signups, storage, email (EMAIL_PROVIDER is log, smtp, resend or postmark; Resend uses EMAIL_API_KEY and RESEND_WEBHOOK_SECRET), AI providers, frontend runtime config, WhatsApp. A running instance reports its effective, non-secret configuration at GET /api/v1/instance.

Agentic layer

Payverge can be set up and run with help from AI agents, not only inside the product:

  • tools/payverge-admin-mcp: a dependency-free MCP server that gives Claude Code, Claude Desktop, Codex, Cursor or any MCP client tools to configure a restaurant and diagnose an instance. Every write previews first.
  • .claude/skills/: playbooks a coding agent follows to install, configure a restaurant, rebrand, add a locale, add a payment integration, upgrade and troubleshoot.
  • docs/agents/README.md: how the in-app AI, the MCP tools and the skills fit together.

Contributors working with a coding agent should read AGENTS.md (and CLAUDE.md for Claude Code).

Development

Requirements: Docker, Go (version in backend/go.mod), Node (version in .nvmrc).

Full stack from this checkout (development mode):

cp .env.example .env
docker compose --env-file .env up -d --build

The frontend is on http://localhost:3000 and proxies /api/v1 and /media to the backend on http://localhost:8080. PostgreSQL is internal to compose. Health checks:

curl http://127.0.0.1:8080/api/v1/health/live
curl http://127.0.0.1:8080/api/v1/health/ready
curl http://127.0.0.1:3000/api/health

Backend (backend/):

make run          # dev server on :8080
make quick-test   # -short suite, no race detector (fast loop)
make test         # -short suite with -race, as CI runs it (no Docker)
make test-docker  # every test, including the Testcontainers suites (needs Docker)
make lint         # golangci-lint
make fmt          # gofmt
make eval-offline # offline AI evaluation suites

Frontend (frontend/):

npm install
npm run dev        # :3000
npm run lint
npm run typecheck
npm run test       # Jest
npm run build

Docs are a plain Markdown tree under docs/ with no build step; start at docs/README.md. For the repository conventions (money wire contract, migrations, performance gate, hygiene rules) read AGENTS.md and docs/ONBOARDING.md.

Status

Payverge was built and run in production for real restaurants in 2025-2026. It is now community-maintained, with no SLA and no hosted service. Fixes and releases happen when maintainers have time. Plan your deployment accordingly: you own its backups, upgrades and security.

Questions and help: GitHub Discussions. Bugs go to issues; .github/SUPPORT.md says what to include.

License

Apache-2.0. See NOTICE and docs/licensing/ for third-party licences.

The Payverge code in the default build links no GPL module (make check-gpl-free checks this). The published container images are built on upstream base images (Alpine-based node for the frontend, distroless Debian for the backend) whose operating-system packages keep their own licences, some of them GPL; their source is available from the respective distributions. The optional WhatsApp channel is a separate build (-tags whatsapp) that links a GPL-licensed library, so that binary is GPL-3.0-encumbered and you are responsible for compliance; see docs/self-hosting/whatsapp.md and ADR 0008.

The images also link two libraries licensed under LGPL-3.0-or-later: the backend uses go-ethereum's library packages (none of its GPL-3.0 cmd/ packages), and the frontend's image optimisation loads the prebuilt libvips libraries from sharp-libvips. NOTICE gives their source locations and how to substitute your own build; the licence texts are in LICENSES/.

"Payverge" and the logo are trademarks; the code licence does not grant them. Forks should rebrand. See TRADEMARKS.md.

Security

Report vulnerabilities privately as described in .github/SECURITY.md, which also lists the known limitations to account for when you deploy.

Contributing

See .github/CONTRIBUTING.md, the code of conduct and support.

About

Open-source restaurant operating system: QR ordering, split bills, payments, AI waiter, fiscal invoicing. Self-host in one command.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages