Engineering Workspace (EWS)
Personal SaaS foundation for engineering teams
- Next.js
- Fastify
- Prisma
- PostgreSQL
- TypeScript
- Zod
- Cloudflare R2
- Problem
- Engineering teams need one place for planning, collaboration, and delivery workflows. Most tools either stay shallow on the backend or couple everything into a hard-to-evolve monolith.
- Solution
- A monorepo product foundation: Next.js web app, Fastify API, shared Zod validation packages, and a PostgreSQL schema for users, organizations, memberships, sessions, and invitations — aimed at becoming a full engineering workspace over time.
- Architecture
- API and web are separate apps. Auth is designed around JWT + httpOnly cookies, Argon2 password hashing, email verification tokens, and organization-scoped sessions. Prisma models ownership and roles (owner/admin/member/viewer). Object storage is wired through an S3-compatible Cloudflare R2 plugin for future uploads.
- Key challenges
- Getting the multi-tenant data model right early — organizations, memberships, invitations, and sessions — so projects, issues, and deployments can grow on top without rewriting identity. Keeping shared validation in packages so frontend and API stay aligned.
- Takeaways
- How to structure a TypeScript monorepo around clear service boundaries, and why auth/org primitives should be designed before feature surface area expands.
