Project 63 of 84
Pipeo
Multi-tenant event pipeline: clients send one batched event stream to one endpoint and Pipeo fans it out to destinations (webhook, GA4, Mixpanel, S3 file sink). It accepts the Segment-style HTTP tracking protocol, so unmodified @segment/analytics-next and @segment/analytics-node SDKs work by changing host settings.
- Status
- In progress
- Last activity
- 2026
- Stack
- TypeScript
- pnpm workspaces monorepo
- Fastify
- Hono
- Zod
- PostgreSQL
- Redis
- Kafka API
Highlights
- Designed and built Pipeo, a multi-tenant event pipeline in a TypeScript monorepo (9 apps, Fastify ingest, Hono admin API, Next.js 16 console) that accepts the Segment-style HTTP tracking protocol so unmodified Segment browser and Node SDKs deliver to webhook, GA4, Mixpanel and S3 destinations; 136 commits from 2026-10-22 to 2026-11-13.
- Re-architected the high-throughput tier after load tests showed delivery through the Postgres job table, not ingest, was the bottleneck (about 10K deliveries/s against about 44K events/s ingest): added a Kafka fast lane with a Postgres slow lane for retries and overflow, reaching 30.3K deliveries/s at 10K events/s on a laptop with 0 lost and 0 duplicated events (ADR 0006).
- Hardened tenant isolation with Postgres row-level security, three separate non-owner database logins, a SECURITY DEFINER audit writer and an ESLint gate banning string-built SQL, after a SQL rehearsal on scratch Postgres caught RLS and role-inheritance defects that five rounds of design review had missed.
- Sealed destination secrets to the worker's public key so the internet-facing admin API can encrypt but never decrypt, with a worker capability handshake that blocks sealing until every worker can open, a reseal CLI with dry run, and a key-rotation drill test (ADR 0008).
- Built a Next.js 16 multi-tenant console (sources, descriptor-driven destination forms, connections, audit log, members, staff pages with ten-minute step-up re-auth) on a Kubb client generated from a committed OpenAPI spec, covered by Playwright browser specs and a 15-screen dark-mode contrast scan.
- Shipped a static Next.js marketing site (feature, destination, API-reference and CLI catalog pages) to Vercel with tests that fail when any adapter, API operation or CLI command drifts from the published catalog, and a manual, token-scoped deploy workflow on self-hosted runners.
- Provisioned branded auth email with Terraform (AWS SES identity with DKIM, MAIL FROM, DMARC and Cloudflare DNS), verified live, and retired a product-local email receiver in favour of the shared fleet worker.
- Wrote a dependency-ordered production plan (dedicated VPS with Ansible, ECR images, SSM-rendered secrets, backups with restore drills, sizing measured at about 5,100 events/s and 1.1 GiB on the smoke stack) and documented 8 ADRs and 14 operational runbooks.