@markdown-for-agents/hono 1.1.3 → 1.1.5
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.
- package/README.md +3 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,6 +8,7 @@ Hono middleware for [markdown-for-agents](https://www.npmjs.com/package/markdown
|
|
|
8
8
|

|
|
9
9
|
|
|
10
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
|
+
> **[Try the playground](https://markdown-for-agents-playground.vercel.app)** to see the core conversion in action.
|
|
11
12
|
|
|
12
13
|
Add one line to your Hono app and AI agents get clean, token-efficient Markdown instead of HTML. Normal browser requests pass through untouched.
|
|
13
14
|
|
|
@@ -53,6 +54,8 @@ curl http://localhost:3000
|
|
|
53
54
|
curl -H "Accept: text/markdown" http://localhost:3000
|
|
54
55
|
```
|
|
55
56
|
|
|
57
|
+
> **Full working example:** See [`examples/hono/`](https://github.com/KKonstantinov/markdown-for-agents/tree/main/examples/hono) for a complete Hono app with integration tests.
|
|
58
|
+
|
|
56
59
|
## Options
|
|
57
60
|
|
|
58
61
|
Accepts all [`markdown-for-agents` options](https://www.npmjs.com/package/markdown-for-agents#options):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markdown-for-agents/hono",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "Hono middleware — serve Markdown to AI agents via content negotiation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"main": "./dist/index.mjs",
|
|
21
21
|
"types": "./dist/index.d.mts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"markdown-for-agents": "1.1.
|
|
23
|
+
"markdown-for-agents": "1.1.4"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"hono": ">=4.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"hono": "^4.12.
|
|
29
|
+
"hono": "^4.12.8"
|
|
30
30
|
},
|
|
31
31
|
"keywords": [
|
|
32
32
|
"html",
|
|
@@ -62,6 +62,6 @@
|
|
|
62
62
|
"test:watch": "vitest",
|
|
63
63
|
"test:integration": "vitest run test/integration",
|
|
64
64
|
"typecheck": "tsgo --noEmit",
|
|
65
|
-
"release:jsr": "npx jsr publish"
|
|
65
|
+
"release:jsr": "npx jsr publish --allow-dirty"
|
|
66
66
|
}
|
|
67
67
|
}
|