Documenso Project Structure

The open-source alternative to DocuSign. Built with a focus on privacy and extensibility, Documenso uses a modern Next.js stack with Prisma for robust data management and Turborepo for an efficient development workflow.

Updated 2025-12-30

#documenso #nextjs #prisma #monorepo #turborepo #document-signing #open-source
PNGPDF

Project Directory

documenso/
apps/
Internal applications
remix/
Main web application (Next.js)
app/
Application source code
components/
pages/
documentation/
User guides and docs
openpage-api/
External API layer
packages/
Shared internal packages
prisma/
Database schema and Prisma client
ui/
Shared UI component library
lib/
Shared utilities and helpers
email/
Email templates and logic
docker/
Docker deployment files
turbo.json
Turborepo configuration
package.json
Root workspace

Repository Info

Tech Stack

  • Framework-Next.js
  • Language-TypeScript
  • Database-PostgreSQL with Prisma
  • Auth-NextAuth.js
  • Styling-Tailwind CSS
  • Monorepo-Turborepo + npm

Architecture Notes

Documenso is organized as a Next.js monorepo using Turborepo. Interestingly, its main application directory is named apps/remix, though it is fundamentally a Next.js application. This reflects a clean separation of concerns where core business logic is housed in shared packages like prisma and lib, while the delivery layers are kept in the apps/ directory. They place a strong emphasis on type safety and reusable components across the codebase.

Key Directories

  • apps/remix/-The primary user interface for signing and managing documents
  • packages/prisma/-The source of truth for the database schema and object-relational mapping
  • packages/ui/-A beautifully designed, shared UI library based on Radix UI
  • packages/lib/-A collection of shared business logic and utility functions

Why This Structure?

Documenso is an excellent example of how to build a security-conscious SaaS application using a modern JavaScript/TypeScript stack. Its clean architecture and use of standard industry tools make it a great reference for anyone building high-trust applications.

Share this template

Related Templates

© 2025 FolderStructure.dev