How ForgeFlow moves work forward
Each step answers one question about how a piece of work travels through the product. Pick a topic to follow it.
A user registers, then confirms the address through a verification link, then receives a session. Only after that can the account open a workspace.
Workspace A and Workspace B hold separate projects and issues. A member of A has no shared rows with B, and an invitation is the only way in.
A project contains issues, and each issue records status, priority, an assignee, and its position, so the work stays traceable as it moves.
Issues sit in named lanes, and a stored position column records the order inside each lane, per project, so reloading shows the same arrangement.
One tab loaded version 4, another tab moved an issue and made it version 5. The first tab still sends version 4, so the write is rejected and the board is reloaded first.
Account access
An address on file is not an identity. Something has to confirm the address before it can be trusted with a workspace.
The auth service handles registration, email verification, and sessions. A confirmation link has to be used before the account is treated as usable.
Verification sits in front of everything else, so an unverified address never reaches workspace membership.
Under the hoodThe request path, in order
- 01
The browser calls the frontend
Next.jsThe Next.js application holds the interface and the server-side routes the browser talks to.
- 02
The gateway receives the request
ExpressThe API gateway is the single entry point. It routes and authenticates the request, and it does not query domain tables itself.
- 03
The request reaches a domain service
Auth service and core serviceAuthentication work goes to the auth service and project work goes to the core service. Services hold the business rules and transactions.
- 04
The repository owns the SQL
PostgreSQLRepositories run parameterised queries against PostgreSQL, and every query is filtered by workspace and membership.
- 05
A write is version checked
Optimistic concurrencyBoard writes carry the version they were based on. A stale version is refused with a conflict so the client reloads rather than overwriting.
Each service uses route, middleware, controller, service, and repository modules. Services handle business rules and transactions, repositories own parameterised SQL, and the gateway routes and authenticates without querying domain tables itself.
What it actually does
Account access
Registration, email verification, login, and session handling.
Workspace boundaries
Role-based access and email invitations for team collaboration.
Projects & issues
Organize tasks with status, priority, and assignees.
Persistent Kanban
Drag, reorder, and move issues with backend persistence.
How it moves forward
- 01
Join
Sign in or accept a workspace invitation.
- 02
Organize
Create projects and track the work as issues.
- 03
Move forward
Update the Kanban board as work progresses.
The tools behind it
Frontend
- Next.js
API layer
- Node.js
- Express
Data store
- PostgreSQL
- Redis
Delivery tooling
- Docker
- GitHub Actions
How the pieces connect
Client
Services
Storage
- Client: Next.js frontend. React interface for workspaces, projects, and the Kanban board.
- Services: API gateway. Single entry point for the browser client. Auth service. Registration, verification, and sessions. Core service. Projects, issues, and board writes.
- Storage: PostgreSQL. Durable records for workspaces and issues. Redis. Ephemeral cache used alongside PostgreSQL.
Engineering decisions
Tenant boundaries in the query
Every project and issue query is filtered by workspace id and by membership, so the separation holds in the data layer rather than in the interface.
A gateway in front of separate services
The gateway is the single entry point and routes to the auth service or the core service, while repositories keep parameterised SQL out of the controllers.
Board order that survives a reload
A stored position column per lane keeps the order in PostgreSQL, and a version check refuses a write built on an older board.
Challenges
Sharing one system between multiple teams is what made this more than a task tracker. The boundaries had to hold under every request.
Keeping tenants apart
Two teams share one database, so every read and every write has to carry the workspace it belongs to. A single query that forgets the scope leaks data.
Invitations that grant the right access
An invitation has to add exactly one membership, for exactly one workspace, and it must not become a way around the permission model.
Ordering that stays correct
Reordering a lane means rewriting several positions at once, and the board has to look right the next time it is opened.
Two people on the same board
When two clients hold the same board, one of them is working from an order that is already out of date.
What stayed with me
What stayed with me from building a multi-tenant workspace tool came down to boundaries, ordering, and conflict.
Authorization belongs in the data layer
Hiding a button is a usability decision. Enforcing membership in the query is the security decision, and only the second one holds.
A persistent interaction is a data problem
Making a drag feel permanent is mostly about where the order is stored and which version it was based on.
Service boundaries force clarity
Splitting auth from core made it obvious which rules belong to identity and which belong to the work itself.
Conflicts are better than lost work
Refusing a stale write and asking for a reload is a better outcome than silently accepting an order that somebody else already changed.