frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Serve Markdown to LLMs from your Next.js app

https://github.com/kasin-it/next-md-negotiate
1•kasin-it•1h ago

Comments

kasin-it•1h ago
LLMs are crawling your Next.js site. They're parsing 26 KB of HTML, scripts, and hydration data to extract 101 bytes of actual content.

RSC payloads. Script tags. Font preloads. All to render a title, a price, and a description.

The fix is already built into HTTP: content negotiation. Check the Accept header, respond accordingly. JSON for apps, XML for legacy systems, Markdown for LLMs. Backend developers do this all the time - but Next.js has no built-in way to handle it.

I built next-md-negotiate to close that gap.

It lets you define Markdown versions of your pages alongside your existing routes. Requests with `Accept: text/markdown` get transparently rewritten to your Markdown definitions. Browsers still get your normal HTML. Same URL. No duplicate routing.

Browser -> GET /products/42 Accept: text/html -> normal Next.js page

LLM agent -> GET /products/42 Accept: text/markdown -> clean Markdown

257x smaller payload. Fewer tokens in, better context out.

This also has a massive impact on crawl budget. Markdown responses are tiny compared to full HTML, so AI crawlers can index far more pages in the same amount of time. For e-commerce sites with thousands of product pages, this is critical - it can mean the difference between an AI agent seeing a fraction of your catalog vs nearly all of it.

Works with both App Router and Pages Router. Type-safe route params. Plugs into existing middleware or uses Next.js rewrites.

  npm install next-md-negotiate
  npx next-md-negotiate init
Two commands to scaffold everything.

Repo: https://github.com/kasin-it/next-md-negotiate

When you can't escape an interface, it institutionalises you

https://timmb.com/when-you-cant-escape-an-interface/
1•timmb•12m ago•0 comments

Show HN: AI Agent Team Framework

https://github.com/danilocaffaro/ai-agent-team-guide
1•caffaroai•13m ago•0 comments

Periodic Table

https://www.periodicspiral.com
1•downboots•13m ago•0 comments

Show HN: We analyzed 312 landing pages – most navigation flows are broken

1•epic_ai•14m ago•1 comments

There Are No Psychopaths

https://aeon.co/essays/psychopathy-is-a-zombie-idea-why-does-it-cling-on
1•limbicsystem•15m ago•0 comments

First known satellite image of Ayatollah Ali Khamenei's compound in Tehran

https://twitter.com/trbrtc/status/2027703248887427576
1•us321•20m ago•0 comments

Show HN: Prompt-run – run .prompt files against any LLM from the terminal

https://github.com/Maneesh-Relanto/Prompt-Run
1•maneeshthakur•21m ago•0 comments

Show HN: Windows Taskbar Monitor for Claude Code Usage (Rust, Open Source)

https://github.com/CodeZeno/Claude-Code-Usage-Monitor
1•codezeno•21m ago•1 comments

Who Is the Kimwolf Botmaster "Dort"?

https://krebsonsecurity.com/2026/02/who-is-the-kimwolf-botmaster-dort/
1•todsacerdoti•21m ago•0 comments

Show HN: hosted or self-hosted open-source Intercom alternative, Convex Backend

https://github.com/opencom-org/opencom
1•jackjayd•22m ago•0 comments

Lenna attended the 50th Anniversary IS&T conference

https://www.lenna.org/lenna_visit.html
1•Kiboneu•24m ago•1 comments

Cloudflare: Asynchronous Stale-While-Revalidate

https://developers.cloudflare.com/changelog/post/2026-02-26-async-stale-while-revalidate/
2•tosh•25m ago•0 comments

Trump announces 'major combat operation' in Iran

https://apnews.com/live/live-updates-israel-iran-february-28-2026
1•josephwegner•26m ago•0 comments

NASA announces Artemis III mission no longer aims to send humans to moon

https://www.theguardian.com/science/2026/feb/27/nasa-changes-delays-moon-missions
1•edward•26m ago•0 comments

What to Know About the U.S. Attacks on Iran

https://www.nytimes.com/2026/02/28/world/middleeast/iran-attacks-what-to-know.html
1•JumpCrisscross•27m ago•1 comments

Move over, Apple: Meet alternative app stores available in the EU and elsewhere

https://techcrunch.com/2026/02/22/move-over-apple-meet-the-alternative-app-stores-available-in-th...
1•taubek•28m ago•0 comments

How to Remove ChatGPT from Apple Intelligence

https://www.trustedreviews.com/how-to/remove-chatgpt-apple-intelligence-4580438
2•drcongo•32m ago•0 comments

Sync your coding agent activity across sessions and users

https://github.com/mubit-ai/codaph
1•aperi•33m ago•0 comments

How I Met My Wife (1994)

https://www.newyorker.com/magazine/1994/07/25/how-i-met-my-wife
1•Wowfunhappy•36m ago•0 comments

Ask HN: Why spec-driven development when code IS spec?

1•kikkupico•38m ago•5 comments

Show HN: H-CLI – Manage network infrastructure with natural language

https://github.com/h-network/h-cli
1•h-network•41m ago•0 comments

The week when AI changed everything

https://www.cnn.com/2026/02/28/business/ai-week-anthropic-nvidia-block
1•edward•42m ago•0 comments

Show HN: EEGFrontier – A compact open-source EEG board using ADS1299

https://github.com/TheusHen/EEGFrontier
1•TheusHen•43m ago•0 comments

How to downgrade from macOS 26 Tahoe on a new Mac

https://arstechnica.com/gadgets/2026/02/how-to-downgrade-from-macos-26-tahoe-on-a-new-mac/
2•signa11•48m ago•1 comments

Show HN: Core – Constitutional governance runtime for AI coding agents

https://github.com/DariuszNewecki/CORE
1•DNewecki•48m ago•0 comments

Addressing AI-slop in security reports

https://github.com/apache/logging-log4j2/discussions/4052
2•birdculture•49m ago•0 comments

Hypothetical nuclear attack that escalated Pentagon's showdown with Anthropic

https://www.washingtonpost.com/technology/2026/02/27/anthropic-pentagon-lethal-military-ai/
1•pseudolus•50m ago•1 comments

The Great Stink

https://en.wikipedia.org/wiki/Great_Stink
1•thinkingemote•51m ago•0 comments

We Chose SQLite

https://curling.io/blog/why-we-chose-sqlite
1•enz•54m ago•0 comments

We the Bacteria. Notes Toward Biotic Architecture

https://we-make-money-not-art.com/we-the-bacteria-notes-toward-biotic-architecture/
2•thinkingemote•54m ago•0 comments