papermark /papermark

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

★ 9,367⑂ 1,430👁 27⑃ 1,518● 690▤ 14
TypeScriptNOASSERTIONCreated 2023-05-29www.papermark.com
Download: v0.22.0v0.22.0 ↓0.22.02025-12-06
+3
Daily
9,367
stars
1,430
forks
27
watchers
1,518
prs
690
issues
14
releases

README

Papermark
  The open-source DocSend alternative.






  papermark.com





  
  
  




Papermark is the open-source document-sharing alternative to DocSend, featuring built-in analytics and custom domains.

 Features

- Shareable Links: Share your documents securely by sending a custom link.
- Custom Branding: Add a custom domain and your own branding.
- Analytics: Gain insights through document tracking and soon page-by-page analytics.
- Self-hosted, Open-source: Host it yourself and customize it as needed.

 Demo

!Papermark Welcome GIF

 Tech Stack

- Next.js – Framework
- TypeScript – Language
- Tailwind – CSS
- shadcn/ui - UI Components
- Prisma - ORM 
- PostgreSQL - Database
- NextAuth.js – Authentication
- Tinybird – Analytics
- Resend – Email
- Stripe – Payments
- Vercel – Hosting

 Getting Started

 Prerequisites

Here's what you need to run Papermark:

- Node.js (version = 18.17.0)
- PostgreSQL Database
- Blob storage (currently AWS S3 or Vercel Blob)
- Resend (for sending emails)

 1. Clone the repository

shell
git clone https://github.com/mfts/papermark.git
cd papermark


 2. Install npm dependencies

shell
npm install


 3. Copy the environment variables to .env and change the values

shell
cp .env.example .env


 4. Initialize the database

shell
npm run dev:prisma


 5. Run the dev server

shell
npm run dev


 6. Open the app in your browser

Visit http://localhost:3000 in your browser.

 Tinybird Instructions

To prepare the Tinybird database, follow these steps:

0. We use pipenv to manage our Python dependencies. If you don't have it installed, you can install it using the following command:
   sh
   pkgx pipenv
   
1. Download the Tinybird CLI from here and install it on your system.
2. After authenticating with the Tinybird CLI, navigate to the lib/tinybird directory:
   sh
   cd lib/tinybird
   
3. Push the necessary data sources using the following command:
   sh
   tb push datasources/
   tb push endpoints/get_
   
4. Don't forget to set the TINYBIRD_TOKEN with the appropriate rights in your .env file.

 Updating Tinybird

sh
pipenv shell
 start: pkgx-specific
cd ..
cd papermark
 end: pkgx-specific
pipenv update tinybird-cli


 Contributing

Papermark is an open-source project, and we welcome contributions from the community.

If you'd like to contribute, please fork the repository and make any changes you'd like. Pull requests are warmly welcome.

 Our Contributors ✨

Top issues

Discussions

Latest release

v0.22.0 v0.22.0 2025-12-06
Highlights

 AI Data Rooms Generation 

We continue to enhance AI functionalities for data rooms, leveraging the AI components already implemented for you. We recently introduced smart, AI-driven data-room structures.





 Slack Notifications

Receive instant view notifications for documents and data rooms inside your Slack channel. One click to connect. 




 Hierarchical Auto-Index

For large data rooms, it's quite annoying to make sure the index numbers are correct and in order.
Our auto-index creates a hierarchical index based on the current folders, documents and subf

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON