Skip to content
sadat.
Demo coming soon

ForgeFlow

Workspaces, projects, and issue tracking with a persistent Kanban workflow.

A connected workspaceForgeFlow
WorkspacesProjectsIssues
Organize. Collaborate. Move forward.
The shape of the work

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.

Account accessRegister, verify, then hold a sessionRegisterEmail and passwordVerifyEmail confirmationSessionToken issuedAccessSigned inVerification is a separate stepAn address is not usable until the confirmation link is used.Unverified addresscannot open a workspaceVerified addresscanAccess is granted only after the address is confirmed.Schematic of the implemented request path

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 boundariesMembership decides what a request can reachWorkspace AProjects and issuesScoped by workspace idMemberMemberInvitation pendingInvitedWorkspace BProjects and issuesNot visible from AMembernoshared rowsEvery read is filtered by workspace membership.Schematic of the implemented request path

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.

Projects and issuesWork is tracked as issues inside a projectProjectBelongs to one workspaceIssueTitle, status, priorityAssigneeA workspace memberIssue fieldsStatusPriorityAssigneePositionAn issue belongs to one project, inside one workspace.Schematic of the implemented request path

A project contains issues, and each issue records status, priority, an assignee, and its position, so the work stays traceable as it moves.

Persistent board orderingPosition is stored, not inferred from the pageTo doIssue 1Issue 2Issue 3In progressIssue 4Issue 5Issue 6DoneIssue 7Issue 8Issue 9Position columnstores the order inside each lane, per projectReload the board and the order is the same.Schematic of the implemented request path

Issues sit in named lanes, and a stored position column records the order inside each lane, per project, so reloading shows the same arrangement.

Versioned board updatesA write carries the version it was based onTab ALoaded the board at version 4Moves issue 3sends expected version 4Tab BMoved issue 3 firstBoard is now version 5Tab A still expects 4conflictRejected: the board changed, reload before movingA stale write is refused instead of overwriting the newer order.Schematic of the implemented request path

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

The challenge

An address on file is not an identity. Something has to confirm the address before it can be trusted with a workspace.

ForgeFlow’s approach

The auth service handles registration, email verification, and sessions. A confirmation link has to be used before the account is treated as usable.

Why it matters

Verification sits in front of everything else, so an unverified address never reaches workspace membership.

Under the hoodThe request path, in order
  1. 01
    The browser calls the frontend
    Next.js

    The Next.js application holds the interface and the server-side routes the browser talks to.

  2. 02
    The gateway receives the request
    Express

    The API gateway is the single entry point. It routes and authenticates the request, and it does not query domain tables itself.

  3. 03
    The request reaches a domain service
    Auth service and core service

    Authentication work goes to the auth service and project work goes to the core service. Services hold the business rules and transactions.

  4. 04
    The repository owns the SQL
    PostgreSQL

    Repositories run parameterised queries against PostgreSQL, and every query is filtered by workspace and membership.

  5. 05
    A write is version checked
    Optimistic concurrency

    Board 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.

Inside the project

What it actually does

01

Account access

Registration, email verification, login, and session handling.

02

Workspace boundaries

Role-based access and email invitations for team collaboration.

03

Projects & issues

Organize tasks with status, priority, and assignees.

04

Persistent Kanban

Drag, reorder, and move issues with backend persistence.

The workflow

How it moves forward

  1. 01

    Join

    Sign in or accept a workspace invitation.

  2. 02

    Organize

    Create projects and track the work as issues.

  3. 03

    Move forward

    Update the Kanban board as work progresses.

Technology

The tools behind it

Which component runs on which technology

Frontend

  • Next.js

API layer

  • Node.js
  • Express

Data store

  • PostgreSQL
  • Redis

Delivery tooling

  • Docker
  • GitHub Actions
System architecture

How the pieces connect

  • 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.
Derived from project structure: A Next.js frontend calls an API gateway that fans out to authentication and core services, backed by PostgreSQL and Redis.
Under the hood

Engineering decisions

What was decided, and why
FrontendGatewayAuth serviceCore serviceOne entry point, separate responsibilities

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.

12345678Position is a stored column, not a guess

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.

The hard parts

Challenges

The parts that did not come for free

Sharing one system between multiple teams is what made this more than a task tracker. The boundaries had to hold under every request.

Workspace AA projectsA issuesWorkspace BB projectsB issuesThe scope travels with every query

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.

InviterInvitationone emailMemberOne invitation, one workspace, one membership

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.

12345678Position is a stored column, not a guess

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.

Client Aversion 4Client Bversion 5conflictReload before moving

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.

Afterwards

What stayed with me

Lessons from building it

What stayed with me from building a multi-tenant workspace tool came down to boundaries, ordering, and conflict.

Workspace AA projectsA issuesWorkspace BB projectsB issuesThe scope travels with every query

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.

12345678Position is a stored column, not a guess

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.

FrontendGatewayAuth serviceCore serviceOne entry point, separate responsibilities

Service boundaries force clarity

Splitting auth from core made it obvious which rules belong to identity and which belong to the work itself.

Client Aversion 4Client Bversion 5conflictReload before moving

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.