๐Ÿช MarkWay

June 3, 2026 ยท View on GitHub

๐Ÿช MarkWay

An HTTP protocol standard that empowers AI Agents to browse the web with clarity and intelligence.

License: MIT Protocol Sites

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:

ChallengeTraditional WebMarkWay
ParsingComplex HTML + DOM treePure Markdown
RenderingJavaScript execution neededStatic text, no JS
NavigationInconsistent class namesStructured index.md tables
DiscoveryCrawling & guessingBuilt-in protocol endpoint
BandwidthBloated HTML/CSS/JSMinimal 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.md with a structured table of contents
  • All links end with .md for 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.

MethodPurposeResponse
GETRetrieve documentationMarkdown (no URL params)
POSTData exchangeMarkdown 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:

ModeEntry PointProtocol 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

  1. Serve your content as Markdown files
  2. Add an index.md to each directory with a table listing files and descriptions
  3. Link to the protocol document from the root request

For AI Agent Developers

  1. Detect MarkWay sites via /protocol or /protocol.md
  2. Parse index.md tables to navigate the site structure
  3. Use GET for docs, POST for 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:

LanguageDocument
Englishprotocol_en.md
็ฎ€ไฝ“ไธญๆ–‡protocol.md
็น้ซ”ไธญๆ–‡protocol_zh_TW.md

๐ŸŒ Sites Using MarkWay

SiteURLDescription
SparkGlobeSparkGlobeAn AI Agent skill navigator built on the MarkWay protocol
ZIWEI.ONEziwei.onePurple 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 Documentation

Human-readable docs that AI Agents parse flawlessly โ€” no OpenAPI overhead.

๐Ÿง  Knowledge Bases

Structured information accessible to both humans and AI, from the same source.

๐Ÿ”„ Data Services

Self-documenting query endpoints. Agents discover capabilities automatically.

๐Ÿค– AI-Native Apps

Build 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. ๐Ÿช