Documenso architecture.
Documenso is an open-source document signing platform. Nodeway mapped the documenso/documenso repository at commit 3cfdf7f, from 27 November 2026, and found 2,209 source files, 3,038 functions, classes and components, 103 routes and 58 database tables. This page is drawn from that map.
- Source files
- 2,209
- Functions and classes
- 3,038
- Confirmed calls
- 6,049
- Routes
- 103
- Tables
- 58
How the code is laid out
Most of it is TypeScript: 2,183 files of 2,209, followed by JavaScript (14) and Shell (11).
The repository is split into 14 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are packages/lib (642 files), apps/remix (640 files), packages/trpc (492 files), packages/ui (134 files), packages/email (81 files) and packages/ee (63 files).
These are its top-level folders by number of source files, with 3 more files at the root. The biggest ones show their own largest folders underneath.
- packages/1,504 files41 routes · 58 tables
- lib/package642 files
- trpc/package492 files
- ui/package134 files
- email/package81 files
- ee/package63 files3 routes
- auth/package39 files36 routes
- apps/690 files62 routes
- remix/package640 files17 routes
- openpage-api/package26 files38 routes
- docs/package24 files7 routes
- docker/4 files
- .agents/skills/agent-browser/templates/3 files
- scripts/3 files
- .devcontainer/2 files
Where the code starts
Nodeway looked for files that define a main function, and for files named like a starting point (main, server, app, cli and similar) that at most one other file imports, then for index files that nothing imports. Ranked that way, then by how many files each one reaches through its imports:
| File | Reaches |
|---|---|
| packages/prisma/seed/analytics-seed.tsdefines main | 163 files |
| packages/prisma/seed/large-team-seed.tsdefines main | 116 files |
| scripts/generate-content-alignment-test-pdf.mjsdefines main | – |
| scripts/generate-overflow-test-pdf.mjsdefines main | – |
| packages/ui/primitives/signature-pad/index.ts | 21 files |
Routes
Nodeway found 103 routes, 2 of them pages, and linked 44 to the function that handles them. The rest by HTTP method: GET 52, POST 28, OPTIONS 19, ALL 1, DELETE 1. Most are under apps/openpage-api (38), packages/auth (36) and apps/remix (17).
Some of them
| Route | Method |
|---|---|
| /GET · apps/openpage-api/app/route.ts | GET |
| /githubGET · apps/openpage-api/app/github/route.ts | GET |
| /growthGET · apps/openpage-api/app/growth/route.ts | GET |
| /llms.txtGET · apps/docs/src/app/llms.txt/route.ts | GET |
| /communityGET · apps/openpage-api/app/community/route.ts | GET |
| /github/prsGET · apps/openpage-api/app/github/prs/route.ts | GET |
| /github/forksGET · apps/openpage-api/app/github/forks/route.ts | GET |
| /github/starsGET · apps/openpage-api/app/github/stars/route.ts | GET |
Data model
Nodeway found 58 database tables, defined with Prisma. Code in the repository reads or writes 58 of them. The most used:
| Table | Used by |
|---|---|
| Envelope26 columns · links to DocumentMeta, Folder and Team · packages/prisma/schema.prisma | 143 read38 write |
| Recipient21 columns · links to Envelope · packages/prisma/schema.prisma | 61 read38 write |
| User17 columns · links to AvatarImage · packages/prisma/schema.prisma | 73 read25 write |
| Organisation12 columns · links to AvatarImage, OrganisationAuthenticationPortal and OrganisationClaim · packages/prisma/schema.prisma | 76 read16 write |
| Team7 columns · links to AvatarImage, Organisation and TeamGlobalSettings · packages/prisma/schema.prisma | 67 read9 write |
| DocumentAuditLog10 columns · links to Envelope · packages/prisma/schema.prisma | 10 read47 write |
| Field16 columns · links to Envelope, EnvelopeItem and Recipient · packages/prisma/schema.prisma | 16 read28 write |
| OrganisationMember5 columns · links to Organisation and User · packages/prisma/schema.prisma | 18 read5 write |
One request, traced
Nodeway followed GET /growth/completed-documents from its route to the code that handles it, then along confirmed calls until it reached the Envelope table.
- GET /growth/completed-documentsroute · apps/openpage-api/app/growth/completed-documents/route.ts
- GETfunction · apps/openpage-api/app/growth/completed-documents/route.ts:4
- getCompletedDocumentsMonthlyfunction · apps/openpage-api/lib/growth/get-monthly-completed-document.ts:7
- Envelopetable · read here
The most-called code
Ranked by how many different functions call each one, counting only calls the analyzer could confirm from the code. These are often the helpers worth reading first.
| Function | Callers |
|---|---|
| cnfunction · packages/ui/lib/utils.ts | 314 |
| useToasthook · packages/ui/primitives/use-toast.ts | 218 |
| toastfunction · packages/ui/primitives/use-toast.ts | 217 |
| parseErrormethod · packages/lib/errors/app-error.ts | 98 |
| NEXT_PUBLIC_WEBAPP_URLfunction · packages/lib/constants/app.ts | 91 |
| envfunction · packages/lib/utils/env.ts | 83 |
| useCurrentOrganisationhook · packages/lib/client-only/providers/organisation.tsx | 69 |
| buildTeamWhereQueryfunction · packages/lib/utils/teams.ts | 56 |
Open this repo in Nodeway
Nodeway is a desktop app that draws this map on your own computer, so you can click into any folder, read the code beside the map and trace a request yourself. Clone the repository:
git clone https://github.com/documenso/documenso.git- Install Nodeway for macOS, Windows or Linux: the getting started guide has every installer.
- Open the cloned folder. The first map is drawn on your machine and nothing is uploaded.
- Search for
cnand trace what it calls, or pick a route and follow it to the database.
New to reading a codebase this size? See how to understand a large codebase and how to read a call graph.
Questions
What language is Documenso written in?
Mostly TypeScript: 2,183 of its 2,209 source files at commit 3cfdf7f, then JavaScript with 14.
Where does the Documenso code start?
The entry point that reaches the most code is packages/prisma/seed/analytics-seed.ts, which leads to 163 files through its imports.
How many routes does Documenso have?
Nodeway found 103 routes, 44 of them linked to a handler. The most are under apps/openpage-api.
What database tables does Documenso use?
58 tables, defined with Prisma. The most used are Envelope, Recipient and User.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of documenso/documenso at commit 3cfdf7f, committed on 27 November 2026. Tests, dependencies and build output are mostly left out. A call counts only when the analyzer could confirm its target from the code, so real totals are higher. The project will have changed since.