← All projects

Energy retail SaaS

Fuel Retail Operations Platform

Multi-tenant petrol station SaaS—station and admin portals with Hono CQRS APIs on Supabase.

Fuel Retail Operations Platform

The challenge

Multi-site fuel retailers needed tenant-isolated station operations—shifts, nozzle sales, reconciliation, inventory dips, and credit accounts—plus a separate platform admin plane, without forcing one bloated UI on every role.

The solution

Fuel Retail Operations Platform: Multi-tenant petrol station SaaS—station and admin portals with Hono CQRS APIs on Supabase. Clear separation of station operations vs platform administration. Tekvers delivered a maintainable energy retail saas system for Fuel Retail Operations Platform using Next.js, Hono, Supabase, TypeScript, with phased rollout, operator workflows, and documentation suited to long-term ownership.

Approach

Command/query separation

Hono adapters call CQRS command and query handlers so station writes (start/close shift, create sale) stay auditable while list/reconciliation reads stay focused—domain services compute cash and liter variance flags against tolerances.

Dual portals on shared tenancy

Station UI focuses on pumps, shifts, transactions, credit, dips, and reports; admin UI operates tenants, user roles, and overview stats via service role—RLS isolates station tables for tenant users.

Forecourt resilience and assistive integrations

PWA + IndexedDB offline queue covers core shift/transaction capture; Vision OCR and WhatsApp hooks add meter assist and closed-shift notifications without blocking the ops MVP.

Deliverables

  • ▸Station Next.js PWA portal (owner / manager / attendant)
  • ▸Platform admin Next.js portal
  • ▸Hono CQRS station API and admin API
  • ▸Supabase Auth, Postgres schema, migrations, and RLS policies
  • ▸Pump/nozzle configuration and meter update flows
  • ▸Shift start/close with cash reconciliation and variance flags
  • ▸Sales transactions (cash / card / credit) scoped to open shifts
  • ▸Vehicle credit accounts with charge/payment ledger entries
  • ▸Tank inventory dip workflows and sales reporting charts
  • ▸Optional Google Vision OCR and WhatsApp shift-closed alerts
  • ▸PDFKit shift reporting and IndexedDB offline mutation queue

Outcomes

  • ▸Clear separation of station operations vs platform administration
  • ▸Auditable shift and sales commands with tenant isolation
  • ▸Offline-capable capture for core forecourt mutations
  • ▸Multi-site foundation for retail fuel networks in Pakistan

Impact

Attendants run shifts from a purpose-built PWA while leadership and platform operators see the network—reconciliation and credit stop living only in notebooks, and the architecture stays honest about what is not yet billed as SaaS subscriptions.

Tech stack

Next.jsHonoSupabaseTypeScriptGoogle Cloud VisionWhatsApp

Want something similar?

I build production systems like Fuel Retail Operations Platform—from architecture through launch. Tell me what you need.

Contact me →