Papermark is an open-source alternative to DocSend that enables teams to securely share and track documents with page-level analytics, custom domains, and enterprise-grade security. It’s designed for sales teams, venture capitalists, real estate agents, and startups who need to monitor how prospects interact with sensitive documents like pitch decks, contracts, and grant applications. Unlike closed SaaS tools, Papermark is fully self-hostable and built for organizations that demand control over their data.
Built with Next.js, TypeScript, and TailwindCSS, Papermark uses Prisma with PostgreSQL for data modeling, NextAuth.js for authentication, and Tinybird for real-time analytics. It supports AWS S3 or Vercel Blob for file storage, Resend for email, and Stripe for payments. The platform is deployed via Vercel and offers full infrastructure transparency through its open-source codebase.
What You Get
- Page-by-Page Analytics - Track how long viewers spend on each page of a document, with real-time insights into engagement patterns and drop-off points.
- Custom Domains & Branding - Replace Papermark’s default URLs with your own domain and apply custom logos, colors, and headers to maintain brand consistency.
- Secure Document Rooms - Create password-protected, time-limited data rooms to share multiple documents with controlled access and revocable links.
- Self-Hosted Deployment - Run Papermark on your own infrastructure using Docker or direct server deployment, ensuring full data sovereignty and compliance.
- AI-Powered Document Chat - Enable users to ask questions about documents using large language models, extracting insights without leaving the viewer.
- Real-Time Notifications - Get instant alerts when a document is opened, which pages are viewed, and how long viewers spend on each section.
- Multi-Region Data Centers - Choose where your data is stored (EU, US, UAE) with SOC 2, GDPR, CCPA, and HIPAA compliance support.
- 2FA & SSO Support - Enforce enterprise authentication with Two-Factor Authentication and Single Sign-On via NextAuth.js integrations.
- Bulk Document Upload - Upload and organize dozens of documents at once into structured data rooms for deal pipelines or grant submissions.
- Resend & Stripe Integration - Automate email delivery of document links and handle paid upgrades via a fully integrated payment system.
Common Use Cases
- Running a venture capital fund - Investors use Papermark to share pitch decks and term sheets with LPs, tracking engagement to prioritize follow-ups and measure interest.
- Sales teams scaling proposal sharing - Companies like Yuno use Papermark to equip 30+ sales reps with branded, trackable proposal links to identify hot leads.
- Real estate agents managing client documents - Agents share property listings, contracts, and disclosures securely with custom domains and track which pages clients review.
- Non-profits handling grant applications - Organizations track who opens grant packets, how long they spend on key sections, and ensure compliance with data privacy regulations.
Under The Hood
Architecture
- Clean separation of concerns with React/Next.js frontend organized into dedicated @/components and @/lib modules using path aliases for maintainability
- Backend API routes leverage Next.js App Router with Zod validation and Prisma ORM to enforce type-safe, team-based access control through user-team relationships
- Event-driven workflows powered by Trigger.dev, isolating business logic in step handlers to decouple orchestration from domain rules
- Redis and Tinybird serve as dedicated data layers for real-time analytics and caching, with typed ingestion endpoints for user interactions
- Email systems are decoupled via React components rendered by Resend, scheduled with precise timing using native Node.js async patterns
- Authentication is centralized through NextAuth with Prisma adapter, supporting Passkeys and SAML while isolating auth logic in dedicated configuration layers
Tech Stack
- Full-stack application built on Next.js 14 with React 18 and TypeScript, utilizing App Router and server components for optimized rendering
- Prisma 6.5.0 with PostgreSQL provides type-safe database operations and automated migrations
- Vercel serves as the deployment platform, leveraging Edge Config, Blob storage, and Serverless Functions for PDF processing and API endpoints
- Trigger.dev v4 orchestrates complex workflows with custom skills and Python-based agents for asynchronous tasks
- Radix UI and shadcn/ui with Tailwind CSS form a consistent, accessible design system
- AI SDKs for OpenAI and Google Vertex integrate seamlessly with Tiptap for rich text editing and React Email for dynamic content rendering
Code Quality
- Extensive test coverage across API routes, authentication flows, and background jobs ensuring robustness and reliability
- Clear modular organization following Next.js conventions, with domain-specific utilities and data-fetching hooks tightly coupled to their components
- Strong TypeScript type safety enforced through Prisma-generated types and explicit assertions in API handlers and SWR hooks
- Structured logging and centralized error capture improve observability, though custom error classes are not utilized
- Consistent naming and file structure promote readability and onboarding, with linting and CI/CD practices clearly implemented
What Makes It Unique
- Native AI-powered document chat agents embedded directly within datarooms, enabling contextual Q&A without external tooling
- Dynamic email notifications rendered with React Email, embedding real-time analytics links for personalized engagement tracking
- Per-user document watermarking and domain-based access controls enforced at the view layer for enhanced security
- Comprehensive dataroom branding engine that dynamically applies logos, colors, and welcome messages across all interfaces
- Automated export cleanup via Trigger.dev and Vercel Blob ensures efficient storage lifecycle management
- Server-side rendered document previews and Excel viewers with fingerprint-based session tracking for secure external access