Backend2024
Commerce Engine
Headless commerce backbone with a typed API, pluggable payment providers, and a clean admin surface.
Overview
A commerce backend built to outlive the storefronts that consume it. Versioned, typed end-to-end, and easy to extend.
Problem
Existing platforms forced trade-offs between flexibility and shipping speed. Custom builds usually rotted into spaghetti within a year.
Solution
A small, well-bounded core (catalog, cart, orders, payments) with explicit extension points. Everything is typed end-to-end.
Tech Stack
Node.jstRPCPostgreSQLPrismaStripeRedis
Challenges
- Modeling promotions without turning pricing into a black box.
- Idempotent webhook handling under retry storms.
- Keeping the public API stable while the internals evolved.
Result
Powers two production storefronts. Onboarding a new frontend takes hours, not weeks.