What this guide covers

This guide shows how OrgSight is put together, for anyone who builds, runs or reviews it. It answers:
  • Who uses OrgSight, and which other services does it depend on?
  • Which applications and data stores make it up, and how do they talk to each other?
  • What is inside each application, and where is that code?
  • What does the database hold, and which code reads and changes it?
  • Which backend functions exist, and who can call them?

How to read it

The diagrams follow the C4 model, which works like zooming in on a map.
  1. Context (C1): OrgSight as one box, with the people and services around it.
  2. Containers (C2): the applications and data stores inside OrgSight. In C4 a container is anything that runs or stores data. It doesn’t mean a Docker container.
  3. Components (C3): the parts inside each application.
Select a box that has its own page to open it. Under most diagrams, a list gives the file and line behind each arrow.

How it stays accurate

Every part built here is tied to its source files, and every arrow to the code behind it, except arrows from people. If the structure of the code changes and this guide doesn’t, the check fails and names the difference. The explanations are written by hand.

Where to start

Context

The people who use OrgSight and the services it depends on.

Containers

The applications and data stores, and where each one runs.

Backend

The business rules, in six areas, with every function.

Cloudflare

Pages, Workers, Durable Objects, containers and Stream, and how they interact.

Sign-in

The Clerk components and features OrgSight uses, and how signing in gives access.

Data

Every table, how they link, and what reads and writes them.

Key flows

Step by step: HR sync, an agent’s run and a demo video.

Audit findings

What the audit found worth fixing or knowing.
Checked against the code (v0.5-182-g5680751-dirty) on 4 December 2026.