{"id":51295438,"url":"https://github.com/bitcryptic-gw/mdf-validator","last_synced_at":"2026-06-30T14:01:58.078Z","repository":{"id":360888110,"uuid":"1252145685","full_name":"bitcryptic-gw/mdf-validator","owner":"bitcryptic-gw","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-28T08:48:08.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-28T10:23:17.069Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bitcryptic-gw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-28T08:27:53.000Z","updated_at":"2026-05-28T08:48:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bitcryptic-gw/mdf-validator","commit_stats":null,"previous_names":["bitcryptic-gw/mdf-validator"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/bitcryptic-gw/mdf-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bitcryptic-gw","download_url":"https://codeload.github.com/bitcryptic-gw/mdf-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bitcryptic-gw%2Fmdf-validator/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":[],"created_at":"2026-06-30T14:01:52.972Z","updated_at":"2026-06-30T14:01:58.073Z","avatar_url":"https://github.com/bitcryptic-gw.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mdf-validator\n\nCLI tool to validate MDF (Markdown First) site compliance.\n\nFetches `/mdf.json` from a site, validates it against the MDF schema, checks `/llms.txt` reachability, and optionally verifies that content URLs respond with correct MDF headers.\n\n**Spec:** https://github.com/bitcryptic-gw/mdf  \n**Status:** v0.1.0 — schema validation + header checks\n\n---\n\n## Install\n\n### Run directly with Bun\n\n```bash\nbun run https://raw.githubusercontent.com/bitcryptic-gw/mdf-validator/main/src/index.ts -- https://your-site.com\n```\n\n### Build a standalone binary\n\n```bash\ngit clone https://github.com/bitcryptic-gw/mdf-validator.git\ncd mdf-validator\nbun install\nbun run build          # current platform\nbun run build:linux    # linux x64\nbun run build:mac      # macOS arm64\n```\n\nThe compiled binary has no runtime dependencies — copy it anywhere.\n\n---\n\n## Usage\n\n```bash\n# Validate /mdf.json schema\nmdf-validate https://mdf-demo.bitcryptic.com\n\n# Also check MDF response headers on a content URL\nmdf-validate --check-headers https://mdf-demo.bitcryptic.com\n\n# Machine-readable JSON output\nmdf-validate --json https://mdf-demo.bitcryptic.com\n\n# Custom timeout (ms)\nmdf-validate --timeout 5000 https://mdf-demo.bitcryptic.com\n```\n\n---\n\n## Output\n\n**Passing site:**\n```\n✅ https://mdf-demo.bitcryptic.com/mdf.json — valid (MDF v1.0)\n✅ https://mdf-demo.bitcryptic.com/llms.txt — reachable\n✅ https://mdf-demo.bitcryptic.com/ Content-Type — text/markdown ✓\n✅ https://mdf-demo.bitcryptic.com/ x-mdf-version — 1\n✅ https://mdf-demo.bitcryptic.com/ x-mdf-tokens — 847\n\n5/5 checks passed\n```\n\n**Failing site:**\n```\n❌ https://example.com/mdf.json — schema validation failed\n   pricing.default.currency: required field missing\n   payment.endpoint: additional property not allowed\n⚠️  https://example.com/llms.txt — not reachable (404)\n\n0 passed, 1 failed, 1 warnings\n```\n\n**JSON output:**\n```json\n{\n  \"summary\": {\n    \"passed\": 5,\n    \"failed\": 0,\n    \"warned\": 0,\n    \"total\": 5,\n    \"valid\": true\n  },\n  \"checks\": [...]\n}\n```\n\nExit code is `0` if all checks pass or warn, `1` if any check fails.\n\n---\n\n## What it checks\n\n| Check | Always | --check-headers |\n|-------|--------|-----------------|\n| `/mdf.json` fetchable | ✅ | ✅ |\n| `/mdf.json` valid JSON | ✅ | ✅ |\n| Schema validation (required fields, types, patterns) | ✅ | ✅ |\n| `/llms.txt` reachable | ✅ | ✅ |\n| Free content URL returns `text/markdown` | — | ✅ |\n| `X-MDF-Version` header present | — | ✅ |\n| `X-MDF-Tokens` header present | — | ✅ |\n\n---\n\n## Authors\n\n**Gary Walker** / [BitCryptic™](https://bitcryptic.com)  \n**Graham Hall** / [Slepner](https://slepner.com.au)\n\n---\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcryptic-gw%2Fmdf-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitcryptic-gw%2Fmdf-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitcryptic-gw%2Fmdf-validator/lists"}