SnapCode
LiveQR-driven guest services platform for hotels and rentals: four services on one PostgreSQL database.
Visit siteA guest scans a code in their room and gets Wi-Fi credentials, property contacts, a service menu and city recommendations — resolved from the room slug in the URL. Operators manage properties, rooms and services and print QR cards from an admin panel.
The system is four independent services against one database: a Next.js guest app, a read-only Go/Gin public API, a React/Vite operator console and a Python/FastAPI admin backend with 2FA, PDF/QR generation and S3 backups. It is the main product of MetaStack, a two-person team, and has been in continuous development for about a year.
Highlights
- The public API connects under its own database role with SELECT grants and a single INSERT target — it physically cannot write elsewhere.
- An environment guard compares APP_ENV with a marker row, so a dev service can never attach to the production database.
- Printed QR codes point to a redirect token, not the slug — slugs can change without reprinting.
- 2FA (argon2 + TOTP), session audit with GeoIP, rate limiting, logfmt logs correlated by request ID across Go and Python.
- 96 SQL migrations; CI for tests, staging deploys and changelog releases; four Docker containers on self-hosted Coolify.
Stack
- Go
- Gin
- Python
- FastAPI
- Next.js 16
- React 19
- TypeScript
- PostgreSQL
- Redis
- Docker
- Coolify