Technical overview
How MDW works.
Two ways to read Markdown. Open https:// like an ordinary website, or open a signed site by its mdw:// address.
- Publish The author signs a manifest of file hashes and announces a pointer to the signed version.
- Find A reader resolves a known address or discovers a site through search. The DHT helps it find current pointers and devices.
- Fetch and verify A device serves the files. The reader verifies the site signature and the bytes before showing the page as signed.
A site’s address comes from its key.
Each site uses its own Ed25519 signing key. An mdw:// address identifies the site’s public key and a page path. The signed manifest binds a version to the file paths and hashes. A signed pointer advertises the newest announced version. The same address can open from several devices and still refer to one signer.
Markmallow uses BitTorrent’s distributed hash table for discovery and signed pointers, including BEP 44 mutable records. The DHT carries small records. Devices and HTTP mirrors carry page bytes.
Search finds candidates.
Directors index searchable site listings and can index public Markdown on the ordinary web. A reader can ask known devices and public directors for matches, then check the signed site itself. The Web only setting leaves peer networking off while HTTPS Markdown and web feeds still work.
An unsigned HTTP page is fetched from its web address. The browser labels it as unsigned. A search result, a reachable host, and a verified page are distinct outcomes.
Devices move the files.
Iroh opens an authenticated QUIC connection to another device. It tries a direct route and can use an encrypted relay if the devices cannot connect directly. The receiver checks the manifest signature and the content hash regardless of which device served the file.
- Publisher
- Writes the site and signs each new version. Publishing keys stay in the system keystore.
- Keeper or publishing host
- Serves a verified copy while the original device is offline. Availability depends on a reachable device or mirror holding the requested version.
- Director
- Suggests matching sites from listings and can index public Markdown URLs. It cannot grant a site a valid author signature.
- Registry
- Resolves readable device names such as
jdb.phone.mdwto device IDs. A device ID identifies an installation. A site key identifies a publication.
Searchable and unlisted sites.
Searchable sites can appear in public search and assist shared discovery. Unlisted sites are intended for opening from a link. A site can be copied after someone receives it. Removing a listing or publishing a version without a page affects future discovery or reads of the current version. Readers may still have copies they already saved.