arrow_back Work
chevron_left ALL_WORK
Freelance / Full-Stack Developer / ★ Most fintech-relevant

Catalog Ecommerce.

A full-stack inventory and e-commerce platform with real-time stock tracking, multi-payment processing, granular RBAC, and end-to-end order fulfillment from catalog to invoice.

Next.js 16 React 19 TypeScript Prisma / PostgreSQL Redis + BullMQ NextAuth.js Zod Dinero.js Razorpay AWS S3 Sentry + Pino
lock Code: Private (client IP)
Atomic
Stock txns across 20+ endpoints
~80%
Manual accounting cut via credit ledger
7
Payment methods (UPI, cards, COD…)
Idempotent
Keys on all critical operations

Architecture & Key Decisions

The Hard Part

bolt

Never oversell, never double-charge

Two customers buying the last unit at the same instant can't both succeed; a webhook that fires twice can't charge twice. The fix is a combination of atomic stock transactions, idempotency keys on critical operations, and webhook signature verification with async confirmation — the exact primitives that fintech backends live and die on.

Key Features

Trade-offs & What v2 Adds

Why JSON fields for order items?

Cart-data flexibility versus rigid normalized tables.

Why async stock recomputation?

Faster transaction confirmation, with a synchronous fallback if queues are unavailable.

Why idempotency keys despite the overhead?

Duplicate prevention in distributed systems is worth the cost.

What v2 would add

Redis caching for product/category data, WebSockets for order status, Elasticsearch for product search, multi-warehouse inventory, and audit logging.

Want the full walkthrough?

Happy to walk through the concurrency model, idempotency, webhook handling, and the credit ledger.