Skip to content

experintellia/md-docs

Repository files navigation

MD-Docs

A collaborative, Obsidian-style markdown editor that runs as a webxdc app — a single .xdc file you send into a chat, where everyone in the group can edit the same document together, offline-first.

MD-Docs editor

Built on CodeMirror 6 with a custom live-preview layer (raw markdown that renders formatting inline as you type), Yjs CRDT collaboration via y-webxdc, and a touch-friendly editing toolbar. See CREDITS.md for inspiration and attribution and PLAN.md for the design and roadmap.

Status: early development. See PLAN.md for the phased plan.

Development

Install

npm install

Run

Runs the Vite dev server and the webxdc-dev simulator (which provides webxdc.js and lets you open multiple simulated peers):

npm start

Check / lint

npm test        # typecheck + eslint
npm run fix     # auto-fix lint

Build

Produces dist-release/md-docs.xdc:

npm run build

Send the .xdc into a chat in any webxdc-capable messenger (e.g. Delta Chat).

To bundle the Eruda on-device console:

ERUDA=1 npm run build

Release

Push a vX.Y.Z tag; the GitHub Action in .github/workflows/release.yml builds the .xdc and attaches it to a GitHub Release:

git tag v0.1.0
git push origin v0.1.0

Every push and pull request also runs CI (.github/workflows/ci.yml): typecheck, lint and build.

About

Collaborative markdown editor for webxdc (CodeMirror 6 + Yjs)

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Contributors