{"id":51295449,"url":"https://github.com/bitcryptic-gw/mdf","last_synced_at":"2026-06-30T14:02:06.192Z","repository":{"id":359754443,"uuid":"1247353472","full_name":"bitcryptic-gw/mdf","owner":"bitcryptic-gw","description":"MDF (Markdown First) — open web architecture proposal for native markdown serving, agent-readable content, and price-as-access-policy","archived":false,"fork":false,"pushed_at":"2026-06-09T14:02:48.000Z","size":131,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-09T16:06:24.123Z","etag":null,"topics":["ai","ai-agents","bitcoin","http","l402","markdown","markdown-first","mdf","open-source","self-hosted","web-standards","x402"],"latest_commit_sha":null,"homepage":"https://mdf-demo.bitcryptic.com","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitcryptic-gw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-23T07:40:33.000Z","updated_at":"2026-06-09T14:15:42.000Z","dependencies_parsed_at":"2026-06-09T16:03:18.249Z","dependency_job_id":null,"html_url":"https://github.com/bitcryptic-gw/mdf","commit_stats":null,"previous_names":["bitcryptic-gw/mdf"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bitcryptic-gw/mdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcryptic-gw","download_url":"https://codeload.github.com/bitcryptic-gw/mdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34969682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-agents","bitcoin","http","l402","markdown","markdown-first","mdf","open-source","self-hosted","web-standards","x402"],"created_at":"2026-06-30T14:02:05.413Z","updated_at":"2026-06-30T14:02:06.177Z","avatar_url":"https://github.com/bitcryptic-gw.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# MDF — Markdown First\n\n\u003e A proposal for a web content architecture where markdown is the source of truth, agents are first-class citizens, and access policy is expressed through price.\n\n**Status:** Draft · Seeking community feedback  \n**Authors:** Gary Walker / [BitCryptic™](https://bitcryptic.com) · Graham Hall / [Slepner](https://slepner.com.au)\n\n---\n\n## The problem in one paragraph\n\nAI agents are now among the most frequent consumers of web content, yet the web serves them HTML — a format built for human eyes. Agents must strip navigation, ads, scripts, and layout markup to reach the content underneath, wasting 5–10× the tokens actually needed. MDF proposes a simple, open architecture to fix this: markdown as the canonical source, HTTP content negotiation for delivery, and an optional payment layer that doubles as access policy.\n\n## What MDF proposes\n\n- **Markdown-first authoring** — markdown is the source of truth; HTML is rendered from it for browsers, not the other way around\n- **Native agent serving** — `Accept: text/markdown` returns clean markdown at the same URL, no conversion middleware required\n- **Structured discovery** — `/mdf.json` advertises capabilities, pricing, and content signals in a machine-readable format that agents can query before fetching\n- **Price as access policy** — a single price field unifies open access, micropayment, and private/authenticated access into one continuous spectrum, using the x402 (EVM/stablecoin) and L402 (Bitcoin/Lightning) payment standards\n\n## How the price spectrum works\n\n| Price | What it means |\n|-------|--------------|\n| `$0.00` | Open — serve immediately, no payment required |\n| `$0.0001` | Micropayment — small per-fetch fee offsets creator costs; cheaper for AI operators than fetching and parsing HTML |\n| `$1.00+` | Premium — meaningful payment for gated content |\n| `$100.00+` | Private — payment triggers an auth token issuance rather than immediate delivery |\n\n## Read the full proposal\n\n→ [CONCEPT.md](./CONCEPT.md)\n\nThe concept document covers the full architecture, existing partial solutions, open questions, and the reference implementation plan.\n\n## Current status\n\n- [x] Concept document published\n- [x] `mdf.schema.json` — JSON Schema for `/mdf.json`\n- [x] Reference implementation — `bitcryptic/mdf-server` on Docker Hub (`bitcryptic-gw/mdf-reference-server`)\n- [x] Demo site — https://mdf-demo.bitcryptic.com — live end-to-end demonstration of all three payment tiers\n- [x] x402 payment verification stub (EVM/stablecoin rail)\n- [x] L402 payment verification stub (Bitcoin/Lightning rail)\n- [x] Atom feed with `mdf:change_type` namespace — live at https://mdf-demo.bitcryptic.com/feed.xml\n- [x] Validator CLI — `bitcryptic-gw/mdf-validator`\n- [ ] On-chain x402 payment verification (stub → production)\n- [x] Lightning invoice verification for L402 (stub → production)\n\n## Live Demo\n\nA reference implementation is publicly deployed at **https://mdf-demo.bitcryptic.com**\n\nTry it now:\n\n```bash\n# Discover the site's MDF capabilities\ncurl https://mdf-demo.bitcryptic.com/mdf.json\n\n# Fetch the agent index\ncurl https://mdf-demo.bitcryptic.com/llms.txt\n\n# Request markdown directly (agent-style)\ncurl -H \"Accept: text/markdown\" https://mdf-demo.bitcryptic.com/\n\n# Free content — no payment required\ncurl -H \"Accept: text/markdown\" https://mdf-demo.bitcryptic.com/docs/getting-started\n\n# Paid content — returns 402 with payment instructions\ncurl -H \"Accept: text/markdown\" https://mdf-demo.bitcryptic.com/premium/deep-dive\n\n# Private content — returns 402 with auth endpoint hint\ncurl https://mdf-demo.bitcryptic.com/private/internals\n\n# Atom feed with mdf:change_type metadata\ncurl https://mdf-demo.bitcryptic.com/feed.xml\n```\n\nThe demo site exercises all three payment tiers and the full auth-via-payment flow. Both x402 (EVM) and L402 (Lightning) payment rails are stubbed — no real transaction is required to explore the protocol behaviour.\n\n## Ecosystem\n\n### MDF Analytics for WordPress\nA WordPress plugin that tracks AI agent traffic and `Accept: text/markdown` requests to your site, with a dashboard showing estimated earnings from MDF-enabled content. Phase 1 of a planned full MDF integration for WordPress including wallet connection and automatic markdown generation.\n\n→ [bitcryptic-gw/mdf-analytics-wp](https://github.com/bitcryptic-gw/mdf-analytics-wp)\n\n## Get involved\n\nThis is an early-stage community proposal. The open questions section of the concept document is a good starting point for discussion.\n\n- **Discuss:** Open an issue\n- **Implement:** Build an MDF-compatible server or client and link it here\n- **Challenge:** If you think this is wrong, redundant, or misses something — say so\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcryptic-gw%2Fmdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcryptic-gw%2Fmdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcryptic-gw%2Fmdf/lists"}