@markdown-for-agents/hono 1.1.2 → 1.1.4

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 +5 -15
  2. package/package.json +10 -3
package/README.md CHANGED
@@ -5,22 +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](https://raw.githubusercontent.com/KKonstantinov/markdown-for-agents/main/docs/markdown_for_agents_header.png)
8
+ ![markdown-for-agents + Hono](https://raw.githubusercontent.com/KKonstantinov/markdown-for-agents/main/packages/middleware/hono/mda_hono_header.png)
9
9
 
10
- Audit any URLno installation required:
11
-
12
- ```bash
13
- npx @markdown-for-agents/audit https://docs.github.com/en/copilot/get-started/quickstart
14
- ```
15
-
16
- ```
17
- HTML Markdown Savings
18
- ───────────────────────────────────────────────────
19
- Tokens 138,550 9,364 -93.2%
20
- Chars 554,200 37,456 -93.2%
21
- Words 27,123 4,044
22
- Size 541.3 KB 36.6 KB -93.2%
23
- ```
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.
24
12
 
25
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.
26
14
 
@@ -40,6 +28,8 @@ The middleware uses content negotiation. When a client sends `Accept: text/markd
40
28
  npm install @markdown-for-agents/hono markdown-for-agents
41
29
  ```
42
30
 
31
+ > `markdown-for-agents` is a peer dependency — you may already have it installed.
32
+
43
33
  ## Usage
44
34
 
45
35
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markdown-for-agents/hono",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Hono middleware — serve Markdown to AI agents via content negotiation",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -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.1"
23
+ "markdown-for-agents": "1.1.3"
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",