Selected Work

SaaS, Anti-Fraud, POS, Postgres

AxiomOS

A high-speed, anti-fraud management system for independent gyms. Built to eliminate staff errors and fraud with a strict append-only architecture and point-of-sale price locking.

View live project
Stack
Next.js 16 (App Router) · TypeScript · Tailwind CSS v4 · Prisma · Postgres
Roles
Owner · Staff
Status
Live
DASHBOARD
Friday, October 9, 2026
Today
This week
This month
This year
Custom
✓ Check In
REVENUE
$
2,845,900 DZD
Profit: 2,610,000 DZD
ACTIVE MEMBERS
412
↑ 14% vs previous period
+ Add member
CHECK-INS TODAY
✓
128
Terminal →
ATTENTION NEEDED
⚠️
3
3 URGENT
Review alerts ↓
REVENUE FLOW WEEK
● Peak: Wed (840,000 DZD)
2,845,900 DZD
1M750K500K250K0
SunMonTueWedThuFriSat
REVENUE BREAKDOWN
TOTAL
2.84M DZD
● Subscriptions
82% 2,333,638
● Retail Sales
18% 512,262
RECENT SALES DETAILS 5
ItemTimeCustomerSold ByQtyTotal
12-Month VIP SubscriptionOct 6, 04:49 PMWALK-INOwner1120,000 DZD
Personal Training (10 Sessions)
Oct 6, 04:49 PMWALK-INOwner135,000 DZD
Whey Protein (Premium)Oct 6, 04:49 PMWALK-INOwner2 jar30,000 DZD
Drop-in SessionOct 6, 04:49 PMWALK-INOwner11,000 DZD
1-Session PassOct 5, 05:13 PMWALK-INOwner11,000 DZD
● ATTENTION NEEDED
Expiring (2)
Low Sessions (4)
At-Risk (12)
M
Mohammed Ali
● VIP Membership expires in 2 days
Send Reminder
S
Sarah Connor
● 12-Month Plan expires tomorrow
Send Reminder
VIEW ALL EXPIRING (2) →
K
Karim Ziani
● 1 SESSIONS LEFT
K
Karim Ziani
● 1 SESSIONS LEFT
L
Low Session Larry
● 1 SESSIONS LEFT
A
Amine Slimani
● 1 SESSIONS LEFT
VIEW ALL LOW SESSIONS (4) →
L
Liamine Bougherara
● Session pass is empty or low
Mark Resolved
E
Elias Menad
● Period pass has expired
Mark Resolved
A
Amine Slimani
● Session pass is empty or low
Mark Resolved
K
Karim Ziani
● Session pass is empty or low
Mark Resolved
Y
Yanis Belaid
● Period pass has expired
Mark Resolved
RECENT ACTIVITY 3,842
All Staff
●
12-Month VIP sold
Owner · 04:49 PM
●
Personal Training sold
Owner · 04:45 PM
●
Sale deleted/voided
Owner · 04:42 PM
●
Member check-in
Front Desk · 04:41 PM
●
Annual Plan sold
Owner · 04:30 PM
●
Drop-in Session sold
Amin · 04:20 PM
View all (3,842) ↓
COACH ACTIVITY 12 ACTIVE
MANAGE →
C
Coach Lilia
● INACTIVE
Athletes
24
Last Post
2 h ago
C
Coach Mehdi
● ACTIVE
Athletes
32
Last Post
1 d ago
C
Coach Tarek
● INACTIVE
Athletes
4
Last Post
12 d ago
C
Coach Sarah
● ACTIVE
Athletes
18
Last Post
5 h ago
C
Coach Amin
● ACTIVE
Athletes
45
Last Post
1 h ago
C
Coach Ryad
● INACTIVE
Athletes
0
Last Post
—
View all (12) ↓
■ LOW STOCK ALERTS 2 ITEMS
Whey Protein (Vanilla) -2 LEFT
Pre-Workout (Energy) -5 LEFT
MANAGE INVENTORY →
ANTI-FRAUD ARCHITECTURE✦APPEND-ONLY DATABASE✦PRICE LOCKING✦DUAL-LAYER AUTH✦ANOMALY DETECTION✦ANTI-FRAUD ARCHITECTURE✦APPEND-ONLY DATABASE✦PRICE LOCKING✦DUAL-LAYER AUTH✦ANOMALY DETECTION✦
architectureStrict append-only database
auditabilityPoint-of-sale price locking
auth layersOwner session + Staff PIN switches
anomaly detectionActive flagging on main dashboard

Absolute Data Integrity > Feature Bloat.

The core hypothesis behind AxiomOS was simple but contrarian: gym owners don't need a million bloated features; they need a tamper-proof system. I bet that prioritizing an append-only architecture and unbreakable auditability would solve the biggest silent killer in gym management: staff errors and fraud.

Financial Leakage & Owner Paranoia.

For independent gym owners, the front desk is a massive vulnerability. Without a reliable, immutable audit trail, staff can easily alter prices, delete cash sales, or give away free sessions to friends. This leads to untraceable revenue loss, unresolvable customer disputes, and a complete breakdown of trust. The stakes were high: if the system couldn't guarantee data integrity, the owner could never confidently step away from the business.

Belt-and-Suspenders Architecture.

We engineered a system that balanced lightning-fast UX for the staff with military-grade accounting for the owner. From Postgres-level triggers to custom PIN-switch authentication, every interaction was built to guarantee that every single action—down to a changed setting or a recorded cash sale—is perfectly attributed.

Append-Only Postgres Constraints

Strict append-only constraints implemented at both the application layer and via Postgres DB triggers. Historical records, pricing adjustments, and member purchases can never be altered or deleted.

Postgres triggers · Immutable ledger · Audit compliance

POS Unit-Price Locking at Purchase

To guarantee historical revenue audit accuracy, the POS engine captures and locks the exact unitPriceAtPurchase at the moment of checkout. Global pricing adjustments never distort past accounting.

POS unit-price lock · Snapshot integrity · Zero accounting drift

Owner Session + Fast PIN Staff Switching

Custom dual auth: gym owners maintain persistent admin sessions while staff authenticate via rapid PIN switches on the shared terminal. A central getActingUser() guarantees complete action attribution.

PIN context switch · getActingUser() · Role isolation

Automated Discrepancy & Fraud Detection

Instead of burying owners in complex financial spreadsheets, the UI actively surfaces critical anomalies — like price overrides, unauthorized discounts, or low stock — directly on the main HUD.

Price override alerts · Inventory warnings · Proactive flags

Total Peace of Mind at Lightning Speed.

The final product is a rock-solid, auditable platform that eliminates revenue leakage. Gym owners finally have total peace of mind, knowing the system simply won't allow untraceable actions.

Meanwhile, the dual-layer PIN auth and optimized POS workflows mean staff can operate the front desk at maximum speed, creating a frictionless experience for members.

Running a business with the same leak?

Book a 20-minute call and bring your numbers. I'll tell you honestly whether a system like this would pay for itself.

Next projectPremiumHoneyDZ