Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com
at main 28 lines 955 B view raw view rendered
1# Diffdown 2 3Collaborative Markdown editor with real-time preview, version history, and multi-file repository support. 4 5## Running locally 6 7```bash 8# Set env vars (or use defaults for dev) 9export DIFFDOWN_SESSION_SECRET="your-secret-here" 10export BASE_URL="http://127.0.0.1:8080" 11 12# Build and run 13go build -o diffdown ./cmd/server 14./diffdown 15``` 16 17Server starts on `:8080`. 18 19## Note on CodeMirror 20 21The 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: 22 23```bash 24npm init -y 25npm install @codemirror/state @codemirror/view @codemirror/lang-markdown codemirror 26npx esbuild --bundle --format=esm --outfile=static/vendor/codemirror.js node_modules/codemirror/dist/index.js 27npx esbuild --bundle --format=esm --outfile=static/vendor/codemirror-lang-markdown.js node_modules/@codemirror/lang-markdown/dist/index.js 28```