A centralized system aimed at simplifying the lives of all stakeholders in a small, German-speaking "Handwerker" company, with two main goals:
- Make all processes, states and flows visible;
- Take over as much as possible from the manual processing of data - let everybody focus on their actual work.
Self-hosted, full control, fully customized, no BS.
▶ See the full demo (Vimeo, ~1½ min, in German)
Owner:
"I need to have an overview of what is happening, which tasks need attention, what is stuck, how is the workflow moving and where are the Engpässe."
Office worker:
"Same as owner, with even more details. I need to assign workers, manage attachments, organize projects, customers and data."
Worker/s:
"I need to see what my planned work is, the details of my assigned projects and a straightforward way to report my progress, upload pictures, Aufmass, etc."
All:
"I don't have either the time or the motivation to learn software, fight with menus, read special documentation, install and configure software, apps, etc. I have work to do!"
Thus, this project is oriented as follows:
- in terms of data, what does the person do?
- what does the person do manually, what of it can be automated?
- where does the person waste time and energy manually processing data?
- what view of the data is the person interested in (ditch all the rest)?
A company expanding beyond the trivial one-man-army operation with very few clients is faced with ever-increasing operational complexity of keeping track of multiple simultaneous tasks. There is only so much the head of the owner can hold at any time, and chaos follows.
Data flow becomes an increasingly bigger issue as well, with the prime example of sharing it over popular chat-apps.
At this point one is faced with a hard choice, usually involving over-bloated software, the need to readjust the company to the expectations of the software, too many or too few features, exploding costs, or even - all of these in some form. In the end, the friction is even bigger, the flow is still not fluid, vast amounts of manual processing of data are still required, now with the added bonus of the new costs. The requirement for everyone to install, configure and learn new software and apps does not help either.
To some degree, this is understandable, as the only way to really meet the exact needs of a specific company is to build the software from the ground up around these needs. Until very recently, this was unrealistic from a time/costs perspective, but now, with the ever-increasing productivity of LLMs, I was eager to see how far I can go.
For more on the background, see the Kickoff document.
Given that the software would handle real company data, the challenge lies in combining the productivity gains from modern LLMs with confidence in the security and data integrity.
Detailed information can be read in the designated documents. A basic overview of the approach can be summarized as follows:
The app is treated as unreliable, both in terms of security and in preserving data integrity*.
The above scary statement actually lays the groundwork for decisions and workflows which may make the app even more reliable than other, "presumed-reliable" software.
- There is no exposure to the open internet, as the whole deployment stays strictly behind a VPN (WireGuard). The only accessible ports are SSH and WireGuard. The WireGuard client onboarding is operator-driven - the app never sees the keys;
- HTTPS is enforced everywhere in deployment anyway;
- Business data is stored in encrypted form on the external object storage providers;
- Everything that leaves the box is encrypted before it does (attachment ciphertext, backup dumps), as are the deployment secrets at rest on it. The live VPS itself is inside the trust circle: the Postgres data directory is plaintext, protected by VPN isolation rather than at-rest encryption — root on the box is a full compromise regardless (ADR-0008);
- Deployment and server restart are operator-driven;
- Authentication is username + password, bcrypt-hashed under a NIST SP 800-63B policy with a local common-password blocklist; sessions are server-side records in Postgres (24h,
HttpOnly; Secure; SameSite=Strict). Login is rate-limited; - Authorization is two-layered: route-level RBAC across four roles (owner, office, worker, bookkeeper) and resource-level scoping enforced as SQL predicates - for example workers see only their assigned projects;
- Every domain-entity mutation goes through a single write path that records an audit log entry.
The business data is regarded in layers (ADR-0018), each of which gets special attention:
-
Business data (app-level)
- Text rows and binaries, eligible for import/export through the UI as a single takeout zip — one archive holding the whole account (round-trip: text rows + attachments + thumbnails regenerated on import).
-
Full DB state
- Automatically exported to R2 at regular intervals - 5 times/daily on weekdays, 1/daily at weekends;
- Regular automated drills check recoverability;
- Object lock is enforced by the provider to prevent deleting for a set amount of days.
-
Binary attachments (Backblaze B2)
- Follows the same principle - provider-enforced object lock, provider-controlled lifecycle;
- A "recycle-bin" concept: "deleting" a file only marks it for deletion, real deletion happens only through the provider after the set amount of days spent in the "bin". The app has no way of deleting data through a scoped API key.
- Critical operations like deployment, restart and WireGuard onboarding are operator-driven. No operator available = outage. Accepted tradeoff;
- The system user for deployment has potentially root access through the Docker group. The user has access to the data anyway;
- A sweet spot for the automated backups is to be found, depending on the max acceptable time window for data loss;
- A regular, operator-driven recovery drill is a requirement - this should be a requirement for all software anyway.
This project makes heavy use of modern LLMs, mostly Claude Code. A "fully automated agentic workflow" is something I dislike, as I prefer to solve problems, instead of delegating them and hoping for the best. Thus, the workflow is as follows:
- Gathering of data: exclusively human. Just speaking to people and watching what they do - who would have thought this might help in solving their problems...
- Brainstorming a solution: time is a big factor here, as ideas tend to pop up. Agents and agent teams might be involved for critical discussion, research or real world solutions and technology, as well as scrutiny of the ideas;
- Agentic orchestration with continuous human steering - see Workflow. Basically spec -> ACs -> tests -> implementation -> tests, with in-between checks and reviews through independent agents with adversarial framing. Separate reviews on the completed tasks, focusing on the project's guardrails and guidelines
./review/conventions-*.md. - Presentation -> feedback -> readjustments. Everything in the project is regarded as WIP and it undergoes constant readjustments to the needs of the real users (not the other way around...)
docs/project/- the vision document and the (constantly readjusted) plan;- ARCHITECTURE - navigation guide for the codebase, incl. CI/CD;
- DATA.md - how data persists and is recovered: the three backup layers and the UI export/import round-trip;
- CONTRIBUTING.md - dev setup, testing, code style, CI gate;
- CLAUDE.md - instructions for Claude Code. Includes categories of trust - human made | strict human control | AI made with less human control;
review/- guardrails and guidelines, used when instructing agents on what to focus on;docs/spec/- specification; configuration boundaries (where env vars come from, what happens when one is missing) live in architecture.md §12;docs/ops/- runbooks with operator instructions;docs/adr/- Architecture Decision Records (ADRs) - bigger decisions with some background and rationale;docs/compliance/- baseline for the operating company's Betriebsverantwortung — who owns what, and the limits of the system;src/- code. See the module map for details.
| Local dev | Full stack (HTTPS) | |
|---|---|---|
| App | Node process (npm run dev) |
Docker container |
| Reverse proxy | None (Vite proxies /api/*) |
Caddy on port 443 (TLS) |
| DB + storage | Docker | Docker |
| Domain | No | Yes |
| TLS | No | Yes (DNS-01 ACME) |
| VPN | No | Yes (WireGuard) |
| Use case | Development | Production |
Prerequisites:
- Docker Engine + Compose plugin, pinned version -- see docs/ops/local-dev.md § Prerequisites
- Node.js (pinned in
.nvmrc- usenvm install) age-- the file-encryption CLI;scripts/binary-key/init-local-key.shhard-fails without it. See docs/ops/local-dev.md § Prerequisites
Running:
# first time only:
nvm install # installs the Node.js version pinned in `.nvmrc`
cp .env.example .env
scripts/binary-key/init-local-key.sh # generates the dev `age` identity, writes it into .env
# (age = the file-encryption tool used for attachments — ADR-0024)
npm install
# run:
docker compose up -d # Postgres + MinIO (the app runs on the host via npm run dev)
npm run dev # starts backend + frontend at http://localhost:5173 — seeds the DB on first run (§ Seed Data)
# stop:
docker compose down # stop containers, keep data
docker compose down -v # wipe volumes too — fresh DB + bucket on next startCOMPOSE_FILE in .env.example wires the dev overlay triple automatically; no -f flags needed. See docs/ops/local-dev.md.
Seed Data:
The SEED variable in .env controls database seeding on backend startup:
| Value | Behavior |
|---|---|
true |
Seed only if the database is empty. Data you create or change during development survives server restarts. |
force |
Wipe all data and re-seed. Use when seed data structure changes or you need a clean slate. |
false (default) |
Don't seed. |
Seeding is always skipped in production (NODE_ENV=production).
Seed user list and credentials: docs/ops/local-dev.md § Seed users.
Before going live: make sure to have a clear picture of roles, responsibilities and the system's limits - see Betriebsverantwortung.
Check docs/ops for the full runbook.
- Provision the server - hardened SSH, deploy user, ufw + fail2ban, Docker;
- Set up WireGuard - VPN server up, Docker pinned to wait for
wg0on boot; - Configure DNS - point the domain's A record at the WireGuard private IP, so it only resolves over VPN;
- Bootstrap TLS - first Let's Encrypt cert via DNS-01 ACME (staging -> production); interleaves with first deploy;
- Provision object storage - Backblaze B2 bucket + capability-restricted app key + CORS rule (required for attachment uploads);
- Deploy - pull image from GHCR, start the stack, run first-admin bootstrap;
- Backups - encrypted R2 backups + drills.
Tests require the local dev setup (DB and MinIO exposed on host ports). They do not run against the full-stack Docker variants.
npm test # unit + component + integration (vitest; needs DB + MinIO up — see above)
npm run test:e2e # Playwright E2E testsFirst-time Playwright setup requires npx playwright install to download browser binaries.
State
The project is considered a successful MVP, deployed and E2E-tested in a realistic environment behind VPN, accessible through a real domain from different devices, with users, roles and all the real workflows in place. All operator workflows were E2E-tested as well - backup, recovery, encryption, etc.
Future improvements
R2 was enjoyable to fiddle with; however, for the real-user installation I would consider consolidating backups and binaries to B2.
Next steps
The next step would be a final customization sweep with the real users, which of course can't be part of this repo. After that, a feature freeze and a side-by-side run with the existing system for some time, gathering extensive feedback for more polishing. This open-source repo will still get updates, but without pre-planned iterations.
A project of this type can never really be considered "finished" - user needs and their environment evolve, and new insights into process optimization surface with time. However, in this current state, I consider it proof that these very realistic needs, described above, can be met with manageable resources, while maintaining reasonable confidence in the concerns of critical importance - data integrity and security. All of this while staying focused on the real users and their working day, providing a very low bar for acceptance and engagement and, in the end, a more efficient and enjoyable working experience for everyone.
AGPL-3.0-only - open and copyleft, including for network use.