hacker news Hacker News
  1. new
  2. show
  3. ask
  4. jobs
I recently saw a post from the Vercel CEO pointing out that LLMs understand websites much better when they can request:

`Accept: text/markdown`

Most websites today are built for humans. When AI agents try to consume them, they get complex HTML instead of clean, structured content.

So I built *accept-md* – a simple open-source package for Next.js that helps solve this.

Getting started is intentionally minimal:

``` npx accept-md init ```

After that, your existing Next.js routes can automatically respond with Markdown whenever an AI agent (or any client) requests it. No redesigns, no CMS changes, and no duplicate pages to maintain.

Right now the project is:

* Focused only on Next.js * Middleware-based and lightweight * Designed to work with existing apps * A small step toward more AI-friendly websites

This is an early experiment, but I think the idea itself matters as AI agents become first-class consumers of the web.

I’ve open-sourced it and would love help with:

* Better markdown extraction * Edge cases across Next.js setups * Performance and caching * Tests and examples * Documentation * Eventually adapters for other frameworks

Would love feedback from the HN community on the approach – and whether `Accept: text/markdown` feels like a pattern worth standardizing for the AI-native web.

loading...