๐ช MarkWay
June 3, 2026 ยท View on GitHub
๐ช MarkWay
An HTTP protocol standard that empowers AI Agents to browse the web with clarity and intelligence.
English ยท ็ฎไฝไธญๆ ยท ็น้ซไธญๆ
โจ The Vision
Web โ Markdown โ Agent
The web was built for humans, not machines. MarkWay bridges the gap by providing a Markdown-first protocol that speaks the language AI understands best โ structured, semantic content. No more fragile HTML parsing. No more JavaScript rendering overhead.
โโโโโโโโโโโโ MarkWay โโโโโโโโโโโโโโโโ Structured โโโโโโโโโโโโ
โ โ โโ- Protocol โโโบ โ โ โโ- Markdown โโโโโบ โ โ
โ Web โ โ MarkWay โ โ AI โ
โ Server โ โโโ Markdown โโ โ Server โ โโโ Requests โโโ โ Agent โ
โ โ โ โ โ โ
โโโโโโโโโโโโ โโโโโโโโโโโโโโโโ โโโโโโโโโโโโ
๐ฏ Why MarkWay?
Traditional web browsing for AI Agents is painful:
| Challenge | Traditional Web | MarkWay |
|---|---|---|
| Parsing | Complex HTML + DOM tree | Pure Markdown |
| Rendering | JavaScript execution needed | Static text, no JS |
| Navigation | Inconsistent class names | Structured index.md tables |
| Discovery | Crawling & guessing | Built-in protocol endpoint |
| Bandwidth | Bloated HTML/CSS/JS | Minimal text payload |
๐ How It Works
MarkWay operates in two modes, both serving content directly as Markdown:
๐ Static Mode
For document-oriented sites with fixed content โ just serve .md files.
- Every directory contains an
index.mdwith a structured table of contents - All links end with
.mdfor consistency - Supports relative, absolute, and external paths
https://docs.example.com
> This site follows the MarkWay Protocol: https://docs.example.com/protocol.md
# Documentation Directory
| Address | Description |
|---------|-------------|
| ./getting-started.md | Getting Started guide for new users |
| ./api/index.md | API Reference with all endpoints |
| ./examples/index.md | Real-world usage examples |
โก Dynamic Mode
For interactive endpoints requiring data exchange.
| Method | Purpose | Response |
|---|---|---|
GET | Retrieve documentation | Markdown (no URL params) |
POST | Data exchange | Markdown or JSON via Accept header |
# Get API documentation
GET /api/users
# โ Returns Markdown docs for this endpoint
# Execute a query
POST /api/users
Content-Type: application/json
{"id": 123}
# โ Returns user data as Markdown table or JSON
๐ Protocol Discovery
Every MarkWay site announces itself at the root entry point:
| Mode | Entry Point | Protocol Document |
|---|---|---|
| Static | /index.md | {baseURL}/protocol.md |
| Dynamic | / | {baseURL}/protocol |
Agents simply follow the protocol link to understand the full site structure โ no guesswork, no crawling.
๐ Quick Start
For Site Owners
- Serve your content as Markdown files
- Add an
index.mdto each directory with a table listing files and descriptions - Link to the protocol document from the root request
For AI Agent Developers
- Detect MarkWay sites via
/protocolor/protocol.md - Parse
index.mdtables to navigate the site structure - Use
GETfor docs,POSTfor data exchange
For AI Agent Platforms
MarkWay ships a ready-to-use skill that lets your agents automatically discover and interact with MarkWay sites:
skills/markway/
Include it in your agent's skill registry to enable instant MarkWay protocol support.
๐ Protocol Specification
The complete specification is available in three languages:
| Language | Document |
|---|---|
| English | protocol_en.md |
| ็ฎไฝไธญๆ | protocol.md |
| ็น้ซไธญๆ | protocol_zh_TW.md |
๐ Sites Using MarkWay
| Site | URL | Description |
|---|---|---|
| SparkGlobe | SparkGlobe | An AI Agent skill navigator built on the MarkWay protocol |
| ZIWEI.ONE | ziwei.one | Purple Star Astrology divination tool for Agents |
Add your site โ Fork the repo, add your site to index.md, and submit a PR!
๐ก Use Cases
๐ API DocumentationHuman-readable docs that AI Agents parse flawlessly โ no OpenAPI overhead. |
๐ง Knowledge BasesStructured information accessible to both humans and AI, from the same source. |
๐ Data ServicesSelf-documenting query endpoints. Agents discover capabilities automatically. |
๐ค AI-Native AppsBuild web services designed from the ground up for Agent consumption. |
๐ค Contributing
We welcome contributions! Here's how you can help:
- ๐ Report issues โ Found a bug? Open an issue.
- ๐ก Propose ideas โ Suggestions for protocol improvements.
- ๐ Submit PRs โ Code contributions and documentation fixes.
- ๐ Add your site โ Adopt MarkWay and list it in the index.
๐ License
This project is licensed under the MIT License.
MarkWay โ The web, reimagined for the age of AI. ๐ช