Historical price fidelity
Every order item stores its sale-time unit price rather than depending on a product price that may later change.
An Arabic-first point-of-sale and inventory system designed around transaction integrity, merchant isolation, and multi-shop operations.
GO · ECHO · POSTGRESQL · HTMX · VALKEY · SQLC
Go handlers route through service and repository boundaries into sqlc-generated PostgreSQL queries. HTMX replaces server-rendered fragments, while checkout validates the shift, stock, quantities, discounts, and payment inside an explicit database transaction.
Session tokens are SHA-256 hashed in PostgreSQL and cached in Valkey for 24 hours. The application keeps working when the cache is unavailable, and merchant-account scoping stays in the data model.

Stock movements, fractional quantities, shop-level availability, and sale-item snapshots preserve what happened at checkout—even after a product name or price changes.
Every order item stores its sale-time unit price rather than depending on a product price that may later change.
Roles, shop access, stock checks, and transaction rules are enforced before any state change is committed.
The Go application and server-rendered UI stay operationally simple while preserving clear internal boundaries.
Start with the invariants, the failure paths, and the data model.
Get Started ↗