@markdown-for-agents/hono 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +6 -0
  2. package/package.json +11 -4
package/README.md CHANGED
@@ -5,6 +5,10 @@
5
5
 
6
6
  Hono middleware for [markdown-for-agents](https://www.npmjs.com/package/markdown-for-agents) — a runtime-agnostic HTML to Markdown converter built for AI agents.
7
7
 
8
+ ![markdown-for-agents + Hono](https://raw.githubusercontent.com/KKonstantinov/markdown-for-agents/main/packages/middleware/hono/mda_hono_header.png)
9
+
10
+ > [markdown-for-agents](https://www.npmjs.com/package/markdown-for-agents) converts HTML to clean, token-efficient Markdown for AI agents — typically saving 80–90% of tokens. This package adds automatic content negotiation to your Hono app via `Accept: text/markdown`.
11
+
8
12
  Add one line to your Hono app and AI agents get clean, token-efficient Markdown instead of HTML. Normal browser requests pass through untouched.
9
13
 
10
14
  ## How it works
@@ -23,6 +27,8 @@ The middleware uses content negotiation. When a client sends `Accept: text/markd
23
27
  npm install @markdown-for-agents/hono markdown-for-agents
24
28
  ```
25
29
 
30
+ > `markdown-for-agents` is a peer dependency — you may already have it installed.
31
+
26
32
  ## Usage
27
33
 
28
34
  ```ts
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@markdown-for-agents/hono",
3
- "version": "1.1.1",
4
- "description": "Hono middleware for markdown-for-agents",
3
+ "version": "1.1.3",
4
+ "description": "Hono middleware serve Markdown to AI agents via content negotiation",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "engines": {
@@ -20,7 +20,7 @@
20
20
  "main": "./dist/index.mjs",
21
21
  "types": "./dist/index.d.mts",
22
22
  "dependencies": {
23
- "markdown-for-agents": "1.1.0"
23
+ "markdown-for-agents": "1.1.2"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "hono": ">=4.0.0"
@@ -31,8 +31,15 @@
31
31
  "keywords": [
32
32
  "html",
33
33
  "markdown",
34
+ "converter",
35
+ "ai",
36
+ "agents",
37
+ "llm",
38
+ "tokens",
39
+ "hono",
40
+ "hono-middleware",
34
41
  "middleware",
35
- "hono"
42
+ "content-negotiation"
36
43
  ],
37
44
  "repository": {
38
45
  "type": "git",