Developers
How eDGR is built, run, tested and shipped, for the engineers who work on it.
eDGR is one backend and one web app in a single repository. The backend serves the API, answers inbound messages with an AI reply agent, and runs campaigns as durable workflows. The web app is every screen a user sees. Docker Compose runs both, with Postgres for the data and Restate for the campaign workflows.
The pages in this tab describe each part by what it does, why it is there, and how data moves to the next part. Names of files and functions are left to the code.
- 1 Plan Larger work starts as a spec and a plan in the repository
- 2 Build locally The whole stack in Docker, reloading on save
- 3 Test Unit suites in seconds; agent evals by hand
- 4 Commit Conventional Commits; CI runs the backend tests
- 5 Release Back up, build on the server, migrate, start, check
- 6 Document Update these pages and recapture screenshots
The system
What runs on the host, the path of a request and of an inbound message, background work, and the outside services.
Repository layoutThe top-level folders, how the backend and the web app are organised inside, and which files are leftovers.
Working on eDGR
The dev stack, the three env files, ports, schema pushes and seed data.
Testing and evalsThe unit suites, the agent evaluation scenarios and the campaign check.
Code standardsThe checks each app has, the patterns the code follows, commit messages.
Deployment and operationsThe release pipeline, schema changes, health checks and rollback.
Maintaining these docsWriting pages, diagrams, screenshots, illustrations and translations.
Inside the system
Accounts and workspaces, CRM, content and knowledge, channels, tracking, the data model and API conventions.
Campaign engineOne durable workflow per person: runs, audience snapshots, waits, branches and the steps.
AI reply agentThe agent’s turn, its tools, the confidence threshold, memory, fit scoring and model providers.
FrontendRoutes, features, data fetching, the inbox stream and the redesign B kit.
Quick commands
cp .env.example .env && cp backend/.env.example backend/.env && cp frontend/.env.example frontend/.env.local
docker compose up -d # http://localhost:5173cd backend && bun run test
cd frontend && bun run testcd docs && bun run build:internal