GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - amiralibg/vellum: Self-hosted sharing for Markdown and HTML documents: upload a proposal, pitch or report, send a link.

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
apps
apps
 
 
docs
docs
 
 
mockups
mockups
 
 
packages
packages
 
 
scripts
scripts
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
GLOSSARY.md
GLOSSARY.md
 
 
README.md
README.md
 
 
docker-compose.prod.yml
docker-compose.prod.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.base.json
tsconfig.base.json
 
 

Repository files navigation

Vellum

A self-hosted place to upload Markdown or HTML and share it as a link.

Instead of attaching proposal.md or pitch.html to an email, you upload it to your own server and send https://docs.yourdomain.com/p/acme-proposal. The reader gets a properly rendered page. You get to change the file without changing the link, and you can see whether (and how far) it was read.

Status

The first version is complete: Markdown, HTML and zip uploads, publish settings and the /p/:slug reader, with password protection, link expiry, versions (upload and restore), unpublish and delete. Uploaded HTML is served only from USERCONTENT_URL, sandboxed, behind short-lived signed links. Views are counted without cookies (see "Analytics" below). It ships as one Docker image; see "Deploy".

Accounts are by invite (see "Accounts" below).

Development

Needs Node 22+, pnpm and Postgres (local, or docker compose up -d postgres).

pnpm install
cp .env.example .env    # then fill in SIGNING_SECRET and ENCRYPTION_KEY (openssl rand -base64 48)
pnpm dev                # dashboard on http://localhost:5180, API on :8000
pnpm test               # integration tests (needs the vellum_test database)

The first admin is created from OWNER_EMAIL / OWNER_PASSWORD on first boot. If no admin can sign in, set them to the account you want back and run pnpm --filter @vellum/api owner:reset.

Path What
apps/api Express + Postgres API, and the server-rendered reader pages (src/reader)
apps/web Vite + React dashboard
apps/cli The vellum command line tool (see "CLI")
packages/shared zod schemas and types shared by both
packages/ui Design tokens and components (theme.css, ported from the mockups) and the Geist fonts

The mockups stay the design source of truth:

open mockups/index.html

Every screen has a light theme and a dark theme with a pure black background. They follow the OS setting by default; the toggle in the bottom-left corner overrides it (saved in localStorage).

Screen File
Sign in (also the invite and password link pages) mockups/login.html
Documents (library + drop to upload) mockups/dashboard.html
Publish settings mockups/upload.html
Document detail (link, stats, versions) mockups/document.html
Markdown reader mockups/view-markdown.html
HTML document mockups/view-html.html
Password / expired / not found mockups/view-locked.html

MVP scope (proposed)

  • Upload .md, .html, or a .zip with an index.html plus its assets
  • Custom slug per document; the link stays the same when you upload a new version
  • Access: anyone with the link, or a password
  • Optional expiry date
  • View tracking without cookies: views, unique readers, reading time, scroll depth per section
  • Markdown rendering with a table of contents, print-to-PDF, and an optional "Reply" button
  • Invite-only accounts, each with their own private documents
  • A vellum CLI and API tokens, so agents can publish without the dashboard

Deploy

docker build -t vellum .    # the API, the reader pages and the dashboard in one image

docker-compose.prod.yml runs the image with Postgres. docs/deploy.md walks through deploying it with Dokploy: DNS for both origins, the Environment tab, domains, backups and the admin reset (node dist/owner-reset.js in the container).

Accounts

  • An admin makes an invite link on the Users page and sends it themselves; Vellum sends no email. Whoever opens it first picks their own email, name and password. Invites work once and expire after 7 days. Admins can revoke them before that.
  • Each person sees only their own documents and stats. Admins manage accounts but can't see other people's documents either.
  • Links (/p/:slug) are one namespace for everyone: first come, first served.
  • Invited users have limits on documents and storage (every version counts): USER_MAX_DOCUMENTS and USER_MAX_STORAGE_MB, or the admin's own numbers for that person. Admins have no limits.
  • Admins can make other people admins. There's always at least one enabled admin, and admins can't disable themselves.
  • Disabling an account signs it out and makes every one of its links show "not found" until it's enabled again. Nothing is deleted, and accounts can't be deleted.
  • A forgotten password: an admin makes a one-time password link (valid 24 hours). Using it signs out every device on that account.

CLI

vellum uploads to your account from a terminal, so agents can publish a file and hand you the link without you opening Vellum.

pnpm cli:install                          # builds it and installs `vellum` globally with npm
vellum login --url https://docs.yourdomain.com   # paste a token from Settings → API tokens
vellum upload report.md                   # prints the link and opens it in your browser
vellum upload report.md --slug q3-report  # a new version under a link you already shared
vellum upload ./site --password hunter22 --expires 7d   # a folder with an index.html is zipped for you
vellum install-skill                      # teaches Claude Code agents when and how to use it
  • It takes what the dashboard takes: .md, .html, a .zip with an index.html, or a folder with an index.html. vellum upload --help lists every option.
  • Uploads go live straight away, unless --draft. With --slug, a slug you already use gets a new version (an unpublished document goes live again), a free slug names a new document, and someone else's slug is refused.
  • The link goes to stdout and everything else to stderr; --json gives the whole result. --no-open skips the browser.
  • VELLUM_URL and VELLUM_TOKEN override what vellum login saved in ~/.config/vellum/config.json.
  • API tokens act as you, but only on your own documents: they list, upload, add versions, publish and change settings. They can't delete or unpublish, see stats, or touch your account, other tokens or admin pages. They don't expire; revoke them in Settings. A disabled account's tokens stop working. Every version a token uploads shows "via ".

Analytics

  • A view is counted when the reader page sends its first beacon (POST /p/:slug/beacon), never when the page is rendered, so link previews in WhatsApp, Slack or email don't count. Bots, headless browsers and the document's signed-in author are not counted (other signed-in users count as readers), and nothing is tracked when a document's "Track views" is off.
  • The beacon goes through the same gate as the page: a locked, expired or unpublished document refuses it.
  • No cookies and no IP addresses are stored. A visitor is a hash of IP + user agent + a salt that changes every day (UTC); salts older than two days are deleted, so visits can't be linked across days.
  • People is unique visitors per day, summed: someone who reads on two days counts twice.
  • Read to the end means the reader reached the last H2, or scrolled 90% of the document.
  • Markdown documents also report scroll depth, the H2 sections reached and the time the tab was visible. HTML documents count opens only, since the page itself runs sandboxed on another origin.
  • Country is stored only if a CDN in front sets CF-IPCountry. There's no GeoIP lookup.

Security notes

Uploaded HTML runs whatever scripts it contains, so it must never share an origin with the dashboard:

  • Serve uploaded HTML from a separate subdomain (e.g. usercontent.docs.yourdomain.com) inside a sandboxed iframe
  • Strict CSP on the dashboard origin; session cookies scoped to the dashboard host only
  • Sanitize rendered Markdown (no raw HTML passthrough unless explicitly allowed)
  • Password-protected documents are checked on the server before any content is served

Stack

Express 4 + TypeScript + Postgres for the API, React + Vite + Tailwind v4 for the dashboard, files on a mounted volume (DATA_DIR). It ships as one Docker image deployed with Dokploy.

About

Self-hosted sharing for Markdown and HTML documents: upload a proposal, pitch or report, send a link.

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.