~/daniel-nyong

$ whoami

daniel nyong, full-stack software engineer

All projects

Thrift E-Commerce Platform

A full-stack marketplace with product variants, carts, orders, vendor analytics, and a Functional DDD backend.

Thrift is still heavily under development. APIs, schema, and UI may change.

TypeScript
Node.js
Express
PostgreSQL
Knex
Next.js
Supabase
Cloudflare Workers
Thrift marketplace landing page

Overview

Thrift is a full-stack e-commerce marketplace for new, used, and antique items. The pnpm monorepo contains an Express/TypeScript API, a Next.js storefront, scheduled cron jobs, and a dedicated search service.

The backend uses Functional Domain-Driven Design with Hexagonal Architecture: pure domain rules, curried use cases, ports for repositories and external services, and thin HTTP and Knex adapters across ten bounded contexts.

The API is covered by a testing pyramid: unit tests over the pure domain and use cases, integration tests over HTTP and Postgres, and a smaller adversarial end-to-end suite for contracts, authorization, ownership, and state machines.

The storefront and API run as Cloudflare Workers, with the Next.js app built through OpenNext and Postgres connected through Hyperdrive.

What I built

  • Built a pnpm monorepo with the API, storefront, cron jobs, and a dedicated product search service.
  • Modeled ten bounded contexts with Functional DDD and Hexagonal Architecture, keeping domain rules pure and all I/O behind ports.
  • Implemented product variant and pricing models, carts, orders, vendor analytics, payments, media, and reviews.
  • Tested the API with unit, integration, and adversarial end-to-end suites that keep external services behind fakes.
  • Migrated the storefront and API to Cloudflare Workers with OpenNext and Hyperdrive.