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

github.com/papermark/papermark @v0.22.0

repository ↗ · DeepWiki ↗ · release v0.22.0 ↗ · Ask this repo → · + Follow
2,330 symbols 7,550 edges 1,052 files 29 documented · 1% updated 2d agov0.22.0 · 2025-12-06★ 8,772102 open issues
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

MultiSelectProps (Interface)
* Props for MultiSelect component
components/ui/multi-select-v2.tsx
RedisLockerOptions (Interface)
* RedisLocker is an implementation of the Locker interface that manages locks in key-value store using Redis. * This cl
lib/files/tus-redis-locker.ts
Article (Interface)
(no doc)
components/profile-menu.tsx
Article (Interface)
(no doc)
components/search-command.tsx
FileWithPaths (Interface)
(no doc)
components/upload-zone.tsx
ProfileSearchTriggerProps (Interface)
(no doc)
components/profile-search-trigger.tsx
UploadNotificationDrawerProps (Interface)
(no doc)
components/upload-notification.tsx
ExportStatus (Interface)
(no doc)
components/documents/export-visits-modal.tsx

Core symbols most depended-on inside this repo

cn
called by 370
lib/utils.ts
useTeam
called by 158
context/team-context.tsx
log
called by 125
lib/utils.ts
errorhandler
called by 108
lib/errorHandler.ts
create
called by 102
ee/features/storage/s3-store.ts
usePlan
called by 65
lib/swr/use-billing.ts
useAnalytics
called by 45
lib/analytics/index.ts
determineTextColor
called by 39
lib/utils/determine-text-color.ts

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