HNEFA
The floor, the till and the GST — one screen.
Billing, stations and reports for gaming cafes in one dashboard: a live machine floor with timed sessions, touch-friendly POS for play time and snacks, bookings, inventory and a full GST-ready reports suite.
hnefa.cloud ↗Contributor in the Exlaso team.
The problem
Gaming cafes track machine time, snacks, prepaid balances and tax across separate tools — or paper.
What I built
- Live machine floor with realtime timed sessions and bookings
- Touch POS: sessions and products in one cart; cash, card, UPI
- Prepaid wallets computed by database functions
- FIFO inventory batches, purchases and returns
- Around 15 reports including GST/HSN and P&L
Hard parts
Multi-tenancy
Postgres row-level security per tenant with role-based access.
Balance correctness
Replaced stored balance columns with computed RPCs to avoid drift.
Safe migrations
47 versioned SQL migrations validated in CI.
Architecture
- Next.js + TypeScript
- →Supabase (Postgres, RLS, RPCs, realtime)
- →TanStack Query
- →Playwright e2e
- →Coolify deploys
Next.jsSupabasePostgreSQLTanStack QueryPlaywright
Related services & industries
- Custom CRM & SaaS developmentCustom CRM and multi-tenant SaaS development by a developer who has shipped CRMs used by 100+ firms. Roles, billing, reports and integrations, built to scale.→
- Gaming cafes & retail POSPOS and ERP development for gaming cafes and retail: live machine floor, timed sessions, billing, inventory, GST reports and multi-location tenancy.→
Articles about building HNEFA
- Row-Level Security for Multi-Tenant Apps in PostgresA practical guide to Postgres row-level security for multi-tenant SaaS: writing tenant policies, layering roles, using RPCs safely, and testing isolation in CI.→
- POS Software Development for Gaming CafesWhat goes into POS software development for gaming cafes: live machine sessions, touch billing, prepaid wallets, FIFO inventory, cash drawers and reports, based on the HNEFA build.→
- AI Workflow Automation for Small BusinessesA practical guide to AI workflow automation for small businesses: map the workflow, automate deterministic steps with rules, and add AI only where judgment is needed.→
- Docker for Node.js SaaS: When It Is Worth ItA decision guide for containerizing a Node.js SaaS: the cases where Docker pays off, where a plain VM with PM2 is simpler, and how to do containers well when you choose them.→
Want something like HNEFA?
Tell me what you’re building — I reply within a day with next steps and a rough scope.