Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
JavaScript 87.0%
Go 7.7%
HTML 3.6%
CSS 1.5%
Makefile 0.1%
Dockerfile 0.1%
113 1 0

Clone this repository

https://tangled.org/diffdown.com/diffdown-app https://tangled.org/did:plc:lk7yfq7ptqomn32rfnzw3osg/diffdown-app
git@tangled.org:diffdown.com/diffdown-app git@tangled.org:did:plc:lk7yfq7ptqomn32rfnzw3osg/diffdown-app

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

Diffdown#

Collaborative Markdown editor with real-time preview, version history, and multi-file repository support.

Running locally#

# Set env vars (or use defaults for dev)
export DIFFDOWN_SESSION_SECRET="your-secret-here"
export BASE_URL="http://127.0.0.1:8080"

# Build and run
go build -o diffdown ./cmd/server
./diffdown

Server starts on :8080.

Note on CodeMirror#

The editor template references CodeMirror 6 modules at /static/vendor/codemirror.js and /static/vendor/codemirror-lang-markdown.js. You'll need to bundle these yourself (or use a CDN). A quick way:

npm init -y
npm install @codemirror/state @codemirror/view @codemirror/lang-markdown codemirror
npx esbuild --bundle --format=esm --outfile=static/vendor/codemirror.js node_modules/codemirror/dist/index.js
npx esbuild --bundle --format=esm --outfile=static/vendor/codemirror-lang-markdown.js node_modules/@codemirror/lang-markdown/dist/index.js