Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

Feat/docs site overhaul (#1976)

Paijo913b8b84bc91
diff --git a/.agents/workflows/review-prs.md b/.agents/workflows/review-prs.md
index 58a5018646..ea985ef5f2 100644
--- a/.agents/workflows/review-prs.md
+++ b/.agents/workflows/review-prs.md
@@ -199,19 +199,15 @@ Perform a **global impact assessment** to verify whether the PR changes are comp
git push
```
-- **Fallback (For external forks without maintainer edit access):**
- If `git push` fails because the PR comes from an external fork without write access, you MUST:
- 1. Create a new branch ending in `-fix` (e.g., `checkout -b fix-pr-<NUMBER>`).
- 2. Push your branch to the main repo (`git push origin fix-pr-<NUMBER>`).
- 3. Create a Pull Request targeting the contributor's repository and branch (use `gh pr create --repo <contributor-repo> --base <contributor-branch> --head diegosouzapw:fix-pr-<NUMBER>`).
- 4. Once they accept our PR into their branch, their original PR to our `main` will automatically update and become green.
+- **Fallback (For external forks without maintainer edit access or severe conflicts):**
+ If `git push` fails because the PR comes from an external fork without write access, or there are extreme conflicts, you MUST NOT CLOSE THE PR.
+ Instead, use `git cherry-pick`, or a reverse merge to bring their changes into the release branch, fix the issues locally, and commit them. Ensure you preserve the contributor's authorship (`git commit --author="Contributor Name <email>"` if creating new commits).
+ Once you have integrated their work into the release branch, DO NOT close their PR. Instead, leave it open or try to merge it using the CLI if possible. Under NO CIRCUMSTANCES should you use `gh pr close`. Leave it open so the contributor retains credit.
- Run the project's test suite locally to verify nothing breaks:
// turbo
- Run: `npm test` or equivalent test command
-### 8. Merge into Release Branch
-
### 8. Merge into Release Branch (NEVER CLOSE!)
> **⚠️ CRITICAL**: NEVER use `gh pr close` for a PR whose idea or code was accepted. Closing a PR in a contributor's face after taking their idea—or closing it just because it had conflicts—is unacceptable.
@@ -219,23 +215,19 @@ Perform a **global impact assessment** to verify whether the PR changes are comp
Even if the PR had severe conflicts or required significant architectural adjustments, you MUST:
-1. Resolve any conflicts and apply the fixes directly to their PR branch (as detailed in step 7).
-2. Once the PR branch is green, conflict-free, and correct, merge it into the release branch using the GitHub CLI.
-
-```bash
-# Merge the PR (base is already set to release/vX.Y.Z from step 3.5)
-gh pr merge <NUMBER> --repo <owner>/<repo> --squash --body "Integrated into release/vX.Y.Z"
-```
+1. Resolve any conflicts and apply the fixes directly to their PR branch (as detailed in step 7) or use cherry-picking into the release branch.
+2. If you managed to fix their branch, merge it into the release branch using the GitHub CLI:
+ `gh pr merge <NUMBER> --repo <owner>/<repo> --squash --body "Integrated into release/vX.Y.Z"`
+3. If you had to use cherry-picking because you couldn't push to their branch, DO NOT close the PR. GitHub will sometimes auto-detect the cherry-picked commits and mark it as Merged. If it doesn't, leave it open. The repository owner will handle it. NEVER run `gh pr close`.
In ALL cases:
- Post a **thank-you comment** on the PR via the GitHub API before or immediately after merging.
- The message should:
- Thank the author by name/username for their contribution.
- - Explain what was adjusted or improved (if we pushed fixes to their branch).
+ - Explain what was adjusted or improved (if we pushed fixes to their branch or cherry-picked).
- Note it will be included in the upcoming release.
- Be friendly, professional, and encouraging.
-- Example: _"Thanks @author for this great contribution! 🎉 We've added a few small adjustments to your branch to align with our latest architecture, and it's now officially merged into the release/vX.Y.Z branch. It will be part of the next release. We appreciate your effort!"_
### 9. Sync Local Release Branch
diff --git a/docs-overview.png b/docs-overview.png
new file mode 100644
index 0000000000..8782d4c4de
Binary files /dev/null and b/docs-overview.png differ
diff --git a/package-lock.json b/package-lock.json
index fec30c09e2..bd43b299d5 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -27,11 +27,13 @@
"fuse.js": "^7.3.0",
"http-proxy-middleware": "^3.0.5",
"https-proxy-agent": "^9.0.0",
+ "isomorphic-dompurify": "^3.12.0",
"jose": "^6.1.3",
"js-yaml": "^4.1.0",
"jsonc-parser": "^3.3.1",
"lowdb": "^7.0.1",
"lucide-react": "^1.14.0",
+< "marked": "^18.0.3",
"mermaid": "^11.14.0",
"monaco-editor": "^0.55.1",
"next": "^16.2.3",
@@ -182,7 +184,6 @@
"version": "5.1.11",
"resolved": "https://registry.npmjs.org/@asamuzakjp/css-color/-/css-color-5.1.11.tgz",
"integrity": "sha512-KVw6qIiCTUQhByfTd78h2yD1/00waTmm9uy/R7Ck/ctUyAPj+AEDLkQIdJW0T8+qGgj3j5bpNKK7Q3G+LedJWg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@asamuzakjp/generational-cache": "^1.0.1",
@@ -199,7 +200,6 @@
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/@asamuzakjp/dom-selector/-/dom-selector-7.1.1.tgz",
"integrity": "sha512-67RZDnYRc8H/8MLDgQCDE//zoqVFwajkepHZgmXrbwybzXOEwOWGPYGmALYl9J2DOLfFPPs6kKCqmbzV895hTQ==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@asamuzakjp/generational-cache": "^1.0.1",
@@ -216,7 +216,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@asamuzakjp/generational-cache/-/generational-cache-1.0.1.tgz",
"integrity": "sha512-wajfB8KqzMCN2KGNFdLkReeHncd0AslUSrvHVvvYWuU8ghncRJoA50kT3zP9MVL0+9g4/67H+cdvBskj9THPzg==",
- "dev": true,
"license": "MIT",
"engines": {
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
@@ -226,7 +225,6 @@
"version": "2.3.9",
"resolved": "https://registry.npmjs.org/@asamuzakjp/nwsapi/-/nwsapi-2.3.9.tgz",
"integrity": "sha512-n8GuYSrI9bF7FFZ/SjhwevlHc8xaVlb/7HmHelnc/PZXBD2ZR49NnN9sMMuDdEGPeeRQ5d0hqlSlEpgCX3Wl0Q==",
- "dev": true,
"license": "MIT"
},
"node_modules/@babel/code-frame": {
@@ -495,7 +493,6 @@
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/@bramus/specificity/-/specificity-2.4.2.tgz",
"integrity": "sha512-ctxtJ/eA+t+6q2++vj5j7FYX3nRu311q1wfYH3xjlLOsczhlhxAg2FWNUXhpGvAw3BWo1xBcvOV6/YLc2r5FJw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"css-tree": "^3.0.0"
@@ -545,7 +542,6 @@
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/@csstools/color-helpers/-/color-helpers-6.0.2.tgz",
"integrity": "sha512-LMGQLS9EuADloEFkcTBR3BwV/CGHV7zyDxVRtVDTwdI2Ca4it0CCVTT9wCkxSgokjE5Ho41hEPgb8OEUwoXr6Q==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -565,7 +561,6 @@
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/@csstools/css-calc/-/css-calc-3.2.0.tgz",
"integrity": "sha512-bR9e6o2BDB12jzN/gIbjHa5wLJ4UjD1CB9pM7ehlc0ddk6EBz+yYS1EV2MF55/HUxrHcB/hehAyt5vhsA3hx7w==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -589,7 +584,6 @@
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/@csstools/css-color-parser/-/css-color-parser-4.1.0.tgz",
"integrity": "sha512-U0KhLYmy2GVj6q4T3WaAe6NPuFYCPQoE3b0dRGxejWDgcPp8TP7S5rVdM5ZrFaqu4N67X8YaPBw14dQSYx3IyQ==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -617,7 +611,6 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@csstools/css-parser-algorithms/-/css-parser-algorithms-4.0.0.tgz",
"integrity": "sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -640,7 +633,6 @@
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/@csstools/css-syntax-patches-for-csstree/-/css-syntax-patches-for-csstree-1.1.3.tgz",
"integrity": "sha512-SH60bMfrRCJF3morcdk57WklujF4Jr/EsQUzqkarfHXEFcAR1gg7fS/chAE922Sehgzc1/+Tz5H3Ypa1HiEKrg==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -665,7 +657,6 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@csstools/css-tokenizer/-/css-tokenizer-4.0.0.tgz",
"integrity": "sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==",
- "dev": true,
"funding": [
{
"type": "github",
@@ -1475,7 +1466,6 @@
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/@exodus/bytes/-/bytes-1.15.0.tgz",
"integrity": "sha512-UY0nlA+feH81UGSHv92sLEPLCeZFjXOuHhrIo0HQydScuQc8s0A7kL/UdgwgDq8g8ilksmuoF35YVTNphV2aBQ==",
- "dev": true,
"license": "MIT",
"engines": {
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
@@ -5882,7 +5872,6 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/bidi-js/-/bidi-js-1.0.3.tgz",
"integrity": "sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"require-from-string": "^2.0.2"
@@ -6671,7 +6660,6 @@
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.2.1.tgz",
"integrity": "sha512-X7sjQzceUhu1u7Y/ylrRZFU2FS6LRiFVp6rKLPg23y3x3c3DOKAwuXGDp+PAGjh6CSnCjYeAul8pcT8bAl+lSA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"mdn-data": "2.27.1",
@@ -7216,7 +7204,6 @@
"version": "7.0.0",
"resolved": "https://registry.npmjs.org/data-urls/-/data-urls-7.0.0.tgz",
"integrity": "sha512-23XHcCF+coGYevirZceTVD7NdJOqVn+49IHyxgszm+JIiHLoB2TkmPtsYkNWT1pvRSGkc35L6NHs0yHkN2SumA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"whatwg-mimetype": "^5.0.0",
@@ -7316,7 +7303,6 @@
"version": "10.6.0",
"resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.6.0.tgz",
"integrity": "sha512-YpgQiITW3JXGntzdUmyUR1V812Hn8T1YVXhCu+wO3OpS4eU9l4YdD3qjyiKdV6mvV29zapkMeD390UVEf2lkUg==",
- "dev": true,
"license": "MIT"
},
"node_modules/decimal.js-light": {
@@ -7605,7 +7591,6 @@
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/entities/-/entities-8.0.0.tgz",
"integrity": "sha512-zwfzJecQ/Uej6tusMqwAqU/6KL2XaB2VZ2Jg54Je6ahNBGNH6Ek6g3jjNCF0fG9EWQKGZNddNjU5F1ZQn/sBnA==",
- "dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=20.19.0"
@@ -9392,7 +9377,6 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-6.0.0.tgz",
"integrity": "sha512-CV9TW3Y3f8/wT0BRFc1/KAVQ3TUHiXmaAb6VW9vtiMFf7SLoMd1PdAc4W3KFOFETBJUb90KatHqlsZMWV+R9Gg==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@exodus/bytes": "^1.6.0"
@@ -10111,7 +10095,6 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz",
"integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==",
- "dev": true,
"license": "MIT"
},
"node_modules/is-promise": {
@@ -10305,6 +10288,19 @@
"integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
"license": "ISC"
},
+ "node_modules/isomorphic-dompurify": {
+ "version": "3.12.0",
+ "resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-3.12.0.tgz",
+ "integrity": "sha512-8n+j+6ypTHvriJwFOQ2qusQ6bzGjZVcR3jbe1pBpLcGI1dn4WIl0ctLBngqE5QttquQBAlKXwJeTMw+X7x7qKw==",
+ "license": "MIT",
+ "dependencies": {
+ "dompurify": "^3.4.2",
+ "jsdom": "^29.1.1"
+ },
+ "engines": {
+ "node": "^20.19.0 || ^22.13.0 || >=24.0.0"
+ }
+ },
"node_modules/istanbul-lib-coverage": {
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",
@@ -10444,7 +10440,10 @@
"version": "29.1.1",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-29.1.1.tgz",
"integrity": "sha512-ECi4Fi2f7BdJtUKTflYRTiaMxIB0O6zfR1fX0GXpUrf6flp8QIYn1UT20YQqdSOfk2dfkCwS8LAFoJDEppNK5Q==",
+<<<<<<< HEAD
+=======
"dev": true,
+>>>>>>> upstream/release/v3.7.9
"license": "MIT",
"dependencies": {
"@asamuzakjp/css-color": "^5.1.11",
@@ -10485,7 +10484,6 @@
"version": "11.3.5",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.3.5.tgz",
"integrity": "sha512-NxVFwLAnrd9i7KUBxC4DrUhmgjzOs+1Qm50D3oF1/oL+r1NpZ4gA7xvG0/zJ8evR7zIKn4vLf7qTNduWFtCrRw==",
- "dev": true,
"license": "BlueOak-1.0.0",
"engines": {
"node": "20 || >=22"
@@ -10495,7 +10493,6 @@
"version": "7.25.0",
"resolved": "https://registry.npmjs.org/undici/-/undici-7.25.0.tgz",
"integrity": "sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=20.18.1"
@@ -11250,9 +11247,15 @@
}
},
"node_modules/marked": {
+<<<<<<< HEAD
+ "version": "18.0.3",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-18.0.3.tgz",
+ "integrity": "sha512-7VT90JOkDeaRWpfjOReRGPEKn0ecdARBkDGL+tT1wZY0efPPqkUxLUSmzy/C7TIylQYJC9STISEsCHrqb/7VIA==",
+=======
"version": "16.4.2",
"resolved": "https://registry.npmjs.org/marked/-/marked-16.4.2.tgz",
"integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==",
+>>>>>>> upstream/release/v3.7.9
"license": "MIT",
"bin": {
"marked": "bin/marked.js"
@@ -11427,7 +11430,6 @@
"version": "2.27.1",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.27.1.tgz",
"integrity": "sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==",
- "dev": true,
"license": "CC0-1.0"
},
"node_modules/media-typer": {
@@ -11490,6 +11492,21 @@
"uuid": "^11.1.0"
}
},
+<<<<<<< HEAD
+ "node_modules/mermaid/node_modules/marked": {
+ "version": "16.4.2",
+ "resolved": "https://registry.npmjs.org/marked/-/marked-16.4.2.tgz",
+ "integrity": "sha512-TI3V8YYWvkVf3KJe1dRkpnjs68JUPyEa5vjKrp1XEEJUAOaQc+Qj+L1qWbPd0SJuAdQkFU0h73sXXqwDYxsiDA==",
+ "license": "MIT",
+ "bin": {
+ "marked": "bin/marked.js"
+ },
+ "engines": {
+ "node": ">= 20"
+ }
+ },
+=======
+>>>>>>> upstream/release/v3.7.9
"node_modules/mermaid/node_modules/uuid": {
"version": "11.1.1",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.1.tgz",
@@ -12709,7 +12726,6 @@
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/parse5/-/parse5-8.0.1.tgz",
"integrity": "sha512-z1e/HMG90obSGeidlli3hj7cbocou0/wa5HacvI3ASx34PecNjNQeaHNo5WIZpWofN9kgkqV1q5YvXe3F0FoPw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"entities": "^8.0.0"
@@ -13200,7 +13216,6 @@
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
"integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=6"
@@ -13896,7 +13911,6 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz",
"integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==",
- "dev": true,
"license": "ISC",
"dependencies": {
"xmlchars": "^2.2.0"
@@ -14778,7 +14792,6 @@
"version": "3.2.4",
"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz",
"integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==",
- "dev": true,
"license": "MIT"
},
"node_modules/tailwindcss": {
@@ -15018,7 +15031,6 @@
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/tr46/-/tr46-6.0.0.tgz",
"integrity": "sha512-bLVMLPtstlZ4iMQHpFHTR7GAGj2jxi8Dg0s2h2MafAE4uSWF98FC/3MomU51iQAMf8/qDUbKWf5GxuvvVcXEhw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"punycode": "^2.3.1"
@@ -15904,7 +15916,6 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-5.0.0.tgz",
"integrity": "sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==",
- "dev": true,
"license": "MIT",
"dependencies": {
"xml-name-validator": "^5.0.0"
@@ -15937,7 +15948,6 @@
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-8.0.1.tgz",
"integrity": "sha512-BMhLD/Sw+GbJC21C/UgyaZX41nPt8bUTg+jWyDeg7e7YN4xOM05YPSIXceACnXVtqyEw/LMClUQMtMZ+PGGpqQ==",
- "dev": true,
"license": "BSD-2-Clause",
"engines": {
"node": ">=20"
@@ -15947,7 +15957,6 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-5.0.0.tgz",
"integrity": "sha512-sXcNcHOC51uPGF0P/D4NVtrkjSU2fNsm9iog4ZvZJsL3rjoDAzXZhkm2MWt1y+PUdggKAYVoMAIYcs78wJ51Cw==",
- "dev": true,
"license": "MIT",
"engines": {
"node": ">=20"
@@ -15957,7 +15966,6 @@
"version": "16.0.1",
"resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-16.0.1.tgz",
"integrity": "sha512-1to4zXBxmXHV3IiSSEInrreIlu02vUOvrhxJJH5vcxYTBDAx51cqZiKdyTxlecdKNSjj8EcxGBxNf6Vg+945gw==",
- "dev": true,
"license": "MIT",
"dependencies": {
"@exodus/bytes": "^1.11.0",
@@ -16202,7 +16210,6 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-5.0.0.tgz",
"integrity": "sha512-EvGK8EJ3DhaHfbRlETOWAS5pO9MZITeauHKJyb8wyajUfQUenkIg2MvLDTZ4T/TgIcm3HU0TFBgWWboAZ30UHg==",
- "dev": true,
"license": "Apache-2.0",
"engines": {
"node": ">=18"
@@ -16212,7 +16219,6 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",
"integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==",
- "dev": true,
"license": "MIT"
},
"node_modules/xxhash-wasm": {
diff --git a/package.json b/package.json
index e2dd6925b6..4ce6dd9671 100644
--- a/package.json
+++ b/package.json
@@ -125,11 +125,13 @@
"fuse.js": "^7.3.0",
"http-proxy-middleware": "^3.0.5",
"https-proxy-agent": "^9.0.0",
+ "isomorphic-dompurify": "^3.12.0",
"jose": "^6.1.3",
"js-yaml": "^4.1.0",
"jsonc-parser": "^3.3.1",
"lowdb": "^7.0.1",
"lucide-react": "^1.14.0",
+ "marked": "^18.0.3",
"mermaid": "^11.14.0",
"monaco-editor": "^0.55.1",
"next": "^16.2.3",
diff --git a/scripts/prepublish.ts b/scripts/prepublish.ts
index 8b54f60067..819e1dd2b1 100644
--- a/scripts/prepublish.ts
+++ b/scripts/prepublish.ts
@@ -461,6 +461,21 @@ if (existsSync(openapiSpecSrc)) {
cpSync(openapiSpecSrc, join(docsDest, "openapi.yaml"));
}
+const docsMarkdownSrc = join(ROOT, "docs");
+if (existsSync(docsMarkdownSrc)) {
+ const docsDest = join(APP_DIR, "docs");
+ mkdirSync(docsDest, { recursive: true });
+ const mdFiles = readdirSync(docsMarkdownSrc).filter(
+ (f) => f.endsWith(".md") || f.endsWith(".mdx")
+ );
+ for (const mdFile of mdFiles) {
+ cpSync(join(docsMarkdownSrc, mdFile), join(docsDest, mdFile));
+ }
+ if (mdFiles.length > 0) {
+ console.log(`[prepublish] Copied ${mdFiles.length} docs markdown files to app/docs/`);
+ }
+}
+
const syncEnvSrc = join(ROOT, "scripts", "sync-env.mjs");
if (existsSync(syncEnvSrc)) {
const scriptsDest = join(APP_DIR, "scripts");
diff --git a/src/app/docs/[slug]/page.tsx b/src/app/docs/[slug]/page.tsx
index 36a169629f..27d8147dd9 100644
--- a/src/app/docs/[slug]/page.tsx
+++ b/src/app/docs/[slug]/page.tsx
@@ -5,6 +5,8 @@ import { autoAllSlugs, autoNavSections } from "../lib/docs-auto-generated";
import fs from "fs";
import path from "path";
import matter from "gray-matter";
+import { marked } from "marked";
+import DOMPurify from "isomorphic-dompurify";
import { Metadata } from "next";
import { DocCodeBlocks } from "../components/DocCodeBlocks";
import { FeedbackWidget } from "../components/FeedbackWidget";
@@ -74,64 +76,59 @@ export function extractMermaidCharts(content: string): string[] {
return charts;
}
+const PROSE_CLASSES: Record<string, string> = {
+ h1: "text-3xl font-bold mb-4",
+ h2: "text-2xl font-bold mb-4 mt-10",
+ h3: "text-xl font-bold mb-3 mt-8",
+ h4: "text-lg font-bold mb-2 mt-6",
+ p: "mb-4 leading-relaxed",
+ ul: "list-disc ml-6 mb-4",
+ ol: "list-decimal ml-6 mb-4",
+ li: "mb-1",
+ a: "text-primary hover:underline",
+ blockquote: "border-l-4 border-primary/30 pl-4 italic text-text-muted mb-4",
+ code: "bg-bg-subtle px-2 py-1 rounded text-sm",
+ pre: "bg-bg-subtle p-4 rounded-lg overflow-x-auto mb-4",
+ hr: "border-border my-8",
+ table: "w-full border-collapse mb-4 text-sm",
+ th: "border border-border p-2 text-left font-semibold bg-bg-subtle",
+ td: "border border-border p-2 text-sm",
+ img: "max-w-full rounded-lg my-4",
+};
+
+marked.use({
+ gfm: true,
+ breaks: false,
+});
+
export function renderMarkdown(content: string): string {
- return content
- .replace(/^####\s+(.*)$/gm, '<h4 id="$1" class="text-lg font-bold mb-2 mt-6">$1</h4>')
- .replace(/^###\s+(.*)$/gm, '<h3 id="$1" class="text-xl font-bold mb-3 mt-8">$1</h3>')
- .replace(/^##\s+(.*)$/gm, '<h2 id="$1" class="text-2xl font-bold mb-4 mt-10">$1</h2>')
- .replace(/^#\s+(.*)$/gm, '<h1 class="text-3xl font-bold mb-4">$1</h1>')
- .replace(
- /```mermaid\n([\s\S]*?)```/g,
- '<div class="mermaid-diagram-fallback my-6" data-mermaid="$1">$1</div>'
- )
- .replace(
- /```(\w*)\n([\s\S]*?)```/g,
- '<div class="group relative"><pre class="bg-bg-subtle p-4 rounded-lg overflow-x-auto"><code class="language-$1">$2</code></pre></div>'
- )
- .replace(/`([^`]+)`/g, '<code class="bg-bg-subtle px-2 py-1 rounded text-sm">$1</code>')
- .replace(/\*\*(.*?)\*\*/g, "<strong>$1</strong>")
- .replace(/\*(.*?)\*/g, "<em>$1</em>")
- .replace(/__(.*?)__/g, "<strong>$1</strong>")
- .replace(/_(.*?)_/g, "<em>$1</em>")
- .replace(/\[([^\]]+)\]\(([^)]+)\)/g, '<a href="$2" class="text-primary hover:underline">$1</a>')
- .replace(
- /!\[([^\]]+)\]\(([^)]+)\)/g,
- '<img src="$2" alt="$1" class="max-w-full rounded-lg my-4">'
- )
- .replace(/^(\*|\-)\s+(.*)$/gm, '<li class="mb-1 ml-4">$2</li>')
- .replace(/^(\d+)\.\s+(.*)$/gm, '<li class="mb-1 ml-4">$2</li>')
- .replace(/^\|\s*(.+?)\s*\|$/gm, (match) => {
- if (match.match(/^\|\s*[-:]+[-|\s:]*$/)) return "";
- const cells = match
- .split("|")
- .filter((c) => c.trim())
- .map((c) => `<td class="border border-border p-2 text-sm">${c.trim()}</td>`)
- .join("");
- return `<tr>${cells}</tr>`;
- })
- .replace(
- /(<tr>.*<\/tr>\n?)+/g,
- (match) =>
- `<table class="w-full border-collapse mb-4 text-sm"><tbody>${match}</tbody></table>`
- )
- .replace(
- /^>\s+(.*)$/gm,
- '<blockquote class="border-l-4 border-primary/30 pl-4 italic text-text-muted mb-4">$1</blockquote>'
- )
- .replace(/^---$/gm, '<hr class="border-border my-8">');
+ const mermaidReplaced = content.replace(
+ /```mermaid\n([\s\S]*?)```/g,
+ (_match, code: string) =>
+ `<div class="mermaid-diagram-fallback my-6" data-mermaid="${encodeURIComponent(code.trim())}">${code.trim()}</div>`
+ );
+
+ const rawHtml = marked.parse(mermaidReplaced) as string;
+
+ const sanitized = DOMPurify.sanitize(rawHtml, {
+ ADD_TAGS: ["mermaid-diagram"],
+ ADD_ATTR: ["data-mermaid"],
+ });
+
+ return addProseClasses(sanitized);
}
-function cleanHeadingIds(html: string): string {
- return html.replace(
- /id="([^"]*)"/g,
- (_, id) =>
- `id="${id
- .toLowerCase()
- .replace(/[^\w\s-]/g, "")
- .replace(/\s+/g, "-")}"`
- );
+function addProseClasses(html: string): string {
+ let result = html;
+ for (const [tag, classes] of Object.entries(PROSE_CLASSES)) {
+ const regex = new RegExp(`<${tag}(\\s|>)`, "g");
+ result = result.replace(regex, `<${tag} class="${classes}"`);
+ }
+ return result;
}
+
+
export async function generateMetadata({
params,
}: {
@@ -179,8 +176,7 @@ export default async function DocPage({ params }: { params: Promise<{ slug: stri
lastUpdated = (frontmatter.lastUpdated as string) || null;
mermaidCharts = extractMermaidCharts(content);
headings = extractHeadings(content);
- const rawHtml = renderMarkdown(content);
- htmlContent = cleanHeadingIds(rawHtml);
+ htmlContent = renderMarkdown(content);
} catch (error) {
console.error(`Failed to read doc file for slug: ${slug}`, error);
loadError = error instanceof Error ? error.message : "Unknown error";
diff --git a/src/app/docs/components/DocsSidebarClient.tsx b/src/app/docs/components/DocsSidebarClient.tsx
index cab7e39e70..5cabdb3675 100644
--- a/src/app/docs/components/DocsSidebarClient.tsx
+++ b/src/app/docs/components/DocsSidebarClient.tsx
@@ -12,7 +12,11 @@ export function DocsSidebarClient({ mobileOnly = false }: { mobileOnly?: boolean
const [isOpen, setIsOpen] = useState(false);
// Extract slug from pathname (e.g., /docs/setup-guide -> setup-guide)
+<<<<<<< HEAD
+ const currentSlug = pathname.split("/").filter(Boolean).pop();
+=======
const currentSlug = pathname.split("/").pop();
+>>>>>>> upstream/release/v3.7.9
const isActive = (slug: string) => currentSlug === slug;
diff --git a/src/app/docs/lib/docs-auto-generated.ts b/src/app/docs/lib/docs-auto-generated.ts
index 072f0a65ec..983916d066 100644
--- a/src/app/docs/lib/docs-auto-generated.ts
+++ b/src/app/docs/lib/docs-auto-generated.ts
@@ -23,191 +23,190 @@ export interface AutoGenSearchItem {
export const autoNavSections: AutoGenNavSection[] = [
{
- title: "Getting Started",
- items: [
+ "title": "Getting Started",
+ "items": [
{
- slug: "architecture",
- title: "OmniRoute Architecture",
- fileName: "ARCHITECTURE.md",
+ "slug": "architecture",
+ "title": "OmniRoute Architecture",
+ "fileName": "ARCHITECTURE.md"
},
{
- slug: "cli-tools",
- title: "CLI Tools Setup Guide",
- fileName: "CLI-TOOLS.md",
+ "slug": "cli-tools",
+ "title": "CLI Tools Setup Guide",
+ "fileName": "CLI-TOOLS.md"
},
{
- slug: "setup-guide",
- title: "Setup Guide",
- fileName: "SETUP_GUIDE.md",
+ "slug": "setup-guide",
+ "title": "Setup Guide",
+ "fileName": "SETUP_GUIDE.md"
},
{
- slug: "user-guide",
- title: "User Guide",
- fileName: "USER_GUIDE.md",
- },
- ],
+ "slug": "user-guide",
+ "title": "User Guide",
+ "fileName": "USER_GUIDE.md"
+ }
+ ]
},
{
- title: "Features",
- items: [
+ "title": "Features",
+ "items": [
{
- slug: "auto-combo",
- title: "OmniRoute Auto-Combo Engine",
- fileName: "AUTO-COMBO.md",
+ "slug": "auto-combo",
+ "title": "OmniRoute Auto-Combo Engine",
+ "fileName": "AUTO-COMBO.md"
},
{
- slug: "compression-engines",
- title: "Compression Engines",
- fileName: "COMPRESSION_ENGINES.md",
+ "slug": "compression-engines",
+ "title": "Compression Engines",
+ "fileName": "COMPRESSION_ENGINES.md"
},
{
- slug: "compression-guide",
- title: "🗜️ Prompt Compression Guide",
- fileName: "COMPRESSION_GUIDE.md",
+ "slug": "compression-guide",
+ "title": "🗜️ Prompt Compression Guide",
+ "fileName": "COMPRESSION_GUIDE.md"
},
{
- slug: "compression-language-packs",
- title: "Compression Language Packs",
- fileName: "COMPRESSION_LANGUAGE_PACKS.md",
+ "slug": "compression-language-packs",
+ "title": "Compression Language Packs",
+ "fileName": "COMPRESSION_LANGUAGE_PACKS.md"
},
{
- slug: "compression-rules-format",
- title: "Compression Rules Format",
- fileName: "COMPRESSION_RULES_FORMAT.md",
+ "slug": "compression-rules-format",
+ "title": "Compression Rules Format",
+ "fileName": "COMPRESSION_RULES_FORMAT.md"
},
{
- slug: "features",
- title: "OmniRoute — Dashboard Features Gallery",
- fileName: "FEATURES.md",
+ "slug": "features",
+ "title": "OmniRoute — Dashboard Features Gallery",
+ "fileName": "FEATURES.md"
},
{
- slug: "free-tiers",
- title: "🆓 Free LLM API Providers — Consolidated Directory",
- fileName: "FREE_TIERS.md",
+ "slug": "free-tiers",
+ "title": "🆓 Free LLM API Providers — Consolidated Directory",
+ "fileName": "FREE_TIERS.md"
},
{
- slug: "rtk-compression",
- title: "RTK Compression",
- fileName: "RTK_COMPRESSION.md",
- },
- ],
+ "slug": "rtk-compression",
+ "title": "RTK Compression",
+ "fileName": "RTK_COMPRESSION.md"
+ }
+ ]
},
{
- title: "API & Protocols",
- items: [
+ "title": "API & Protocols",
+ "items": [
{
- slug: "a2a-server",
- title: "OmniRoute A2A Server Documentation",
- fileName: "A2A-SERVER.md",
+ "slug": "a2a-server",
+ "title": "OmniRoute A2A Server Documentation",
+ "fileName": "A2A-SERVER.md"
},
{
- slug: "api-reference",
- title: "API Reference",
- fileName: "API_REFERENCE.md",
+ "slug": "api-reference",
+ "title": "API Reference",
+ "fileName": "API_REFERENCE.md"
},
{
- slug: "mcp-server",
- title: "OmniRoute MCP Server Documentation",
- fileName: "MCP-SERVER.md",
- },
- ],
+ "slug": "mcp-server",
+ "title": "OmniRoute MCP Server Documentation",
+ "fileName": "MCP-SERVER.md"
+ }
+ ]
},
{
- title: "Deployment",
- items: [
+ "title": "Deployment",
+ "items": [
{
- slug: "docker-guide",
- title: "🐳 Docker Guide",
- fileName: "DOCKER_GUIDE.md",
+ "slug": "docker-guide",
+ "title": "🐳 Docker Guide",
+ "fileName": "DOCKER_GUIDE.md"
},
{
- slug: "fly-io-deployment-guide",
- title: "OmniRoute Fly.io 部署指南",
- fileName: "FLY_IO_DEPLOYMENT_GUIDE.md",
+ "slug": "fly-io-deployment-guide",
+ "title": "OmniRoute Fly.io 部署指南",
+ "fileName": "FLY_IO_DEPLOYMENT_GUIDE.md"
},
{
- slug: "pwa-guide",
- title: "Progressive Web App (PWA) Guide",
- fileName: "PWA_GUIDE.md",
+ "slug": "pwa-guide",
+ "title": "Progressive Web App (PWA) Guide",
+ "fileName": "PWA_GUIDE.md"
},
{
- slug: "termux-guide",
- title: "Termux Headless Setup",
- fileName: "TERMUX_GUIDE.md",
+ "slug": "termux-guide",
+ "title": "Termux Headless Setup",
+ "fileName": "TERMUX_GUIDE.md"
},
{
- slug: "vm-deployment-guide",
- title: "OmniRoute — Deployment Guide on VM with Cloudflare",
- fileName: "VM_DEPLOYMENT_GUIDE.md",
- },
- ],
+ "slug": "vm-deployment-guide",
+ "title": "OmniRoute — Deployment Guide on VM with Cloudflare",
+ "fileName": "VM_DEPLOYMENT_GUIDE.md"
+ }
+ ]
},
{
- title: "Operations",
- items: [
+ "title": "Operations",
+ "items": [
{
- slug: "environment",
- title: "Environment Variables Reference",
- fileName: "ENVIRONMENT.md",
+ "slug": "environment",
+ "title": "Environment Variables Reference",
+ "fileName": "ENVIRONMENT.md"
},
{
- slug: "proxy-guide",
- title: "OmniRoute Proxy Guide",
- fileName: "PROXY_GUIDE.md",
+ "slug": "proxy-guide",
+ "title": "OmniRoute Proxy Guide",
+ "fileName": "PROXY_GUIDE.md"
},
{
- slug: "resilience-guide",
- title: "🛡️ Resilience Guide",
- fileName: "RESILIENCE_GUIDE.md",
+ "slug": "resilience-guide",
+ "title": "🛡️ Resilience Guide",
+ "fileName": "RESILIENCE_GUIDE.md"
},
{
- slug: "troubleshooting",
- title: "Troubleshooting",
- fileName: "TROUBLESHOOTING.md",
- },
- ],
+ "slug": "troubleshooting",
+ "title": "Troubleshooting",
+ "fileName": "TROUBLESHOOTING.md"
+ }
+ ]
},
{
- title: "Development",
- items: [
+ "title": "Development",
+ "items": [
{
- slug: "codebase-documentation",
- title: "omniroute — Codebase Documentation",
- fileName: "CODEBASE_DOCUMENTATION.md",
+ "slug": "codebase-documentation",
+ "title": "omniroute — Codebase Documentation",
+ "fileName": "CODEBASE_DOCUMENTATION.md"
},
{
- slug: "coverage-plan",
- title: "Test Coverage Plan",
- fileName: "COVERAGE_PLAN.md",
+ "slug": "coverage-plan",
+ "title": "Test Coverage Plan",
+ "fileName": "COVERAGE_PLAN.md"
},
{
- slug: "i18n",
- title: "i18n — Internationalization Guide",
- fileName: "I18N.md",
+ "slug": "i18n",
+ "title": "i18n — Internationalization Guide",
+ "fileName": "I18N.md"
},
{
- slug: "release-checklist",
- title: "Release Checklist",
- fileName: "RELEASE_CHECKLIST.md",
+ "slug": "release-checklist",
+ "title": "Release Checklist",
+ "fileName": "RELEASE_CHECKLIST.md"
},
{
- slug: "uninstall",
- title: "OmniRoute — Uninstall Guide",
- fileName: "UNINSTALL.md",
- },
- ],
- },
+ "slug": "uninstall",
+ "title": "OmniRoute — Uninstall Guide",
+ "fileName": "UNINSTALL.md"
+ }
+ ]
+ }
];
export const autoSearchIndex: AutoGenSearchItem[] = [
{
- slug: "architecture",
- title: "OmniRoute Architecture",
- fileName: "ARCHITECTURE.md",
- section: "Getting Started",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "slug": "architecture",
+ "title": "OmniRoute Architecture",
+ "fileName": "ARCHITECTURE.md",
+ "section": "Getting Started",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"Executive Summary",
"Scope and Boundaries",
"In Scope",
@@ -217,17 +216,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Core Runtime Components",
"1) API and Routing Layer (Next.js App Routes)",
"2) SSE + Translation Core",
- "3) Persistence Layer",
- ],
+ "3) Persistence Layer"
+ ]
},
{
- slug: "cli-tools",
- title: "CLI Tools Setup Guide",
- fileName: "CLI-TOOLS.md",
- section: "Getting Started",
- content:
- "This guide explains how to install and configure all supported AI coding CLI tools to use OmniRoute as the unified backend, giving you centralized key management, cost tracking, model switching, and request logging across every tool. The dashboard cards in /dashboard/cli-tools are generated from src",
- headings: [
+ "slug": "cli-tools",
+ "title": "CLI Tools Setup Guide",
+ "fileName": "CLI-TOOLS.md",
+ "section": "Getting Started",
+ "content": "This guide explains how to install and configure all supported AI coding CLI tools to use OmniRoute as the unified backend, giving you centralized key management, cost tracking, model switching, and request logging across every tool. The dashboard cards in /dashboard/cli-tools are generated from src",
+ "headings": [
"How It Works",
"Supported Tools (Dashboard Source of Truth)",
"CLI fingerprint sync (Agents + Settings)",
@@ -237,17 +235,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Step 4 — Configure Each Tool",
"Claude Code",
"OpenAI Codex",
- "OpenCode",
- ],
+ "OpenCode"
+ ]
},
{
- slug: "setup-guide",
- title: "Setup Guide",
- fileName: "SETUP_GUIDE.md",
- section: "Getting Started",
- content:
- "Complete setup reference for OmniRoute. For the quick version, see the Quick Start in README. - Install Methods - CLI Tool Configuration - Protocol Setup (MCP + A2A) - Timeout Configuration - Split-Port Mode - Void Linux (xbps-src) - Uninstalling -------------------- --------------------------------",
- headings: [
+ "slug": "setup-guide",
+ "title": "Setup Guide",
+ "fileName": "SETUP_GUIDE.md",
+ "section": "Getting Started",
+ "content": "Complete setup reference for OmniRoute. For the quick version, see the Quick Start in README. - Install Methods - CLI Tool Configuration - Protocol Setup (MCP + A2A) - Timeout Configuration - Split-Port Mode - Void Linux (xbps-src) - Uninstalling -------------------- --------------------------------",
+ "headings": [
"Table of Contents",
"Install Methods",
"npm (recommended)",
@@ -257,54 +254,51 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Docker",
"CLI Options",
"CLI Tool Configuration",
- "1) Connect Providers and Create API Key",
- ],
+ "1) Connect Providers and Create API Key"
+ ]
},
{
- slug: "user-guide",
- title: "User Guide",
- fileName: "USER_GUIDE.md",
- section: "Getting Started",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "slug": "user-guide",
+ "title": "User Guide",
+ "fileName": "USER_GUIDE.md",
+ "section": "Getting Started",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"Table of Contents",
"💰 Pricing at a Glance",
"🎯 Use Cases",
- 'Case 1: "I have Claude Pro subscription"',
- 'Case 2: "I want zero cost"',
- 'Case 3: "I need 24/7 coding, no interruptions"',
- 'Case 4: "I want FREE AI in OpenClaw"',
+ "Case 1: \"I have Claude Pro subscription\"",
+ "Case 2: \"I want zero cost\"",
+ "Case 3: \"I need 24/7 coding, no interruptions\"",
+ "Case 4: \"I want FREE AI in OpenClaw\"",
"📖 Provider Setup",
"🔐 Subscription Providers",
- "Claude Code (Pro/Max)",
- ],
+ "Claude Code (Pro/Max)"
+ ]
},
{
- slug: "auto-combo",
- title: "OmniRoute Auto-Combo Engine",
- fileName: "AUTO-COMBO.md",
- section: "Features",
- content:
- "Self-managing model chains with adaptive scoring The Auto-Combo Engine dynamically selects the best provider/model for each request using a 6-factor scoring function: Factor Weight Description :--------- :----- :---------------------------------------------- Quota 0.20 Remaining capacity [0..1] Heal",
- headings: [
+ "slug": "auto-combo",
+ "title": "OmniRoute Auto-Combo Engine",
+ "fileName": "AUTO-COMBO.md",
+ "section": "Features",
+ "content": "Self-managing model chains with adaptive scoring The Auto-Combo Engine dynamically selects the best provider/model for each request using a 6-factor scoring function: Factor Weight Description :--------- :----- :---------------------------------------------- Quota 0.20 Remaining capacity [0..1] Heal",
+ "headings": [
"How It Works",
"Mode Packs",
"Self-Healing",
"Bandit Exploration",
"API",
"Task Fitness",
- "Files",
- ],
+ "Files"
+ ]
},
{
- slug: "compression-engines",
- title: "Compression Engines",
- fileName: "COMPRESSION_ENGINES.md",
- section: "Features",
- content:
- "OmniRoute compression is built around engine contracts. A mode can run one engine directly (caveman or rtk) or a deterministic stacked pipeline that executes multiple engines in order. Mode Engine path Intended input ------------ ---------------------------------- -----------------------------------",
- headings: [
+ "slug": "compression-engines",
+ "title": "Compression Engines",
+ "fileName": "COMPRESSION_ENGINES.md",
+ "section": "Features",
+ "content": "OmniRoute compression is built around engine contracts. A mode can run one engine directly (caveman or rtk) or a deterministic stacked pipeline that executes multiple engines in order. Mode Engine path Intended input ------------ ---------------------------------- -----------------------------------",
+ "headings": [
"Modes",
"Engine Registry",
"Caveman",
@@ -313,17 +307,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Compression Combos",
"API Surface",
"MCP Tools",
- "Validation",
- ],
+ "Validation"
+ ]
},
{
- slug: "compression-guide",
- title: "🗜️ Prompt Compression Guide",
- fileName: "COMPRESSION_GUIDE.md",
- section: "Features",
- content:
- "Save 15-95% on eligible context automatically. For a quick overview, see the README Compression section. OmniRoute implements a modular prompt compression pipeline that runs proactively before requests hit upstream providers. This means your token savings happen transparently — no changes needed to ",
- headings: [
+ "slug": "compression-guide",
+ "title": "🗜️ Prompt Compression Guide",
+ "fileName": "COMPRESSION_GUIDE.md",
+ "section": "Features",
+ "content": "Save 15-95% on eligible context automatically. For a quick overview, see the README Compression section. OmniRoute implements a modular prompt compression pipeline that runs proactively before requests hit upstream providers. This means your token savings happen transparently — no changes needed to ",
+ "headings": [
"Overview",
"Compression Modes",
"Off",
@@ -333,49 +326,46 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Ultra Mode (~75% savings)",
"RTK Mode (60-90% upstream range)",
"Stacked Mode (78-95% eligible range)",
- "Upstream Savings Math",
- ],
+ "Upstream Savings Math"
+ ]
},
{
- slug: "compression-language-packs",
- title: "Compression Language Packs",
- fileName: "COMPRESSION_LANGUAGE_PACKS.md",
- section: "Features",
- content:
- "Caveman compression can load language-specific rule packs in addition to the built-in English rules. This keeps the core engine stable while allowing Portuguese, Spanish, German, French, Japanese, and future language packs to evolve independently. Language packs live under: Current shipped packs inc",
- headings: [
+ "slug": "compression-language-packs",
+ "title": "Compression Language Packs",
+ "fileName": "COMPRESSION_LANGUAGE_PACKS.md",
+ "section": "Features",
+ "content": "Caveman compression can load language-specific rule packs in addition to the built-in English rules. This keeps the core engine stable while allowing Portuguese, Spanish, German, French, Japanese, and future language packs to evolve independently. Language packs live under: Current shipped packs inc",
+ "headings": [
"Location",
"Language Detection",
"Config Shape",
"Adding a Language Pack",
"API",
- "Operational Notes",
- ],
+ "Operational Notes"
+ ]
},
{
- slug: "compression-rules-format",
- title: "Compression Rules Format",
- fileName: "COMPRESSION_RULES_FORMAT.md",
- section: "Features",
- content:
- "Compression rules are JSON files loaded at runtime. They are intentionally data-only so new language packs and RTK command filters can be reviewed without changing engine code. Caveman rule packs live under: Each pack contains replacements that apply to normal prose after protected regions are isola",
- headings: [
+ "slug": "compression-rules-format",
+ "title": "Compression Rules Format",
+ "fileName": "COMPRESSION_RULES_FORMAT.md",
+ "section": "Features",
+ "content": "Compression rules are JSON files loaded at runtime. They are intentionally data-only so new language packs and RTK command filters can be reviewed without changing engine code. Caveman rule packs live under: Each pack contains replacements that apply to normal prose after protected regions are isola",
+ "headings": [
"Caveman Rule Packs",
"Caveman Fields",
"RTK Filter Packs",
"RTK Fields",
"Safety Rules",
- "Validation",
- ],
+ "Validation"
+ ]
},
{
- slug: "features",
- title: "OmniRoute — Dashboard Features Gallery",
- fileName: "FEATURES.md",
- section: "Features",
- content:
- "🌐 Main README translations: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indones",
- headings: [
+ "slug": "features",
+ "title": "OmniRoute — Dashboard Features Gallery",
+ "fileName": "FEATURES.md",
+ "section": "Features",
+ "content": "🌐 Main README translations: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indones",
+ "headings": [
"🔌 Providers",
"🎨 Combos",
"📊 Analytics",
@@ -385,17 +375,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"🎨 Themes _(v2.0.5+)_",
"⚙️ Settings",
"🔧 CLI Tools",
- "🤖 CLI Agents _(v2.0.11+)_",
- ],
+ "🤖 CLI Agents _(v2.0.11+)_"
+ ]
},
{
- slug: "free-tiers",
- title: "🆓 Free LLM API Providers — Consolidated Directory",
- fileName: "FREE_TIERS.md",
- section: "Features",
- content:
- "The ultimate aggregated reference for all permanently free LLM API providers. Consolidated from 6 community repositories. Use with OmniRoute to route through 25+ free providers simultaneously. Last consolidated: May 2026 · Sources: awesome-free-llm-apis, awesome-free-llm-apis2, free-llm-api-resource",
- headings: [
+ "slug": "free-tiers",
+ "title": "🆓 Free LLM API Providers — Consolidated Directory",
+ "fileName": "FREE_TIERS.md",
+ "section": "Features",
+ "content": "The ultimate aggregated reference for all permanently free LLM API providers. Consolidated from 6 community repositories. Use with OmniRoute to route through 25+ free providers simultaneously. Last consolidated: May 2026 · Sources: awesome-free-llm-apis, awesome-free-llm-apis2, free-llm-api-resource",
+ "headings": [
"Table of Contents",
"Quick Comparison",
"Provider APIs (First-Party)",
@@ -405,17 +394,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Z.AI (Zhipu AI) 🇨🇳",
"IBM watsonx 🇺🇸",
"Inference Providers (Third-Party)",
- "Groq 🇺🇸",
- ],
+ "Groq 🇺🇸"
+ ]
},
{
- slug: "rtk-compression",
- title: "RTK Compression",
- fileName: "RTK_COMPRESSION.md",
- section: "Features",
- content:
- "RTK compression is OmniRoute's command-aware compression engine for terminal and tool output. It is designed for coding-agent sessions where most context growth comes from test logs, build output, package manager noise, shell transcripts, Docker output, git output, and stack traces. RTK can run dire",
- headings: [
+ "slug": "rtk-compression",
+ "title": "RTK Compression",
+ "fileName": "RTK_COMPRESSION.md",
+ "section": "Features",
+ "content": "RTK compression is OmniRoute's command-aware compression engine for terminal and tool output. It is designed for coding-agent sessions where most context growth comes from test logs, build output, package manager noise, shell transcripts, Docker output, git output, and stack traces. RTK can run dire",
+ "headings": [
"What It Compresses",
"Filter Resolution",
"Filter DSL",
@@ -423,17 +411,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"API",
"Raw Output Recovery",
"Verify Gate",
- "Extending RTK",
- ],
+ "Extending RTK"
+ ]
},
{
- slug: "a2a-server",
- title: "OmniRoute A2A Server Documentation",
- fileName: "A2A-SERVER.md",
- section: "API & Protocols",
- content:
- "Agent-to-Agent Protocol v0.3 — OmniRoute as an intelligent routing agent Returns the Agent Card describing OmniRoute's capabilities, skills, and authentication requirements. Sends a message to a skill and waits for the complete response. Response: Same as message/send but returns Server-Sent Events ",
- headings: [
+ "slug": "a2a-server",
+ "title": "OmniRoute A2A Server Documentation",
+ "fileName": "A2A-SERVER.md",
+ "section": "API & Protocols",
+ "content": "Agent-to-Agent Protocol v0.3 — OmniRoute as an intelligent routing agent Returns the Agent Card describing OmniRoute's capabilities, skills, and authentication requirements. Sends a message to a skill and waits for the complete response. Response: Same as message/send but returns Server-Sent Events ",
+ "headings": [
"Agent Discovery",
"Authentication",
"Enablement",
@@ -443,17 +430,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"tasks/get — Query Task Status",
"tasks/cancel — Cancel a Task",
"Available Skills",
- "Task Lifecycle",
- ],
+ "Task Lifecycle"
+ ]
},
{
- slug: "api-reference",
- title: "API Reference",
- fileName: "API_REFERENCE.md",
- section: "API & Protocols",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "slug": "api-reference",
+ "title": "API Reference",
+ "fileName": "API_REFERENCE.md",
+ "section": "API & Protocols",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"Table of Contents",
"Chat Completions",
"Custom Headers",
@@ -463,17 +449,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Compatibility Endpoints",
"Dedicated Provider Routes",
"Semantic Cache",
- "Dashboard & Management",
- ],
+ "Dashboard & Management"
+ ]
},
{
- slug: "mcp-server",
- title: "OmniRoute MCP Server Documentation",
- fileName: "MCP-SERVER.md",
- section: "API & Protocols",
- content:
- "Model Context Protocol server with 37 tools across routing, cache, compression, memory, skills, and proxy operations OmniRoute MCP is built-in. Start it with: Or via the open-sse transport: See MCP Client Configuration for Claude Desktop, Cursor, Cline, and compatible MCP client setup. -------------",
- headings: [
+ "slug": "mcp-server",
+ "title": "OmniRoute MCP Server Documentation",
+ "fileName": "MCP-SERVER.md",
+ "section": "API & Protocols",
+ "content": "Model Context Protocol server with 37 tools across routing, cache, compression, memory, skills, and proxy operations OmniRoute MCP is built-in. Start it with: Or via the open-sse transport: See MCP Client Configuration for Claude Desktop, Cursor, Cline, and compatible MCP client setup. -------------",
+ "headings": [
"Installation",
"IDE Configuration",
"Essential Tools (8)",
@@ -483,17 +468,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Other Tool Groups",
"Authentication",
"Audit Logging",
- "Files",
- ],
+ "Files"
+ ]
},
{
- slug: "docker-guide",
- title: "🐳 Docker Guide",
- fileName: "DOCKER_GUIDE.md",
- section: "Deployment",
- content:
- "Complete Docker deployment reference. For a quick start, see the README Docker section. - Quick Run - With Environment File - Docker Compose - Docker Compose with Caddy (HTTPS) - Cloudflare Quick Tunnel - Image Tags - Important Notes --------------------- -------- ------ --------------------- diegos",
- headings: [
+ "slug": "docker-guide",
+ "title": "🐳 Docker Guide",
+ "fileName": "DOCKER_GUIDE.md",
+ "section": "Deployment",
+ "content": "Complete Docker deployment reference. For a quick start, see the README Docker section. - Quick Run - With Environment File - Docker Compose - Docker Compose with Caddy (HTTPS) - Cloudflare Quick Tunnel - Image Tags - Important Notes --------------------- -------- ------ --------------------- diegos",
+ "headings": [
"Table of Contents",
"Quick Run",
"With Environment File",
@@ -503,17 +487,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Tunnel Notes",
"Image Tags",
"Important Notes",
- "See Also",
- ],
+ "See Also"
+ ]
},
{
- slug: "fly-io-deployment-guide",
- title: "OmniRoute Fly.io 部署指南",
- fileName: "FLY_IO_DEPLOYMENT_GUIDE.md",
- section: "Deployment",
- content:
- "本文档记录 OmniRoute 在 Fly.io 上的实际部署方法,适用于两类场景: - 首次把当前项目部署到 Fly.io - 后续代码更新后继续发布 - 新项目参考同样流程部署 本文基于当前项目已经验证通过的配置整理,应用名为 omniroute。 当前仓库中的 fly.toml 已确认包含以下关键项: 说明: - app = 'omniroute' 决定实际部署到哪个 Fly 应用 - destination = '/data' 决定持久卷挂载目录 - 本项目必须让 DATADIR=/data,否则数据库和密钥会写到容器临时目录 --- Windows PowerShell: 如果安装脚",
- headings: [
+ "slug": "fly-io-deployment-guide",
+ "title": "OmniRoute Fly.io 部署指南",
+ "fileName": "FLY_IO_DEPLOYMENT_GUIDE.md",
+ "section": "Deployment",
+ "content": "本文档记录 OmniRoute 在 Fly.io 上的实际部署方法,适用于两类场景: - 首次把当前项目部署到 Fly.io - 后续代码更新后继续发布 - 新项目参考同样流程部署 本文基于当前项目已经验证通过的配置整理,应用名为 omniroute。 当前仓库中的 fly.toml 已确认包含以下关键项: 说明: - app = 'omniroute' 决定实际部署到哪个 Fly 应用 - destination = '/data' 决定持久卷挂载目录 - 本项目必须让 DATADIR=/data,否则数据库和密钥会写到容器临时目录 --- Windows PowerShell: 如果安装脚",
+ "headings": [
"1. 部署目标",
"2. 当前项目关键配置",
"3. 必备工具",
@@ -523,17 +506,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"4. 首次部署当前项目",
"4.1 获取代码并进入目录",
"4.2 确认应用名",
- "4.3 创建应用",
- ],
+ "4.3 创建应用"
+ ]
},
{
- slug: "pwa-guide",
- title: "Progressive Web App (PWA) Guide",
- fileName: "PWA_GUIDE.md",
- section: "Deployment",
- content:
- 'OmniRoute ships as a fully installable Progressive Web App. When you access the dashboard from any mobile browser — Android (Chrome) or iOS (Safari) — you can "Add to Home Screen" and get a native app-like experience with no app store required. A Progressive Web App turns the OmniRoute web dashboard',
- headings: [
+ "slug": "pwa-guide",
+ "title": "Progressive Web App (PWA) Guide",
+ "fileName": "PWA_GUIDE.md",
+ "section": "Deployment",
+ "content": "OmniRoute ships as a fully installable Progressive Web App. When you access the dashboard from any mobile browser — Android (Chrome) or iOS (Safari) — you can \"Add to Home Screen\" and get a native app-like experience with no app store required. A Progressive Web App turns the OmniRoute web dashboard",
+ "headings": [
"What Is a PWA?",
"Installation",
"Android (Chrome)",
@@ -543,17 +525,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Fullscreen Experience",
"Offline Support",
"Offline Page",
- "App Icons",
- ],
+ "App Icons"
+ ]
},
{
- slug: "termux-guide",
- title: "Termux Headless Setup",
- fileName: "TERMUX_GUIDE.md",
- section: "Deployment",
- content:
- "OmniRoute can run as a headless server on Android through Termux. The Electron desktop app is not supported in Termux, but the web dashboard and OpenAI-compatible API work from the local browser or from other devices on the same network. Install Termux from F-Droid or GitHub releases, then update pa",
- headings: [
+ "slug": "termux-guide",
+ "title": "Termux Headless Setup",
+ "fileName": "TERMUX_GUIDE.md",
+ "section": "Deployment",
+ "content": "OmniRoute can run as a headless server on Android through Termux. The Electron desktop app is not supported in Termux, but the web dashboard and OpenAI-compatible API work from the local browser or from other devices on the same network. Install Termux from F-Droid or GitHub releases, then update pa",
+ "headings": [
"Prerequisites",
"Install",
"Run",
@@ -563,17 +544,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Limitations",
"Troubleshooting",
"better-sqlite3 Build Errors",
- "Port Already In Use",
- ],
+ "Port Already In Use"
+ ]
},
{
- slug: "vm-deployment-guide",
- title: "OmniRoute — Deployment Guide on VM with Cloudflare",
- fileName: "VM_DEPLOYMENT_GUIDE.md",
- section: "Deployment",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "slug": "vm-deployment-guide",
+ "title": "OmniRoute — Deployment Guide on VM with Cloudflare",
+ "fileName": "VM_DEPLOYMENT_GUIDE.md",
+ "section": "Deployment",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"Prerequisites",
"1. Configure the VM",
"1.1 Create the instance",
@@ -583,17 +563,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"1.5 Install nginx",
"1.6 Configure Firewall (UFW)",
"2. Install OmniRoute",
- "2.1 Create configuration directory",
- ],
+ "2.1 Create configuration directory"
+ ]
},
{
- slug: "environment",
- title: "Environment Variables Reference",
- fileName: "ENVIRONMENT.md",
- section: "Operations",
- content:
- "Complete reference for every environment variable recognized by OmniRoute. For a quick-start template, see .env.example. These must be set before the first run. Without them, the application will either refuse to start or operate with insecure defaults. Variable Required Default Source File Descript",
- headings: [
+ "slug": "environment",
+ "title": "Environment Variables Reference",
+ "fileName": "ENVIRONMENT.md",
+ "section": "Operations",
+ "content": "Complete reference for every environment variable recognized by OmniRoute. For a quick-start template, see .env.example. These must be set before the first run. Without them, the application will either refuse to start or operate with insecure defaults. Variable Required Default Source File Descript",
+ "headings": [
"Table of Contents",
"1. Required Secrets",
"Generation Commands",
@@ -603,17 +582,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Port Modes",
"4. Security & Authentication",
"Hardening Checklist",
- "5. Input Sanitization & PII Protection",
- ],
+ "5. Input Sanitization & PII Protection"
+ ]
},
{
- slug: "proxy-guide",
- title: "OmniRoute Proxy Guide",
- fileName: "PROXY_GUIDE.md",
- section: "Operations",
- content:
- "Bypass geographic blocks, protect your identity, and route AI traffic through any proxy — with zero configuration complexity. OmniRoute includes a full-featured proxy management system that lets you route upstream AI provider traffic through HTTP, HTTPS, or SOCKS5 proxies. Whether you're in a blocke",
- headings: [
+ "slug": "proxy-guide",
+ "title": "OmniRoute Proxy Guide",
+ "fileName": "PROXY_GUIDE.md",
+ "section": "Operations",
+ "content": "Bypass geographic blocks, protect your identity, and route AI traffic through any proxy — with zero configuration complexity. OmniRoute includes a full-featured proxy management system that lets you route upstream AI provider traffic through HTTP, HTTPS, or SOCKS5 proxies. Whether you're in a blocke",
+ "headings": [
"Table of Contents",
"Why Use Proxies?",
"Architecture Overview",
@@ -623,17 +601,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"What Gets Proxied",
"Proxy Registry (CRUD)",
"Creating a Proxy",
- "Updating a Proxy",
- ],
+ "Updating a Proxy"
+ ]
},
{
- slug: "resilience-guide",
- title: "🛡️ Resilience Guide",
- fileName: "RESILIENCE_GUIDE.md",
- section: "Operations",
- content:
- "How OmniRoute keeps your AI coding workflow running when providers fail. OmniRoute implements a multi-layered resilience system that ensures zero downtime: ------------ ------- ------------------------------------ Queue Size 10 Max queued requests per connection Pacing Interval 0ms Minimum gap betwe",
- headings: [
+ "slug": "resilience-guide",
+ "title": "🛡️ Resilience Guide",
+ "fileName": "RESILIENCE_GUIDE.md",
+ "section": "Operations",
+ "content": "How OmniRoute keeps your AI coding workflow running when providers fail. OmniRoute implements a multi-layered resilience system that ensures zero downtime: ------------ ------- ------------------------------------ Queue Size 10 Max queued requests per connection Pacing Interval 0ms Minimum gap betwe",
+ "headings": [
"Overview",
"Request Queue & Pacing",
"Connection Cooldown",
@@ -643,37 +620,35 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Combo Fallback Chains",
"13 Routing Strategies",
"TLS Fingerprint Spoofing",
- "Health Dashboard",
- ],
+ "Health Dashboard"
+ ]
},
{
- slug: "troubleshooting",
- title: "Troubleshooting",
- fileName: "TROUBLESHOOTING.md",
- section: "Operations",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "slug": "troubleshooting",
+ "title": "Troubleshooting",
+ "fileName": "TROUBLESHOOTING.md",
+ "section": "Operations",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"Quick Fixes",
"Node.js Compatibility",
- 'Login page crashes or shows "Module self-registration" error',
- 'macOS: dlopen / "slice is not valid mach-o file"',
+ "Login page crashes or shows \"Module self-registration\" error",
+ "macOS: dlopen / \"slice is not valid mach-o file\"",
"Proxy Issues",
- 'Provider validation shows "fetch failed"',
- 'Token health check fails with "fetch failed"',
- 'SOCKS5 proxy returns "invalid onRequestStart method"',
+ "Provider validation shows \"fetch failed\"",
+ "Token health check fails with \"fetch failed\"",
+ "SOCKS5 proxy returns \"invalid onRequestStart method\"",
"Provider Issues",
- '"Language model did not provide messages"',
- ],
+ "\"Language model did not provide messages\""
+ ]
},
{
- slug: "codebase-documentation",
- title: "omniroute — Codebase Documentation",
- fileName: "CODEBASE_DOCUMENTATION.md",
- section: "Development",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "slug": "codebase-documentation",
+ "title": "omniroute — Codebase Documentation",
+ "fileName": "CODEBASE_DOCUMENTATION.md",
+ "section": "Development",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"1. What Is omniroute?",
"2. Architecture Overview",
"Core Principle: Hub-and-Spoke Translation",
@@ -683,17 +658,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Credential Loading Flow",
"4.2 Executors (open-sse/executors/)",
"4.3 Handlers (open-sse/handlers/)",
- "Request Lifecycle (chatCore.ts)",
- ],
+ "Request Lifecycle (chatCore.ts)"
+ ]
},
{
- slug: "coverage-plan",
- title: "Test Coverage Plan",
- fileName: "COVERAGE_PLAN.md",
- section: "Development",
- content:
- "Last updated: 2026-03-28 There are multiple coverage numbers depending on how the report is computed. For planning, only one of them is useful. Metric Scope Statements / Lines Branches Functions Notes -------------------- ----------------------------------------------------- -----------------: -----",
- headings: [
+ "slug": "coverage-plan",
+ "title": "Test Coverage Plan",
+ "fileName": "COVERAGE_PLAN.md",
+ "section": "Development",
+ "content": "Last updated: 2026-03-28 There are multiple coverage numbers depending on how the report is computed. For planning, only one of them is useful. Metric Scope Statements / Lines Branches Functions Notes -------------------- ----------------------------------------------------- -----------------: -----",
+ "headings": [
"Baseline",
"Rules",
"Current command set",
@@ -703,17 +677,16 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Phase 1: 56.95% -> 60%",
"Phase 2: 60% -> 65%",
"Phase 3: 65% -> 70%",
- "Phase 4: 70% -> 75%",
- ],
+ "Phase 4: 70% -> 75%"
+ ]
},
{
- slug: "i18n",
- title: "i18n — Internationalization Guide",
- fileName: "I18N.md",
- section: "Development",
- content:
- "OmniRoute supports 30 languages with full dashboard UI translation, translated documentation, and RTL support for Arabic and Hebrew. 🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇩🇪 Deutsch 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇯🇵 日本語 🇰🇷 한국어 🇸🇦 العربية 🇮🇳 ",
- headings: [
+ "slug": "i18n",
+ "title": "i18n — Internationalization Guide",
+ "fileName": "I18N.md",
+ "section": "Development",
+ "content": "OmniRoute supports 30 languages with full dashboard UI translation, translated documentation, and RTL support for Arabic and Hebrew. 🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇩🇪 Deutsch 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇯🇵 日本語 🇰🇷 한국어 🇸🇦 العربية 🇮🇳 ",
+ "headings": [
"Quick Reference",
"Architecture",
"Source of Truth",
@@ -723,26 +696,29 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"1. Register the Locale",
"2. Add to Generator",
"3. Generate Initial Translation",
- "4. Review & Fix Auto-Translations",
- ],
- },
- {
- slug: "release-checklist",
- title: "Release Checklist",
- fileName: "RELEASE_CHECKLIST.md",
- section: "Development",
- content:
- "Use this checklist before tagging or publishing a new OmniRoute release. 1. Bump package.json version (x.y.z) in the release branch. 2. Move release notes from [Unreleased] in CHANGELOG.md to a dated section: - [x.y.z] — YYYY-MM-DD 3. Keep [Unreleased] as the first changelog section for upcoming wor",
- headings: ["Version and Changelog", "API Docs", "Runtime Docs", "Automated Check"],
- },
- {
- slug: "uninstall",
- title: "OmniRoute — Uninstall Guide",
- fileName: "UNINSTALL.md",
- section: "Development",
- content:
- "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
- headings: [
+ "4. Review & Fix Auto-Translations"
+ ]
+ },
+ {
+ "slug": "release-checklist",
+ "title": "Release Checklist",
+ "fileName": "RELEASE_CHECKLIST.md",
+ "section": "Development",
+ "content": "Use this checklist before tagging or publishing a new OmniRoute release. 1. Bump package.json version (x.y.z) in the release branch. 2. Move release notes from [Unreleased] in CHANGELOG.md to a dated section: - [x.y.z] — YYYY-MM-DD 3. Keep [Unreleased] as the first changelog section for upcoming wor",
+ "headings": [
+ "Version and Changelog",
+ "API Docs",
+ "Runtime Docs",
+ "Automated Check"
+ ]
+ },
+ {
+ "slug": "uninstall",
+ "title": "OmniRoute — Uninstall Guide",
+ "fileName": "UNINSTALL.md",
+ "section": "Development",
+ "content": "🌐 Languages: 🇺🇸 English 🇧🇷 Português (Brasil) 🇪🇸 Español 🇫🇷 Français 🇮🇹 Italiano 🇷🇺 Русский 🇨🇳 中文 (简体) 🇩🇪 Deutsch 🇮🇳 हिन्दी 🇹🇭 ไทย 🇺🇦 Українська 🇸🇦 العربية 🇯🇵 日本語 🇻🇳 Tiếng Việt 🇧🇬 Български 🇩🇰 Dansk 🇫🇮 Suomi 🇮🇱 עברית 🇭🇺 Magyar 🇮🇩 Bahasa Indonesia 🇰🇷 한국어 🇲\ud83c",
+ "headings": [
"Quick Uninstall (v3.6.2+)",
"Keep Your Data",
"Full Removal",
@@ -752,17 +728,20 @@ export const autoSearchIndex: AutoGenSearchItem[] = [
"Docker",
"Docker Compose",
"Electron Desktop App",
- "Source Install (git clone)",
- ],
- },
- {
- slug: "api-explorer",
- title: "API Explorer",
- fileName: "API_REFERENCE.md",
- section: "API & Protocols",
- content: "interactive try it live api explorer endpoint test request response curl example",
- headings: ["Try It", "Endpoints"],
- },
+ "Source Install (git clone)"
+ ]
+ },
+ {
+ "slug": "api-explorer",
+ "title": "API Explorer",
+ "fileName": "API_REFERENCE.md",
+ "section": "API & Protocols",
+ "content": "interactive try it live api explorer endpoint test request response curl example",
+ "headings": [
+ "Try It",
+ "Endpoints"
+ ]
+ }
];
export const autoAllSlugs: string[] = [
@@ -794,5 +773,5 @@ export const autoAllSlugs: string[] = [
"coverage-plan",
"i18n",
"release-checklist",
- "uninstall",
+ "uninstall"
];
diff --git a/src/shared/components/docs/DocsBreadcrumbs.tsx b/src/shared/components/docs/DocsBreadcrumbs.tsx
index 231cb1798b..42c2be99e8 100644
--- a/src/shared/components/docs/DocsBreadcrumbs.tsx
+++ b/src/shared/components/docs/DocsBreadcrumbs.tsx
@@ -26,7 +26,11 @@ export default function DocsBreadcrumbs({ labels, className }: DocsBreadcrumbsPr
aria-label="Breadcrumb"
className={cn("flex items-center gap-2 text-sm text-text-muted mb-6", className)}
>
+<<<<<<< HEAD
+ <Link href="/docs" className="hover:text-text-main transition-colors">
+=======
<Link href="/" className="hover:text-text-main transition-colors">
+>>>>>>> upstream/release/v3.7.9
Docs
</Link>
{crumbs.map((crumb, i) => (
diff --git a/src/shared/components/docs/Tabs.stories.tsx b/src/shared/components/docs/Tabs.stories.tsx
index 3d8521e6c4..e02ea44f79 100644
--- a/src/shared/components/docs/Tabs.stories.tsx
+++ b/src/shared/components/docs/Tabs.stories.tsx
@@ -14,6 +14,21 @@ export const Default: Story = {
tabs: [
{
label: "Installation",
+<<<<<<< HEAD
+ content: <div className="p-2">Run npm install to get started.</div>,
+ },
+ {
+ label: "Configuration",
+ content: <div className="p-2">Edit your config.json file.</div>,
+ },
+ {
+ label: "Usage",
+ content: <div className="p-2">Import the provider and start routing.</div>,
+ },
+ ],
+ },
+};
+=======
content: '<div className="p-2">Run npm install to get started.</div>',
},
{ label: "Configuration", content: '<div className="p-2">Edit your config.json file.</div>' },
@@ -24,3 +39,4 @@ export const Default: Story = {
],
},
};
+>>>>>>> upstream/release/v3.7.9
diff --git a/tests/unit/docs-site-overhaul.test.ts b/tests/unit/docs-site-overhaul.test.ts
index efa6eb5358..6abab48948 100644
--- a/tests/unit/docs-site-overhaul.test.ts
+++ b/tests/unit/docs-site-overhaul.test.ts
@@ -147,20 +147,29 @@ test("extractHeadings strips bold and code from heading text", () => {
test("renderMarkdown converts headings to HTML", () => {
const html = renderMarkdown("# Title\n## Section\n### Subsection\n#### Details");
- assert.ok(html.includes('<h1 class="text-3xl'), "h1 tag");
- assert.ok(html.includes('<h2 id="Section"'), "h2 tag with id");
- assert.ok(html.includes('<h3 id="Subsection"'), "h3 tag with id");
- assert.ok(html.includes('<h4 id="Details"'), "h4 tag with id");
+ assert.ok(html.includes('<h1'), "h1 tag");
+ assert.ok(html.includes("Title"), "h1 text");
+ assert.ok(html.includes('<h2'), "h2 tag");
+ assert.ok(html.includes("Section"), "h2 text");
+ assert.ok(html.includes('<h3'), "h3 tag");
+ assert.ok(html.includes('<h4'), "h4 tag");
+});
+
+test("renderMarkdown sanitizes XSS content", () => {
+ const html = renderMarkdown('<script>alert("xss")</script>');
+ assert.ok(!html.includes("<script"), "script tags should be sanitized");
});
test("renderMarkdown converts code blocks", () => {
const html = renderMarkdown("```js\nconst x = 1;\n```");
+ assert.ok(html.includes("<pre"), "pre tag");
assert.ok(html.includes('<pre class="bg-bg-subtle'), "pre tag");
assert.ok(html.includes("language-js"), "language class");
});
test("renderMarkdown converts inline code", () => {
const html = renderMarkdown("Use `npm install` to install");
+ assert.ok(html.includes("<code"), "inline code tag");
assert.ok(html.includes('<code class="bg-bg-subtle'), "inline code tag");
});
@@ -176,18 +185,23 @@ test("renderMarkdown converts italic text", () => {
test("renderMarkdown converts links", () => {
const html = renderMarkdown("[OmniRoute](https://omniroute.online)");
- assert.ok(html.includes('<a href="https://omniroute.online"'));
- assert.ok(html.includes(">OmniRoute</a>"));
+ assert.ok(html.includes('href="https://omniroute.online"'));
+ assert.ok(html.includes("OmniRoute</a>"));
+ assert.ok(html.includes('<a class="text-primary hover:underline"'));
});
test("renderMarkdown converts unordered lists", () => {
const html = renderMarkdown("- Item 1\n- Item 2");
- assert.ok(html.includes('<li class="mb-1 ml-4">'));
+ assert.ok(html.includes("<ul"));
+ assert.ok(html.includes("<li"));
+ assert.ok(html.includes('class="mb-1"'));
});
test("renderMarkdown converts ordered lists", () => {
const html = renderMarkdown("1. First\n2. Second");
- assert.ok(html.includes('<li class="mb-1 ml-4">'));
+ assert.ok(html.includes("<ol"), "ol tag");
+ assert.ok(html.includes("<li"), "li tag");
+ assert.ok(html.includes('class="mb-1"'), "li class");
});
test("renderMarkdown converts blockquotes", () => {
@@ -198,6 +212,7 @@ test("renderMarkdown converts blockquotes", () => {
test("renderMarkdown converts horizontal rules", () => {
const html = renderMarkdown("---");
+ assert.ok(html.includes("<hr"));
assert.ok(html.includes('<hr class="border-border'));
});