Zatoshi
is a full-stack e-commerce platform built as a proper microservices system — a customer storefront, admin dashboard, background worker, and monitoring stack, all in one Turborepo monorepo.
API & Auth
The API layer runs on tRPC, giving end-to-end type safety from database to frontend with no REST contracts to hand-sync. Auth uses JWT access/refresh tokens, Argon2 hashing, and role-based access control, with idempotency keys on every mutation to prevent duplicate orders or charges.
Event System
The piece I'm most proud of is the event system: state changes write to a MongoDB outbox first, then a worker publishes them to Redis Streams for consumer groups to process — with automatic retries and a dead-letter queue for failures, so orders, payments, and inventory never drift out of sync.
Infrastructure
Each microservice owns its own MongoDB collections, Redis handles sessions/cart/rate-limiting, and MinIO stores product images — with Prometheus and Grafana keeping the whole system observable.
Payments
I'm also building checkout around Solana on-chain payments as a first-class rail alongside traditional checkout, settling transactions directly on-chain.
Tech Stack
TypeScript, Next.js 14, tRPC, Express, MongoDB, Redis, MinIO, Docker, Prometheus, Grafana.