Skip to content

SaaS & ProductOpen core (AGPLv3)

Foundry

An open-source, self-hostable workspace for the full service-business lifecycle - clients, quotes, projects, invoices, payments, documents and reports.

Independent product - built and owned by me, separate from employment work.

Role
Founder & engineer
Status
Open core (AGPLv3)
Domain
SaaS & Product Engineering
Foundry dashboard with revenue, outstanding and overdue totals, a revenue chart and upcoming invoices

Overview

Foundry is a light workspace where client engagements naturally accumulate: projects and their documents, quotes, payments, reports and automations, bundled on infrastructure the operator owns.

It started from my own consulting work. Invoicing tools covered the end of the process; what was missing was the lifecycle before it - the conversation, proposal, documentation, implementation, reviews, deliverables and follow-ups.

Problem and context

Engagement context was scattered across email threads, spreadsheets, drives and general-purpose tools. Invoicing software handled billing well but had no place for project timelines, technical documentation or deliverables tied to the engagement they belong to.

My role and ownership

Independent product work: product definition, architecture and engineering. This is distinct from the employment projects in this catalogue.

Architecture and approach

  • An event-driven modular monolith: a NestJS API with Prisma over PostgreSQL. Every action emits an event, and automation, notifications and extensions hook into the same bus.
  • Redis with BullMQ for caching and background queues; documents on local disk or any S3-compatible store (Cloudflare R2, Backblaze B2, AWS S3, MinIO).
  • An Angular client built with SpartanNG and Tailwind, plus a separate client portal app, in an Nx monorepo.
  • Deployed with Docker Compose on a single VPS, or split across hosts as it scales.

Engineering decisions

  1. 01

    Open core, with a clear line

    The core workflow - clients, quotes, projects, milestones, invoices, payments, documents and a read-only client portal - stays free and unlimited in the self-hosted Community edition, licensed under AGPLv3. The commercial Cloud layer covers convenience and scale: managed hosting, SSO and RBAC, audit logs, multi-workspace management and a fully interactive portal.

  2. 02

    Boundaries enforced, not promised

    Module boundaries are enforced by ESLint in the Nx workspace, so core lifecycle code can never depend on the commercial layer.

  3. 03

    Ownable and verifiable infrastructure

    Anyone should be able to run Foundry on a Raspberry Pi or a homelab, and an agency should not need permission to own the software that runs its business.

Outcomes

  • Shipped: clients and projects, delivery milestones, quotes and invoices, payments and expenses, S3-compatible document storage, realtime and email notifications, a REST API, a reporting dashboard and a read-only client portal.
  • No row limits, no per-seat pricing and no telemetry in the self-hosted edition.

Technology

NestJS · Prisma · PostgreSQL · Redis · BullMQ · Angular · SpartanNG · Tailwind · S3 · Docker Compose · Nx

Walkthrough

Foundry walkthrough
Dashboard, a project, quotes and invoices. All clients, people and figures are fictional demo data.

Marvin Kweyu

Senior Platform & Backend Engineer. Building the infrastructure layer that stays reliable long after it ships to hardware I'll never log into.

© 2026 Marvin Kweyu. All rights reserved.

Built with curiosity and code.