MCPcopy Index your code
hub / github.com/papermark/papermark

github.com/papermark/papermark @v0.22.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.22.0 ↗ · + Follow
2,330 symbols 7,550 edges 1,052 files 29 documented · 1% 60 cross-repo links updated 1d agov0.22.0 · 2025-12-06★ 8,780102 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Papermark

The open-source DocSend alternative.

Papermark - The open-source DocSend alternative | Product Hunt

papermark.com

GitHub Repo stars Twitter Follow License

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

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

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

2. Install npm dependencies

npm install

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

cp .env.example .env

4. Initialize the database

npm run dev:prisma

5. Run the dev server

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:

  1. 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
  2. Download the Tinybird CLI from here and install it on your system.
  3. After authenticating with the Tinybird CLI, navigate to the lib/tinybird directory: sh cd lib/tinybird
  4. Push the necessary data sources using the following command: sh tb push datasources/* tb push endpoints/get_*
  5. Don't forget to set the TINYBIRD_TOKEN with the appropriate rights in your .env file.

Updating Tinybird

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 ✨

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 2,003
Interface 236
Method 65
Class 24
Enum 2

Languages

TypeScript100%

Modules by API surface

lib/utils.ts43 symbols
ee/features/permissions/components/permissions-sheet.tsx24 symbols
lib/redis-job-store.ts20 symbols
components/view/viewer/pages-vertical-viewer.tsx20 symbols
components/datarooms/groups/group-permissions.tsx19 symbols
components/view/viewer/pages-horizontal-viewer.tsx18 symbols
components/documents/document-header.tsx17 symbols
lib/types.ts15 symbols
lib/tracking/video-tracking.ts15 symbols
components/datarooms/add-dataroom-modal.tsx15 symbols
components/welcome/dataroom-ai-generate.tsx14 symbols
lib/files/tus-redis-locker.ts13 symbols

Dependencies from manifests, versioned

@aws-sdk/client-lambda3.940.0 · 1×
@aws-sdk/client-s33.940.0 · 1×
@aws-sdk/cloudfront-signer3.935.0 · 1×
@aws-sdk/lib-storage3.940.0 · 1×
@aws-sdk/s3-request-presigner3.940.0 · 1×
@calcom/embed-react1.5.3 · 1×
@chronark/zod-bird0.3.10 · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@github/webauthn-json2.1.1 · 1×
@hookform/resolvers5.2.2 · 1×

Datastores touched

papermark-shadow-dbDatabase · 1 repos

For agents

$ claude mcp add papermark \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page