Web· Gaming cafe POS

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

  1. Next.js + TypeScript
  2. →Supabase (Postgres, RLS, RPCs, realtime)
  3. →TanStack Query
  4. →Playwright e2e
  5. →Coolify deploys
Next.jsSupabasePostgreSQLTanStack QueryPlaywright

Related services & industries

Articles about building HNEFA

next case studySubletS/

Want something like HNEFA?

Tell me what you’re building — I reply within a day with next steps and a rough scope.