Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

blog (#269)

Bill Yang3a14f5f697ab
diff --git a/docs/mdx-components.js b/docs/mdx-components.js
index 9dcb3cac5..f48afda1c 100644
--- a/docs/mdx-components.js
+++ b/docs/mdx-components.js
@@ -1,8 +1,8 @@
-import { useMDXComponents as getDocsMDXComponents } from 'nextra-theme-docs'
+import { useMDXComponents as getDocsMDXComponents } from "nextra-theme-docs";
-const docsComponents = getDocsMDXComponents()
+const docsComponents = getDocsMDXComponents();
-export const useMDXComponents = components => ({
+export const useMDXComponents = (components) => ({
...docsComponents,
- ...components
-})
+ ...components,
+});
diff --git a/docs/package-lock.json b/docs/package-lock.json
index 032d81f0a..6b20bb281 100644
--- a/docs/package-lock.json
+++ b/docs/package-lock.json
@@ -10,19 +10,18 @@
"@radix-ui/react-accordion": "1.2.10",
"@radix-ui/react-slider": "1.3.4",
"@tailwindcss/postcss": "4.1.6",
- "@theguild/remark-mermaid": "0.3.0",
"boring-avatars": "1.11.2",
- "class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"country-flag-icons": "1.5.19",
+ "gray-matter": "^4.0.3",
"lucide-react": "0.510.0",
"motion": "12.11.0",
- "next": "15.3.2",
- "nextra": "4.2.17",
+ "next": "^15.3.2",
+ "next-mdx-remote": "^5.0.0",
+ "nextra": "^4.2.17",
"nextra-theme-docs": "4.2.17",
- "postcss": "8.5.3",
- "react": "19.1.0",
- "react-dom": "19.1.0",
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
"react-tweet": "3.2.2",
"tailwind-merge": "3.3.0",
"tailwindcss": "4.1.6"
@@ -38,7 +37,6 @@
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",
"integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",
- "license": "MIT",
"engines": {
"node": ">=10"
},
@@ -50,7 +48,6 @@
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz",
"integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==",
- "license": "Apache-2.0",
"dependencies": {
"@jridgewell/gen-mapping": "^0.3.5",
"@jridgewell/trace-mapping": "^0.3.24"
@@ -81,6 +78,27 @@
"url": "https://github.com/sponsors/antfu"
}
},
+ "node_modules/@babel/code-frame": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
+ "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",
+ "dependencies": {
+ "@babel/helper-validator-identifier": "^7.27.1",
+ "js-tokens": "^4.0.0",
+ "picocolors": "^1.1.1"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@babel/helper-validator-identifier": {
+ "version": "7.27.1",
+ "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
+ "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
"node_modules/@braintree/sanitize-url": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-7.1.1.tgz",
@@ -621,7 +639,6 @@
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/@isaacs/fs-minipass/-/fs-minipass-4.0.1.tgz",
"integrity": "sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==",
- "license": "ISC",
"dependencies": {
"minipass": "^7.0.4"
},
@@ -633,7 +650,6 @@
"version": "0.3.8",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz",
"integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==",
- "license": "MIT",
"dependencies": {
"@jridgewell/set-array": "^1.2.1",
"@jridgewell/sourcemap-codec": "^1.4.10",
@@ -647,7 +663,6 @@
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
"integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",
- "license": "MIT",
"engines": {
"node": ">=6.0.0"
}
@@ -656,7 +671,6 @@
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz",
"integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==",
- "license": "MIT",
"engines": {
"node": ">=6.0.0"
}
@@ -664,14 +678,12 @@
"node_modules/@jridgewell/sourcemap-codec": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz",
- "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==",
- "license": "MIT"
+ "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ=="
},
"node_modules/@jridgewell/trace-mapping": {
"version": "0.3.25",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz",
"integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==",
- "license": "MIT",
"dependencies": {
"@jridgewell/resolve-uri": "^3.1.0",
"@jridgewell/sourcemap-codec": "^1.4.14"
@@ -713,6 +725,22 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/@mdx-js/react": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@mdx-js/react/-/react-3.1.0.tgz",
+ "integrity": "sha512-QjHtSaoameoalGnKDT3FoIl4+9RwyTmo9ZJGBdLOks/YOiWHoRDI3PUwEzOE7kEmGcV3AFcp9K6dYu9rEuKLAQ==",
+ "dependencies": {
+ "@types/mdx": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ },
+ "peerDependencies": {
+ "@types/react": ">=16",
+ "react": ">=16"
+ }
+ },
"node_modules/@mermaid-js/parser": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/@mermaid-js/parser/-/parser-0.4.0.tgz",
@@ -1688,21 +1716,41 @@
}
},
"node_modules/@shikijs/langs": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz",
- "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==",
- "license": "MIT",
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.4.1.tgz",
+ "integrity": "sha512-v5A5ApJYcrcPLHcwAi0bViUU+Unh67UaXU9gGX3qfr2z3AqlqSZbC00W/3J4+tfGJASzwrWDro2R1er6SsCL1Q==",
+ "peer": true,
"dependencies": {
- "@shikijs/types": "2.5.0"
+ "@shikijs/types": "3.4.1"
+ }
+ },
+ "node_modules/@shikijs/langs/node_modules/@shikijs/types": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.4.1.tgz",
+ "integrity": "sha512-4flT+pToGqRBb0UhGqXTV7rCqUS3fhc8z3S2Djc3E5USKhXwadeKGFVNB2rKXfohlrEozNJMtMiZaN8lfdj/ZQ==",
+ "peer": true,
+ "dependencies": {
+ "@shikijs/vscode-textmate": "^10.0.2",
+ "@types/hast": "^3.0.4"
}
},
"node_modules/@shikijs/themes": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz",
- "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==",
- "license": "MIT",
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.4.1.tgz",
+ "integrity": "sha512-XOJgs55mVVMZtNVJx1NVmdcfXG9HIyZGh7qpCw/Ok5UMjWgkmb8z15TgcmF3ItvHItijiIMl9BLcNO/tFSGl1w==",
+ "peer": true,
"dependencies": {
- "@shikijs/types": "2.5.0"
+ "@shikijs/types": "3.4.1"
+ }
+ },
+ "node_modules/@shikijs/themes/node_modules/@shikijs/types": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.4.1.tgz",
+ "integrity": "sha512-4flT+pToGqRBb0UhGqXTV7rCqUS3fhc8z3S2Djc3E5USKhXwadeKGFVNB2rKXfohlrEozNJMtMiZaN8lfdj/ZQ==",
+ "peer": true,
+ "dependencies": {
+ "@shikijs/vscode-textmate": "^10.0.2",
+ "@types/hast": "^3.0.4"
}
},
"node_modules/@shikijs/twoslash": {
@@ -1751,7 +1799,6 @@
"version": "4.1.6",
"resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.1.6.tgz",
"integrity": "sha512-ed6zQbgmKsjsVvodAS1q1Ld2BolEuxJOSyyNc+vhkjdmfNUDCmQnlXBfQkHrlzNmslxHsQU/bFmzcEbv4xXsLg==",
- "license": "MIT",
"dependencies": {
"@ampproject/remapping": "^2.3.0",
"enhanced-resolve": "^5.18.1",
@@ -1767,7 +1814,6 @@
"resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.1.6.tgz",
"integrity": "sha512-0bpEBQiGx+227fW4G0fLQ8vuvyy5rsB1YIYNapTq3aRsJ9taF3f5cCaovDjN5pUGKKzcpMrZst/mhNaKAPOHOA==",
"hasInstallScript": true,
- "license": "MIT",
"dependencies": {
"detect-libc": "^2.0.4",
"tar": "^7.4.3"
@@ -1797,7 +1843,6 @@
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"android"
@@ -1813,7 +1858,6 @@
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"darwin"
@@ -1829,7 +1873,6 @@
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"darwin"
@@ -1845,7 +1888,6 @@
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"freebsd"
@@ -1861,7 +1903,6 @@
"cpu": [
"arm"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1877,7 +1918,6 @@
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1893,7 +1933,6 @@
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1909,7 +1948,6 @@
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1925,7 +1963,6 @@
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"linux"
@@ -1949,7 +1986,6 @@
"cpu": [
"wasm32"
],
- "license": "MIT",
"optional": true,
"dependencies": {
"@emnapi/core": "^1.4.3",
@@ -1970,7 +2006,6 @@
"cpu": [
"arm64"
],
- "license": "MIT",
"optional": true,
"os": [
"win32"
@@ -1986,7 +2021,6 @@
"cpu": [
"x64"
],
- "license": "MIT",
"optional": true,
"os": [
"win32"
@@ -1999,7 +2033,6 @@
"version": "4.1.6",
"resolved": "https://registry.npmjs.org/@tailwindcss/postcss/-/postcss-4.1.6.tgz",
"integrity": "sha512-ELq+gDMBuRXPJlpE3PEen+1MhnHAQQrh2zF0dI1NXOlEWfr2qWf2CQdr5jl9yANv8RErQaQ2l6nIFO9OSCVq/g==",
- "license": "MIT",
"dependencies": {
"@alloc/quick-lru": "^5.2.0",
"@tailwindcss/node": "4.1.6",
@@ -2035,19 +2068,6 @@
"url": "https://github.com/sponsors/tannerlinsley"
}
},
- "node_modules/@theguild/remark-mermaid": {
- "version": "0.3.0",
- "resolved": "https://registry.npmjs.org/@theguild/remark-mermaid/-/remark-mermaid-0.3.0.tgz",
- "integrity": "sha512-Fy1J4FSj8totuHsHFpaeWyWRaRSIvpzGTRoEfnNJc1JmLV9uV70sYE3zcT+Jj5Yw20Xq4iCsiT+3Ho49BBZcBQ==",
- "license": "MIT",
- "dependencies": {
- "mermaid": "^11.0.0",
- "unist-util-visit": "^5.0.0"
- },
- "peerDependencies": {
- "react": "^18.2.0 || ^19.0.0"
- }
- },
"node_modules/@theguild/remark-npm2yarn": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@theguild/remark-npm2yarn/-/remark-npm2yarn-0.3.3.tgz",
@@ -2400,7 +2420,6 @@
"version": "19.1.4",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.1.4.tgz",
"integrity": "sha512-EB1yiiYdvySuIITtD5lhW4yPyJ31RkJkkDw794LaQYrxCSaQV/47y5o1FMC4zF9ZyjUjzJMZwbovEnT5yHTW6g==",
- "devOptional": true,
"license": "MIT",
"dependencies": {
"csstype": "^3.0.2"
@@ -2473,6 +2492,14 @@
"integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",
"license": "MIT"
},
+ "node_modules/argparse": {
+ "version": "1.0.10",
+ "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
+ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
+ "dependencies": {
+ "sprintf-js": "~1.0.2"
+ }
+ },
"node_modules/array-iterate": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/array-iterate/-/array-iterate-2.0.1.tgz",
@@ -2655,23 +2682,10 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/chownr/-/chownr-3.0.0.tgz",
"integrity": "sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==",
- "license": "BlueOak-1.0.0",
"engines": {
"node": ">=18"
}
},
- "node_modules/class-variance-authority": {
- "version": "0.7.1",
- "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz",
- "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==",
- "license": "Apache-2.0",
- "dependencies": {
- "clsx": "^2.1.1"
- },
- "funding": {
- "url": "https://polar.sh/cva"
- }
- },
"node_modules/client-only": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/client-only/-/client-only-0.0.1.tgz",
@@ -2823,7 +2837,6 @@
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
- "devOptional": true,
"license": "MIT"
},
"node_modules/cytoscape": {
@@ -3420,7 +3433,6 @@
"version": "5.18.1",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.18.1.tgz",
"integrity": "sha512-ZSW3ma5GkcQBIpwZTSRAI8N71Uuwgs93IezB7mf7R60tC8ZbJideoDNKjHn2O9KIlx6rkGTTEk1xUCK2E1Y2Yg==",
- "license": "MIT",
"dependencies": {
"graceful-fs": "^4.2.4",
"tapable": "^2.2.0"
@@ -3494,6 +3506,18 @@
"node": ">=6"
}
},
+ "node_modules/esprima": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",
+ "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",
+ "bin": {
+ "esparse": "bin/esparse.js",
+ "esvalidate": "bin/esvalidate.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/estree-util-attach-comments": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/estree-util-attach-comments/-/estree-util-attach-comments-3.0.0.tgz",
@@ -3632,6 +3656,17 @@
"integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",
"license": "MIT"
},
+ "node_modules/extend-shallow": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz",
+ "integrity": "sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==",
+ "dependencies": {
+ "is-extendable": "^0.1.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/fast-glob": {
"version": "3.3.3",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",
@@ -3762,8 +3797,21 @@
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
- "license": "ISC"
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
+ },
+ "node_modules/gray-matter": {
+ "version": "4.0.3",
+ "resolved": "https://registry.npmjs.org/gray-matter/-/gray-matter-4.0.3.tgz",
+ "integrity": "sha512-5v6yZd4JK3eMI3FqqCouswVqwugaA9r4dNZB1wwcmrD02QkV5H0y7XBQW8QwQqEaZY1pM9aqORSORhJRdNK44Q==",
+ "dependencies": {
+ "js-yaml": "^3.13.1",
+ "kind-of": "^6.0.2",
+ "section-matter": "^1.0.0",
+ "strip-bom-string": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=6.0"
+ }
},
"node_modules/hachure-fill": {
"version": "0.5.2",
@@ -4159,6 +4207,14 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/is-extendable": {
+ "version": "0.1.1",
+ "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz",
+ "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
@@ -4281,11 +4337,27 @@
"version": "2.4.2",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz",
"integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==",
- "license": "MIT",
"bin": {
"jiti": "lib/jiti-cli.mjs"
}
},
+ "node_modules/js-tokens": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
+ "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
+ },
+ "node_modules/js-yaml": {
+ "version": "3.14.1",
+ "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ }
+ },
"node_modules/katex": {
"version": "0.16.22",
"resolved": "https://registry.npmjs.org/katex/-/katex-0.16.22.tgz",
@@ -4316,6 +4388,14 @@
"resolved": "https://registry.npmjs.org/khroma/-/khroma-2.1.0.tgz",
"integrity": "sha512-Ls993zuzfayK269Svk9hzpeGUKob/sIgZzyHYdjQoAdQetRKpOLj+k/QQQ/6Qi0Yz65mlROrfd+Ev+1+7dz9Kw=="
},
+ "node_modules/kind-of": {
+ "version": "6.0.3",
+ "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz",
+ "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/kolorist": {
"version": "1.8.0",
"resolved": "https://registry.npmjs.org/kolorist/-/kolorist-1.8.0.tgz",
@@ -4348,7 +4428,6 @@
"version": "1.29.2",
"resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.29.2.tgz",
"integrity": "sha512-6b6gd/RUXKaw5keVdSEtqFVdzWnU5jMxTUjA2bVcMNPLwSQ08Sv/UodBVtETLCn7k4S1Ibxwh7k68IwLZPgKaA==",
- "license": "MPL-2.0",
"dependencies": {
"detect-libc": "^2.0.3"
},
@@ -4379,7 +4458,6 @@
"cpu": [
"arm64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
@@ -4399,7 +4477,6 @@
"cpu": [
"x64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"darwin"
@@ -4419,7 +4496,6 @@
"cpu": [
"x64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"freebsd"
@@ -4439,7 +4515,6 @@
"cpu": [
"arm"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"linux"
@@ -4459,7 +4534,6 @@
"cpu": [
"arm64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"linux"
@@ -4479,7 +4553,6 @@
"cpu": [
"arm64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"linux"
@@ -4499,7 +4572,6 @@
"cpu": [
"x64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"linux"
@@ -4519,7 +4591,6 @@
"cpu": [
"x64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"linux"
@@ -4539,7 +4610,6 @@
"cpu": [
"arm64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"win32"
@@ -4559,7 +4629,6 @@
"cpu": [
"x64"
],
- "license": "MPL-2.0",
"optional": true,
"os": [
"win32"
@@ -4618,7 +4687,6 @@
"version": "0.30.17",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz",
"integrity": "sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==",
- "license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0"
}
@@ -5823,7 +5891,6 @@
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",
"integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",
- "license": "ISC",
"engines": {
"node": ">=16 || 14 >=14.17"
}
@@ -5832,7 +5899,6 @@
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/minizlib/-/minizlib-3.0.2.tgz",
"integrity": "sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==",
- "license": "MIT",
"dependencies": {
"minipass": "^7.1.2"
},
@@ -5850,7 +5916,6 @@
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz",
"integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==",
- "license": "MIT",
"bin": {
"mkdirp": "dist/cjs/src/bin.js"
},
@@ -5968,7 +6033,6 @@
"version": "15.3.2",
"resolved": "https://registry.npmjs.org/next/-/next-15.3.2.tgz",
"integrity": "sha512-CA3BatMyHkxZ48sgOCLdVHjFU36N7TF1HhqAHLFOkV6buwZnvMI84Cug8xD56B9mCuKrqXnLn94417GrZ/jjCQ==",
- "license": "MIT",
"dependencies": {
"@next/env": "15.3.2",
"@swc/counter": "0.1.3",
@@ -6018,6 +6082,70 @@
}
}
},
+ "node_modules/next-mdx-remote": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/next-mdx-remote/-/next-mdx-remote-5.0.0.tgz",
+ "integrity": "sha512-RNNbqRpK9/dcIFZs/esQhuLA8jANqlH694yqoDBK8hkVdJUndzzGmnPHa2nyi90N4Z9VmzuSWNRpr5ItT3M7xQ==",
+ "dependencies": {
+ "@babel/code-frame": "^7.23.5",
+ "@mdx-js/mdx": "^3.0.1",
+ "@mdx-js/react": "^3.0.1",
+ "unist-util-remove": "^3.1.0",
+ "vfile": "^6.0.1",
+ "vfile-matter": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=14",
+ "npm": ">=7"
+ },
+ "peerDependencies": {
+ "react": ">=16"
+ }
+ },
+ "node_modules/next-mdx-remote/node_modules/@types/unist": {
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",
+ "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA=="
+ },
+ "node_modules/next-mdx-remote/node_modules/unist-util-is": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-5.2.1.tgz",
+ "integrity": "sha512-u9njyyfEh43npf1M+yGKDGVPbY/JWEemg5nH05ncKPfi+kBbKBJoTdsogMu33uhytuLlv9y0O7GH7fEdwLdLQw==",
+ "dependencies": {
+ "@types/unist": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/next-mdx-remote/node_modules/unist-util-remove": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/unist-util-remove/-/unist-util-remove-3.1.1.tgz",
+ "integrity": "sha512-kfCqZK5YVY5yEa89tvpl7KnBBHu2c6CzMkqHUrlOqaRgGOMp0sMvwWOVrbAtj03KhovQB7i96Gda72v/EFE0vw==",
+ "dependencies": {
+ "@types/unist": "^2.0.0",
+ "unist-util-is": "^5.0.0",
+ "unist-util-visit-parents": "^5.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
+ "node_modules/next-mdx-remote/node_modules/unist-util-visit-parents": {
+ "version": "5.1.3",
+ "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-5.1.3.tgz",
+ "integrity": "sha512-x6+y8g7wWMyQhL1iZfhIPhDAs7Xwbn9nRosDXl7qoPTSCy0yNxnKc+hWokFifWQIDGi154rdUqKvbCa4+1kLhg==",
+ "dependencies": {
+ "@types/unist": "^2.0.0",
+ "unist-util-is": "^5.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/next-themes": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/next-themes/-/next-themes-0.4.6.tgz",
@@ -6060,7 +6188,6 @@
"version": "4.2.17",
"resolved": "https://registry.npmjs.org/nextra/-/nextra-4.2.17.tgz",
"integrity": "sha512-WBZGSUeUJqkYm3F3F7+4N1oMP84r/YK/rAg96wkywu/MIsuUREY8fLXQgQbKkvcLbBl/7Wk2Iy+9xlhDu+weNg==",
- "license": "MIT",
"dependencies": {
"@formatjs/intl-localematcher": "^0.6.0",
"@headlessui/react": "^2.1.2",
@@ -6132,6 +6259,22 @@
"react-dom": ">=18"
}
},
+ "node_modules/nextra/node_modules/@shikijs/langs": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-2.5.0.tgz",
+ "integrity": "sha512-Qfrrt5OsNH5R+5tJ/3uYBBZv3SuGmnRPejV9IlIbFH3HTGLDlkqgHymAlzklVmKBjAaVmkPkyikAV/sQ1wSL+w==",
+ "dependencies": {
+ "@shikijs/types": "2.5.0"
+ }
+ },
+ "node_modules/nextra/node_modules/@shikijs/themes": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-2.5.0.tgz",
+ "integrity": "sha512-wGrk+R8tJnO0VMzmUExHR+QdSaPUl/NKs+a4cQQRWyoc3YFbUzuLEi/KWK1hj+8BfHRKm2jNhhJck1dfstJpiw==",
+ "dependencies": {
+ "@shikijs/types": "2.5.0"
+ }
+ },
"node_modules/nextra/node_modules/@theguild/remark-mermaid": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/@theguild/remark-mermaid/-/remark-mermaid-0.2.0.tgz",
@@ -6145,6 +6288,21 @@
"react": "^18.2.0"
}
},
+ "node_modules/nextra/node_modules/shiki": {
+ "version": "2.5.0",
+ "resolved": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz",
+ "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==",
+ "dependencies": {
+ "@shikijs/core": "2.5.0",
+ "@shikijs/engine-javascript": "2.5.0",
+ "@shikijs/engine-oniguruma": "2.5.0",
+ "@shikijs/langs": "2.5.0",
+ "@shikijs/themes": "2.5.0",
+ "@shikijs/types": "2.5.0",
+ "@shikijs/vscode-textmate": "^10.0.2",
+ "@types/hast": "^3.0.4"
+ }
+ },
"node_modules/nlcst-to-string": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/nlcst-to-string/-/nlcst-to-string-4.0.0.tgz",
@@ -6212,6 +6370,12 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/oniguruma-parser": {
+ "version": "0.12.1",
+ "resolved": "https://registry.npmjs.org/oniguruma-parser/-/oniguruma-parser-0.12.1.tgz",
+ "integrity": "sha512-8Unqkvk1RYc6yq2WBYRj4hdnsAxVze8i7iPfQr8e4uSP3tRv0rpZcbGUDvxfQQcdwHt/e9PrMvGCsa8OqG9X3w==",
+ "peer": true
+ },
"node_modules/oniguruma-to-es": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-3.1.1.tgz",
@@ -6391,7 +6555,6 @@
"url": "https://github.com/sponsors/ai"
}
],
- "license": "MIT",
"dependencies": {
"nanoid": "^3.3.8",
"picocolors": "^1.1.1",
@@ -6451,7 +6614,6 @@
"version": "19.1.0",
"resolved": "https://registry.npmjs.org/react/-/react-19.1.0.tgz",
"integrity": "sha512-FS+XFBNvn3GTAWq26joslQgWNoFu08F4kl0J4CgdNKADkdSGXQyTCnKteIAJy96Br6YbpEU1LSzV5dYtjMkMDg==",
- "license": "MIT",
"engines": {
"node": ">=0.10.0"
}
@@ -6469,7 +6631,6 @@
"version": "19.1.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.1.0.tgz",
"integrity": "sha512-Xs1hdnE+DyKgeHJeJznQmYMIBG3TKIHJJT95Q58nHLSrElKlGQqDTR2HQ9fx5CN/Gk6Vh/kupBTDLU11/nDk/g==",
- "license": "MIT",
"dependencies": {
"scheduler": "^0.26.0"
},
@@ -6640,7 +6801,6 @@
"version": "0.14.1",
"resolved": "https://registry.npmjs.org/rehype-pretty-code/-/rehype-pretty-code-0.14.1.tgz",
"integrity": "sha512-IpG4OL0iYlbx78muVldsK86hdfNoht0z63AP7sekQNW2QOTmjxB7RbTO+rhIYNGRljgHxgVZoPwUl6bIC9SbjA==",
- "license": "MIT",
"dependencies": {
"@types/hast": "^3.0.4",
"hast-util-to-string": "^3.0.0",
@@ -7022,6 +7182,18 @@
"compute-scroll-into-view": "^3.0.2"
}
},
+ "node_modules/section-matter": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/section-matter/-/section-matter-1.0.0.tgz",
+ "integrity": "sha512-vfD3pmTzGpufjScBh50YHKzEu2lxBWhVEHsNGoEXmCmn2hKGfeNLYMzCJpe8cD7gqX7TJluOVpBkAequ6dgMmA==",
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "kind-of": "^6.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
"node_modules/semver": {
"version": "7.7.2",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
@@ -7098,21 +7270,75 @@
}
},
"node_modules/shiki": {
- "version": "2.5.0",
- "resolved": "https://registry.npmjs.org/shiki/-/shiki-2.5.0.tgz",
- "integrity": "sha512-mI//trrsaiCIPsja5CNfsyNOqgAZUb6VpJA+340toL42UpzQlXpwRV9nch69X6gaUxrr9kaOOa6e3y3uAkGFxQ==",
- "license": "MIT",
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/shiki/-/shiki-3.4.1.tgz",
+ "integrity": "sha512-PSnoczt+iWIOB4iRQ+XVPFtTuN1FcmuYzPgUBZTSv5pC6CozssIx2M4O5n4S9gJlUu9A3FxMU0ZPaHflky/6LA==",
+ "peer": true,
+ "dependencies": {
+ "@shikijs/core": "3.4.1",
+ "@shikijs/engine-javascript": "3.4.1",
+ "@shikijs/engine-oniguruma": "3.4.1",
+ "@shikijs/langs": "3.4.1",
+ "@shikijs/themes": "3.4.1",
+ "@shikijs/types": "3.4.1",
+ "@shikijs/vscode-textmate": "^10.0.2",
+ "@types/hast": "^3.0.4"
+ }
+ },
+ "node_modules/shiki/node_modules/@shikijs/core": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/core/-/core-3.4.1.tgz",
+ "integrity": "sha512-GCqSd3KXRTKX1sViP7fIyyyf6do2QVg+fTd4IT00ucYCVSKiSN8HbFbfyjGsoZePNKWcQqXe4U4rrz2IVldG5A==",
+ "peer": true,
+ "dependencies": {
+ "@shikijs/types": "3.4.1",
+ "@shikijs/vscode-textmate": "^10.0.2",
+ "@types/hast": "^3.0.4",
+ "hast-util-to-html": "^9.0.5"
+ }
+ },
+ "node_modules/shiki/node_modules/@shikijs/engine-javascript": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/engine-javascript/-/engine-javascript-3.4.1.tgz",
+ "integrity": "sha512-oGvRqN3Bsk+cGzmCb/5Kt/LfD7uyA8vCUUawyqmLti/AYNV7++zIZFEW8JwW5PrpPNWWx9RcZ/chnYLedzlVIQ==",
+ "peer": true,
+ "dependencies": {
+ "@shikijs/types": "3.4.1",
+ "@shikijs/vscode-textmate": "^10.0.2",
+ "oniguruma-to-es": "^4.3.3"
+ }
+ },
+ "node_modules/shiki/node_modules/@shikijs/engine-oniguruma": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.4.1.tgz",
+ "integrity": "sha512-p8I5KWgEDUcXRif9JjJUZtNeqCyxZ8xcslecDJMigsqSZfokwqQIsH4aGpdjzmDf8LIWvT+C3TCxnJQVaPmCbQ==",
+ "peer": true,
+ "dependencies": {
+ "@shikijs/types": "3.4.1",
+ "@shikijs/vscode-textmate": "^10.0.2"
+ }
+ },
+ "node_modules/shiki/node_modules/@shikijs/types": {
+ "version": "3.4.1",
+ "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.4.1.tgz",
+ "integrity": "sha512-4flT+pToGqRBb0UhGqXTV7rCqUS3fhc8z3S2Djc3E5USKhXwadeKGFVNB2rKXfohlrEozNJMtMiZaN8lfdj/ZQ==",
+ "peer": true,
"dependencies": {
- "@shikijs/core": "2.5.0",
- "@shikijs/engine-javascript": "2.5.0",
- "@shikijs/engine-oniguruma": "2.5.0",
- "@shikijs/langs": "2.5.0",
- "@shikijs/themes": "2.5.0",
- "@shikijs/types": "2.5.0",
"@shikijs/vscode-textmate": "^10.0.2",
"@types/hast": "^3.0.4"
}
},
+ "node_modules/shiki/node_modules/oniguruma-to-es": {
+ "version": "4.3.3",
+ "resolved": "https://registry.npmjs.org/oniguruma-to-es/-/oniguruma-to-es-4.3.3.tgz",
+ "integrity": "sha512-rPiZhzC3wXwE59YQMRDodUwwT9FZ9nNBwQQfsd1wfdtlKEyCdRV0avrTcSZ5xlIvGRVPd/cx6ZN45ECmS39xvg==",
+ "peer": true,
+ "dependencies": {
+ "oniguruma-parser": "^0.12.1",
+ "regex": "^6.0.1",
+ "regex-recursion": "^6.0.2"
+ }
+ },
"node_modules/signal-exit": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",
@@ -7198,6 +7424,11 @@
"node": ">=18"
}
},
+ "node_modules/sprintf-js": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
+ "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
+ },
"node_modules/streamsearch": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz",
@@ -7220,6 +7451,14 @@
"url": "https://github.com/sponsors/wooorm"
}
},
+ "node_modules/strip-bom-string": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/strip-bom-string/-/strip-bom-string-1.0.0.tgz",
+ "integrity": "sha512-uCC2VHvQRYu+lMh4My/sFNmF2klFymLX1wHJeXnbEJERpV/ZsVuonzerjfrGpIGF7LBVa1O7i9kjiWvJiFck8g==",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
"node_modules/strip-final-newline": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-3.0.0.tgz",
@@ -7330,7 +7569,6 @@
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",
"integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==",
- "license": "MIT",
"engines": {
"node": ">=6"
}
@@ -7339,7 +7577,6 @@
"version": "7.4.3",
"resolved": "https://registry.npmjs.org/tar/-/tar-7.4.3.tgz",
"integrity": "sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==",
- "license": "ISC",
"dependencies": {
"@isaacs/fs-minipass": "^4.0.0",
"chownr": "^3.0.0",
@@ -7684,6 +7921,19 @@
"url": "https://opencollective.com/unified"
}
},
+ "node_modules/vfile-matter": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/vfile-matter/-/vfile-matter-5.0.1.tgz",
+ "integrity": "sha512-o6roP82AiX0XfkyTHyRCMXgHfltUNlXSEqCIS80f+mbAyiQBE2fxtDVMtseyytGx75sihiJFo/zR6r/4LTs2Cw==",
+ "dependencies": {
+ "vfile": "^6.0.0",
+ "yaml": "^2.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/unified"
+ }
+ },
"node_modules/vfile-message": {
"version": "4.0.2",
"resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.2.tgz",
@@ -7782,7 +8032,6 @@
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-5.0.0.tgz",
"integrity": "sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==",
- "license": "BlueOak-1.0.0",
"engines": {
"node": ">=18"
}
diff --git a/docs/package.json b/docs/package.json
index cfeee8049..fe13b97b4 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -11,21 +11,20 @@
"dependencies": {
"@radix-ui/react-accordion": "1.2.10",
"@radix-ui/react-slider": "1.3.4",
- "@tailwindcss/postcss": "4.1.6",
- "@theguild/remark-mermaid": "0.3.0",
"boring-avatars": "1.11.2",
- "class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"country-flag-icons": "1.5.19",
+ "gray-matter": "^4.0.3",
"lucide-react": "0.510.0",
"motion": "12.11.0",
- "next": "15.3.2",
- "nextra": "4.2.17",
+ "next": "^15.3.2",
+ "next-mdx-remote": "^5.0.0",
+ "nextra": "^4.2.17",
"nextra-theme-docs": "4.2.17",
- "postcss": "8.5.3",
- "react": "19.1.0",
- "react-dom": "19.1.0",
+ "react": "^19.1.0",
+ "react-dom": "^19.1.0",
"react-tweet": "3.2.2",
+ "@tailwindcss/postcss": "4.1.6",
"tailwind-merge": "3.3.0",
"tailwindcss": "4.1.6"
},
diff --git a/docs/public/blog/5kstars.png b/docs/public/blog/5kstars.png
new file mode 100644
index 000000000..ae1e71a01
Binary files /dev/null and b/docs/public/blog/5kstars.png differ
diff --git a/docs/src/app/_meta.js b/docs/src/app/_meta.js
index c76a84ac9..0757c57ed 100644
--- a/docs/src/app/_meta.js
+++ b/docs/src/app/_meta.js
@@ -10,8 +10,8 @@ export default {
type: "page",
title: "Pricing",
},
- // blog: {
- // type: 'page',
- // title: 'Blog'
- // }
+ blog: {
+ type: "page",
+ title: "Blog",
+ },
};
diff --git a/docs/src/app/blog/[slug]/page.jsx b/docs/src/app/blog/[slug]/page.jsx
new file mode 100644
index 000000000..2b8f91329
--- /dev/null
+++ b/docs/src/app/blog/[slug]/page.jsx
@@ -0,0 +1,108 @@
+import { MDXRemote } from "next-mdx-remote/rsc";
+import { getPostBySlug, getAllPosts } from "../../../lib/blog";
+import { notFound } from "next/navigation";
+import Link from "next/link";
+import { ArrowLeft, Calendar, User } from "lucide-react";
+import "../blog.css";
+import "../code-highlight.css";
+import {
+ mdxComponents,
+ resetMDXComponents,
+} from "../../../components/MDXComponents";
+import CodeHighlighter from "../../../components/CodeHighlighter";
+
+export async function generateStaticParams() {
+ const posts = await getAllPosts();
+ return posts.map((post) => ({
+ slug: post.slug,
+ }));
+}
+
+export async function generateMetadata({ params }) {
+ const resolvedParams = await params;
+ const post = await getPostBySlug(resolvedParams.slug).catch(() => null);
+
+ if (!post) {
+ return {
+ title: "Post Not Found",
+ };
+ }
+
+ return {
+ title: post.frontMatter.title,
+ description: post.frontMatter.description,
+ };
+}
+
+export default async function BlogPostPage({ params }) {
+ const resolvedParams = await params;
+ const post = await getPostBySlug(resolvedParams.slug).catch(() => null);
+
+ if (!post) {
+ notFound();
+ }
+
+ // Reset the MDX component state for each page render
+ resetMDXComponents();
+
+ return (
+ <div className="max-w-4xl mx-auto px-4 py-10">
+ <div className="mb-6">
+ <Link
+ href="/blog"
+ className="inline-flex items-center gap-2 text-emerald-400 hover:text-emerald-300 font-medium transition-colors"
+ >
+ <ArrowLeft size={20} />
+ Back to all posts
+ </Link>
+ </div>
+
+ <div className="mb-8">
+ <h1 className="text-4xl font-bold mb-4">{post.frontMatter.title}</h1>
+ <div className="text-neutral-400 mb-5 flex items-center">
+ <Calendar className="h-4 w-4 mr-2" />
+ {new Date(post.frontMatter.date).toLocaleDateString("en-US", {
+ year: "numeric",
+ month: "long",
+ day: "numeric",
+ })}
+ {post.frontMatter.author && (
+ <>
+ <span className="mx-2">•</span>
+ <span className="flex items-center">
+ <User className="h-4 w-4 mr-2" />
+ {post.frontMatter.author}
+ </span>
+ </>
+ )}
+ </div>
+ <div className="flex gap-2 flex-wrap">
+ {post.frontMatter.tags?.map((tag) => (
+ <Link
+ key={tag}
+ href={`/blog/tag/${tag}`}
+ className="bg-emerald-900/40 text-emerald-400 text-xs px-2.5 py-1 rounded-full hover:bg-emerald-900/60 transition-colors"
+ >
+ {tag}
+ </Link>
+ ))}
+ </div>
+ </div>
+
+ <article className="blog-content">
+ <MDXRemote source={post.content} components={mdxComponents} />
+ <CodeHighlighter />
+ </article>
+
+ <div className="mt-10 pt-6 border-t border-neutral-700/50 flex justify-between items-center">
+ <Link
+ href="/blog"
+ className="inline-flex items-center gap-2 text-emerald-400 hover:text-emerald-300 font-medium transition-colors"
+ >
+ <ArrowLeft size={20} />
+ Back to all posts
+ </Link>
+ </div>
+ </div>
+ );
+}
diff --git a/docs/src/app/blog/blog.css b/docs/src/app/blog/blog.css
new file mode 100644
index 000000000..4869ff5c7
--- /dev/null
+++ b/docs/src/app/blog/blog.css
@@ -0,0 +1,114 @@
+/* Blog post content styling */
+.blog-content {
+ max-width: 100%;
+ overflow-wrap: break-word;
+ color: #e5e7eb;
+}
+
+.blog-content h1 {
+ font-size: 2.5rem;
+ font-weight: 700;
+ margin-top: 1.5rem;
+ margin-bottom: 1rem;
+}
+
+.blog-content h2 {
+ font-size: 2rem;
+ font-weight: 600;
+ margin-top: 1.5rem;
+ margin-bottom: 1rem;
+ padding-bottom: 0.5rem;
+}
+
+.blog-content h3 {
+ font-size: 1.5rem;
+ font-weight: 600;
+ margin-top: 1.5rem;
+ margin-bottom: 1rem;
+}
+
+.blog-content h4 {
+ font-size: 1.25rem;
+ font-weight: 600;
+ margin-top: 1.5rem;
+ margin-bottom: 1rem;
+}
+
+.blog-content p {
+ margin-top: 1rem;
+ margin-bottom: 1rem;
+ line-height: 1.7;
+}
+
+.blog-content ul,
+.blog-content ol {
+ margin-top: 1rem;
+ margin-bottom: 1rem;
+ padding-left: 2rem;
+}
+
+.blog-content ul {
+ list-style-type: disc;
+}
+
+.blog-content ol {
+ list-style-type: decimal;
+}
+
+.blog-content li {
+ margin-top: 0.5rem;
+ margin-bottom: 0.5rem;
+}
+
+.blog-content a {
+ color: #10b981;
+ text-decoration: underline;
+}
+
+.blog-content a:hover {
+ color: #059669;
+}
+
+.blog-content blockquote {
+ border-left: 4px solid #4b5563;
+ padding-left: 1rem;
+ margin-left: 0;
+ margin-right: 0;
+ font-style: italic;
+ color: #9ca3af;
+}
+
+/* Remove pre and code styling - now handled in code-highlight.css */
+.blog-content .code-block-wrapper {
+ /* Styled via code-highlight.css */
+}
+
+.blog-content img {
+ max-width: 100%;
+ height: auto;
+ border-radius: 0.375rem;
+ margin: 1rem 0;
+}
+
+.blog-content hr {
+ margin: 2rem 0;
+ border: 0;
+ border-top: 1px solid #374151;
+}
+
+.blog-content table {
+ width: 100%;
+ border-collapse: collapse;
+ margin: 1rem 0;
+}
+
+.blog-content table th,
+.blog-content table td {
+ border: 1px solid #374151;
+ padding: 0.75rem;
+}
+
+.blog-content table th {
+ background-color: #1f2937;
+ font-weight: 600;
+}
\ No newline at end of file
diff --git a/docs/src/app/blog/code-highlight.css b/docs/src/app/blog/code-highlight.css
new file mode 100644
index 000000000..e87177468
--- /dev/null
+++ b/docs/src/app/blog/code-highlight.css
@@ -0,0 +1,189 @@
+/* Basic code highlighting styles */
+.code-block-wrapper {
+ background: #1a1a1a;
+ color: #f8f8f2;
+ border-radius: 0.5rem;
+ padding: 0.75rem;
+ margin: 1rem 0;
+ overflow: auto;
+ border: 1px solid rgba(82, 82, 89, 0.32);
+}
+
+/* Remove pre styling since we're avoiding double wrappers */
+pre {
+ margin: 0;
+ padding: 0;
+ background: transparent;
+ border: none;
+ overflow: visible;
+}
+
+/* Style for code blocks that are direct children of the wrapper */
+.code-block-wrapper code {
+ display: block;
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-size: 0.85em;
+ background: transparent;
+ padding: 0;
+ white-space: pre;
+}
+
+/* For inline code that's not in a pre */
+:not(pre) > code {
+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
+ font-size: 0.85em;
+ background-color: rgba(55, 65, 81, 0.5);
+ border-radius: 0.25rem;
+ padding: 0.125rem 0.25rem;
+ color: #e5e7eb;
+}
+
+/* Remove syntax highlighting tokens that cause "token token" to appear */
+.token.class,
+.token.class-name {
+ color: #50fa7b;
+}
+
+/* HTML, XML */
+.language-html .tag,
+.language-xml .tag {
+ color: #ff79c6;
+}
+
+.language-html .attr-name,
+.language-xml .attr-name {
+ color: #50fa7b;
+}
+
+.language-html .attr-value,
+.language-xml .attr-value {
+ color: #f1fa8c;
+}
+
+/* CSS */
+.language-css .property {
+ color: #66d9ef;
+}
+
+.language-css .selector {
+ color: #ff79c6;
+}
+
+.language-css .value {
+ color: #bd93f9;
+}
+
+/* JavaScript */
+.language-javascript .keyword,
+.language-js .keyword {
+ color: #ff79c6;
+}
+
+.language-javascript .string,
+.language-js .string {
+ color: #f1fa8c;
+}
+
+.language-javascript .function,
+.language-js .function {
+ color: #50fa7b;
+}
+
+.language-javascript .number,
+.language-js .number {
+ color: #bd93f9;
+}
+
+.language-javascript .operator,
+.language-js .operator {
+ color: #ff79c6;
+}
+
+.language-javascript .comment,
+.language-js .comment {
+ color: #6272a4;
+}
+
+/* Bash */
+.language-bash .function {
+ color: #50fa7b;
+}
+
+.language-bash .parameter {
+ color: #f8f8f2;
+}
+
+.language-bash .string {
+ color: #f1fa8c;
+}
+
+/* Generic */
+.comment,
+.prolog,
+.doctype,
+.cdata {
+ color: #6272a4;
+}
+
+.punctuation {
+ color: #f8f8f2;
+}
+
+.namespace {
+ opacity: 0.7;
+}
+
+.property,
+.tag,
+.constant,
+.symbol {
+ color: #ff79c6;
+}
+
+.boolean,
+.number {
+ color: #bd93f9;
+}
+
+.selector,
+.attr-name,
+.string,
+.char,
+.builtin {
+ color: #50fa7b;
+}
+
+.operator,
+.entity,
+.url,
+.language-css .string,
+.style .string {
+ color: #f8f8f2;
+}
+
+.atrule,
+.attr-value {
+ color: #f1fa8c;
+}
+
+.keyword {
+ color: #ff79c6;
+}
+
+.regex,
+.important {
+ color: #ffb86c;
+}
+
+.important,
+.bold {
+ font-weight: bold;
+}
+
+.italic {
+ font-style: italic;
+}
+
+.entity {
+ cursor: help;
+}
\ No newline at end of file
diff --git a/docs/src/app/blog/page.jsx b/docs/src/app/blog/page.jsx
index a499f041c..333ec76d3 100644
--- a/docs/src/app/blog/page.jsx
+++ b/docs/src/app/blog/page.jsx
@@ -1,14 +1,66 @@
-export default function BlogPage() {
+import { getAllPosts } from "../../lib/blog";
+import Link from "next/link";
+
+export const metadata = {
+ title: "Blog - Rybbit",
+ description: "Latest news, tutorials, and updates from the Rybbit team",
+};
+
+export default async function BlogPage() {
+ const posts = await getAllPosts();
+
return (
- <h1
- style={{
- textAlign: 'center',
- fontSize: 64,
- margin: '25vh 0',
- fontWeight: 'bold'
- }}
- >
- Blog page
- </h1>
- )
+ <div className="max-w-5xl mx-auto px-4 py-10">
+ <div className="text-center mb-10">
+ <div className="inline-block bg-emerald-900/30 text-emerald-400 px-3 py-1 rounded-full text-sm font-medium mb-4">
+ Insights & Updates
+ </div>
+ <h1 className="text-4xl font-bold mb-2">Rybbit Blog</h1>
+ <p className="text-neutral-300 max-w-2xl mx-auto">
+ Latest news, tutorials, and insights about analytics and privacy
+ </p>
+ </div>
+
+ <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
+ {posts.map((post) => (
+ <div
+ key={post.slug}
+ className="relative bg-neutral-800/20 backdrop-blur-sm border border-neutral-700 rounded-xl overflow-hidden hover:border-neutral-600 transition-all duration-200 hover:-translate-y-1 hover:shadow-lg hover:shadow-emerald-900/10"
+ >
+ {/* Subtle gradient accent */}
+ <div className="absolute inset-0 bg-gradient-to-br from-emerald-500/5 to-transparent rounded-xl"></div>
+
+ <div className="relative p-6">
+ <Link href={`/blog/${post.slug}`} className="block">
+ <h2 className="text-2xl font-semibold mb-2 text-white hover:text-emerald-400 transition-colors">
+ {post.frontMatter.title}
+ </h2>
+ <div className="text-neutral-400 mb-3 text-sm">
+ {new Date(post.frontMatter.date).toLocaleDateString("en-US", {
+ year: "numeric",
+ month: "long",
+ day: "numeric",
+ })}
+ </div>
+ <p className="text-neutral-300 mb-4 line-clamp-3">
+ {post.frontMatter.description}
+ </p>
+ </Link>
+ <div className="mt-4 flex gap-2 flex-wrap">
+ {post.frontMatter.tags?.map((tag) => (
+ <Link
+ key={tag}
+ href={`/blog/tag/${tag}`}
+ className="bg-emerald-900/40 text-emerald-400 text-xs px-2.5 py-1 rounded-full hover:bg-emerald-900/60 transition-colors"
+ >
+ {tag}
+ </Link>
+ ))}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ );
}
diff --git a/docs/src/app/blog/tag/[tag]/page.jsx b/docs/src/app/blog/tag/[tag]/page.jsx
new file mode 100644
index 000000000..04174fb4b
--- /dev/null
+++ b/docs/src/app/blog/tag/[tag]/page.jsx
@@ -0,0 +1,131 @@
+import Link from "next/link";
+import { getAllPosts } from "../../../../lib/blog";
+
+export async function generateStaticParams() {
+ const posts = await getAllPosts();
+ const tags = [
+ ...new Set(posts.flatMap((post) => post.frontMatter.tags || [])),
+ ];
+
+ return tags.map((tag) => ({
+ tag,
+ }));
+}
+
+export async function generateMetadata({ params }) {
+ const resolvedParams = await params;
+
+ return {
+ title: `Posts tagged with "${resolvedParams.tag}" - Rybbit`,
+ description: `All blog posts tagged with ${resolvedParams.tag}`,
+ };
+}
+
+export default async function TagPage({ params }) {
+ const resolvedParams = await params;
+ const { tag } = resolvedParams;
+
+ const posts = await getAllPosts();
+ const filteredPosts = posts.filter((post) =>
+ post.frontMatter.tags?.includes(tag)
+ );
+
+ return (
+ <div className="max-w-5xl mx-auto px-4 py-10">
+ <div className="text-center mb-10">
+ <div className="inline-block bg-emerald-900/30 text-emerald-400 px-3 py-1 rounded-full text-sm font-medium mb-4">
+ Topic
+ </div>
+ <h1 className="text-4xl font-bold mb-2">Posts tagged with "{tag}"</h1>
+ <p className="text-neutral-300 max-w-2xl mx-auto">
+ Articles and tutorials related to {tag}
+ </p>
+ </div>
+
+ {filteredPosts.length === 0 ? (
+ <div className="text-center py-10">
+ <p className="text-neutral-300">No posts found with this tag.</p>
+ <Link
+ href="/blog"
+ className="inline-block mt-4 text-emerald-400 hover:text-emerald-300 font-medium"
+ >
+ ← Back to all posts
+ </Link>
+ </div>
+ ) : (
+ <>
+ <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
+ {filteredPosts.map((post) => (
+ <div
+ key={post.slug}
+ className="relative bg-neutral-800/20 backdrop-blur-sm border border-neutral-700 rounded-xl overflow-hidden hover:border-neutral-600 transition-all duration-200 hover:-translate-y-1 hover:shadow-lg hover:shadow-emerald-900/10"
+ >
+ {/* Subtle gradient accent */}
+ <div className="absolute inset-0 bg-gradient-to-br from-emerald-500/5 to-transparent rounded-xl"></div>
+
+ <div className="relative p-6">
+ <Link href={`/blog/${post.slug}`} className="block">
+ <h2 className="text-2xl font-semibold mb-2 text-white hover:text-emerald-400 transition-colors">
+ {post.frontMatter.title}
+ </h2>
+ <div className="text-neutral-400 mb-3 text-sm">
+ {new Date(post.frontMatter.date).toLocaleDateString(
+ "en-US",
+ {
+ year: "numeric",
+ month: "long",
+ day: "numeric",
+ }
+ )}
+ </div>
+ <p className="text-neutral-300 mb-4 line-clamp-3">
+ {post.frontMatter.description}
+ </p>
+ </Link>
+ <div className="mt-4 flex gap-2 flex-wrap">
+ {post.frontMatter.tags?.map((postTag) => (
+ <Link
+ key={postTag}
+ href={`/blog/tag/${postTag}`}
+ className={`text-xs px-2.5 py-1 rounded-full transition-colors ${
+ postTag === tag
+ ? "bg-emerald-800/60 text-emerald-200 font-medium"
+ : "bg-emerald-900/40 text-emerald-400 hover:bg-emerald-900/60"
+ }`}
+ >
+ {postTag}
+ </Link>
+ ))}
+ </div>
+ </div>
+ </div>
+ ))}
+ </div>
+
+ <div className="mt-10 text-center">
+ <Link
+ href="/blog"
+ className="inline-flex items-center gap-2 text-emerald-400 hover:text-emerald-300 font-medium transition-colors"
+ >
+ <svg
+ xmlns="http://www.w3.org/2000/svg"
+ width="20"
+ height="20"
+ viewBox="0 0 24 24"
+ fill="none"
+ stroke="currentColor"
+ strokeWidth="2"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ >
+ <path d="m12 19-7-7 7-7" />
+ <path d="M19 12H5" />
+ </svg>
+ Back to all posts
+ </Link>
+ </div>
+ </>
+ )}
+ </div>
+ );
+}
diff --git a/docs/src/app/components/PricingSection.jsx b/docs/src/app/components/PricingSection.jsx
index 2dca0e55f..11e157e3d 100644
--- a/docs/src/app/components/PricingSection.jsx
+++ b/docs/src/app/components/PricingSection.jsx
@@ -1,7 +1,7 @@
"use client";
import { Slider } from "@/components/ui/slider";
-import { Check, X } from "lucide-react";
+import { Check, X, CheckCircle } from "lucide-react";
import Link from "next/link";
import { useState } from "react";
import { cn } from "../../lib/utils";
@@ -283,10 +283,15 @@ export function PricingSection() {
))}
</div>
- <p className="text-center text-sm text-neutral-400 mt-4">
- {prices.custom
- ? "Email us at [email protected] for custom pricing"
- : "We don't ask for your credit card"}
+ <p className="text-center text-sm text-neutral-400 mt-4 flex items-center justify-center gap-2">
+ {prices.custom ? (
+ "Email us at [email protected] for custom pricing"
+ ) : (
+ <>
+ <CheckCircle className="w-3 h-3" />
+ We don't ask for your credit card
+ </>
+ )}
</p>
</div>
</div>
diff --git a/docs/src/app/contact/page.jsx b/docs/src/app/contact/page.jsx
index c8972256c..0d0d80aa5 100644
--- a/docs/src/app/contact/page.jsx
+++ b/docs/src/app/contact/page.jsx
@@ -1,4 +1,5 @@
import Link from "next/link";
+import { Mail, Github, Bell, Twitter } from "lucide-react";
export const metadata = {
title: "Contact",
@@ -19,21 +20,7 @@ export default function Contact() {
<div className="space-y-6">
<div className="flex items-start md:items-center gap-4 flex-col md:flex-row">
<div className="bg-neutral-800 p-3 rounded-lg">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="24"
- height="24"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- className="text-neutral-300"
- >
- <rect width="20" height="16" x="2" y="4" rx="2" />
- <path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" />
- </svg>
+ <Mail className="w-6 h-6 text-neutral-300" />
</div>
<div>
<h2 className="text-xl font-medium mb-1">Email</h2>
@@ -48,24 +35,7 @@ export default function Contact() {
<div className="flex items-start md:items-center gap-4 flex-col md:flex-row">
<div className="bg-neutral-800 p-3 rounded-lg">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="24"
- height="24"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- className="text-neutral-300"
- >
- <path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z" />
- <polyline points="14 2 14 8 20 8" />
- <path d="M16 13H8" />
- <path d="M16 17H8" />
- <path d="M10 9H8" />
- </svg>
+ <Github className="w-6 h-6 text-neutral-300" />
</div>
<div>
<h2 className="text-xl font-medium mb-1">GitHub</h2>
@@ -82,21 +52,7 @@ export default function Contact() {
<div className="flex items-start md:items-center gap-4 flex-col md:flex-row">
<div className="bg-neutral-800 p-3 rounded-lg">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="24"
- height="24"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- className="text-neutral-300"
- >
- <path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9" />
- <path d="M13.73 21a2 2 0 0 1-3.46 0" />
- </svg>
+ <Bell className="w-6 h-6 text-neutral-300" />
</div>
<div>
<h2 className="text-xl font-medium mb-1">Discord</h2>
@@ -113,20 +69,7 @@ export default function Contact() {
<div className="flex items-start md:items-center gap-4 flex-col md:flex-row">
<div className="bg-neutral-800 p-3 rounded-lg">
- <svg
- xmlns="http://www.w3.org/2000/svg"
- width="24"
- height="24"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth="2"
- strokeLinecap="round"
- strokeLinejoin="round"
- className="text-neutral-300"
- >
- <path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z" />
- </svg>
+ <Twitter className="w-6 h-6 text-neutral-300" />
</div>
<div>
<h2 className="text-xl font-medium mb-1">X (Twitter)</h2>
diff --git a/docs/src/app/page.jsx b/docs/src/app/page.jsx
index 000c99415..5cc47d5bf 100644
--- a/docs/src/app/page.jsx
+++ b/docs/src/app/page.jsx
@@ -6,6 +6,7 @@ import {
} from "@/components/ui/accordion";
import { Tilt_Warp } from "next/font/google";
import Link from "next/link";
+import { CheckCircle } from "lucide-react";
import { cn } from "../lib/utils";
import { AdvancedFilters } from "./components/Cards/AdvancedFilters";
import { EventTracking } from "./components/Cards/EventTracking";
@@ -381,8 +382,7 @@ export default function IndexPage() {
It's time to switch to analytics that's made for you
</h2>
<p className="text-base md:text-xl text-neutral-300 mb-6 md:mb-10 max-w-3xl mx-auto">
- Try out 14 day free trial. We won't even ask for your credit
- card at all.
+ The first 3,000 events a month are free
</p>
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 md:gap-6 mb-6 md:mb-8 w-full sm:w-auto">
@@ -402,20 +402,7 @@ export default function IndexPage() {
</div>
<p className="text-neutral-400 text-xs md:text-sm flex items-center justify-center gap-2">
- <svg
- className="w-3 h-3 md:w-4 md:h-4"
- fill="none"
- stroke="currentColor"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- strokeWidth="2"
- d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"
- ></path>
- </svg>
+ <CheckCircle className="w-3 h-3 md:w-4 md:h-4" />
We don't ask for your credit card
</p>
</div>
diff --git a/docs/src/components/CodeHighlighter.jsx b/docs/src/components/CodeHighlighter.jsx
new file mode 100644
index 000000000..79c4c2647
--- /dev/null
+++ b/docs/src/components/CodeHighlighter.jsx
@@ -0,0 +1,12 @@
+"use client";
+
+import { useEffect } from "react";
+import { highlightCode } from "../lib/highlightCode";
+
+export default function CodeHighlighter() {
+ useEffect(() => {
+ highlightCode();
+ }, []);
+
+ return null; // This component doesn't render anything
+}
diff --git a/docs/src/components/MDXComponents.jsx b/docs/src/components/MDXComponents.jsx
new file mode 100644
index 000000000..958054583
--- /dev/null
+++ b/docs/src/components/MDXComponents.jsx
@@ -0,0 +1,94 @@
+import React from "react";
+
+// Code block component with syntax highlighting styling
+export function CodeBlock({ children, className }) {
+ const language = className ? className.replace(/language-/, "") : "";
+
+ // Clean up the content by removing token prefixes that may cause display issues
+ const cleanContent =
+ children && typeof children === "string"
+ ? children.replace(/token /g, "")
+ : children;
+
+ return <code className={`block language-${language}`}>{cleanContent}</code>;
+}
+
+// Inline code component
+export function InlineCode({ children }) {
+ return <code>{children}</code>;
+}
+
+// Keep track of whether we've seen an h1
+let hasRenderedFirstH1 = false;
+
+// Reset the tracking state
+export function resetMDXComponents() {
+ hasRenderedFirstH1 = false;
+}
+
+// Components map for MDXRemote
+export const mdxComponents = {
+ pre: (props) => {
+ // Extract the children and style directly here to avoid double wrapping
+ if (
+ props.children &&
+ props.children.props &&
+ props.children.props.className
+ ) {
+ // This is a code block, render it directly without the extra pre wrapper
+ return <div className="code-block-wrapper">{props.children}</div>;
+ }
+ return <pre {...props} />;
+ },
+ code: (props) => {
+ const { children, className } = props;
+ if (className) {
+ return <CodeBlock {...props} />;
+ }
+ return <InlineCode>{children}</InlineCode>;
+ },
+ // Skip the first h1 as it's already shown from frontmatter
+ h1: (props) => {
+ // For blog posts, don't show the first h1 (which is the title)
+ // This is a simple approach; each blog post page load resets this
+ if (!hasRenderedFirstH1) {
+ hasRenderedFirstH1 = true;
+ return null; // Skip the first h1
+ }
+
+ return <h1 {...props} className="text-3xl font-bold mt-6 mb-4" />;
+ },
+ h2: (props) => <h2 {...props} className="text-2xl font-bold mt-6 mb-3" />,
+ h3: (props) => <h3 {...props} className="text-xl font-bold mt-5 mb-3" />,
+ h4: (props) => <h4 {...props} className="text-lg font-bold mt-4 mb-2" />,
+ p: (props) => <p {...props} className="my-4" />,
+ ul: (props) => <ul {...props} className="list-disc pl-5 my-4" />,
+ ol: (props) => <ol {...props} className="list-decimal pl-5 my-4" />,
+ li: (props) => <li {...props} className="my-1" />,
+ a: (props) => (
+ <a
+ {...props}
+ className="text-emerald-400 hover:text-emerald-300 underline"
+ />
+ ),
+ blockquote: (props) => (
+ <blockquote
+ {...props}
+ className="border-l-4 border-neutral-600 pl-4 italic text-neutral-400 my-4"
+ />
+ ),
+ img: (props) => (
+ <img {...props} className="max-w-full h-auto rounded-lg my-4" />
+ ),
+ table: (props) => (
+ <div className="overflow-x-auto my-6">
+ <table {...props} className="min-w-full divide-y divide-neutral-700" />
+ </div>
+ ),
+ th: (props) => (
+ <th {...props} className="px-4 py-2 bg-neutral-800 font-medium text-left" />
+ ),
+ td: (props) => (
+ <td {...props} className="px-4 py-2 border-t border-neutral-700" />
+ ),
+};
diff --git a/docs/src/content/blog/5k-stars.mdx b/docs/src/content/blog/5k-stars.mdx
new file mode 100644
index 000000000..c51a16529
--- /dev/null
+++ b/docs/src/content/blog/5k-stars.mdx
@@ -0,0 +1,56 @@
+---
+title: Getting 5,000 Stars in 9 days
+date: 2025-05-26
+description: How Rybbit got 5,000 Github stars in 9 days with zero marketing effort
+tags: ['growth']
+author: Bill Yang
+---
+
+# How my open source SaaS got 5,000 Github stars in 9 days with zero marketing effort
+
+<img src="/blog/5kstars.png" alt="5k stars" />
+
+## The backstory
+
+I run an open source web analytics platform with a freemium hosted version. I have a gaming stats site that gets around 1.5 million visits a month, so I needed serious web analytics. The existing platforms were either too simple (just a basic dashboard) or too complicated and enterprisey, so I decided to build my own web analytics platform since I love stats anyway.
+
+I started working on it in January 2025, and it took around 110 days for me to launch. Rybbit being open source made the distribution problem so much easier, as I could freely advertise it in many places since it was self-hostable and free to use.
+
+## The launch strategy
+
+I made posts on 2 major subreddits - r/SideProject and r/selfhosted, plus a few smaller subs. Pretty much every post reached #1 in hot and I probably got 150k free impressions from this.
+
+**TL;DR** - all I did was make like 4 Reddit posts with the same headline, got 150k free impressions, and then proceeded to go viral on X, Hacker News, Bluesky, Mastodon, and some random Asian language sites from other people sharing my project.
+
+## What I think I did right
+
+### 1. Full iframe embed as hero section
+I put a full iframe embed of my demo site as my hero section. A lot of analytics platforms have a demo site, but I went a step further by embedding the entire demo site into the landing page so any visitor is immediately greeted by a full demo of the product. I haven't ever seen anyone do this, but I think this is an insane hack if this suits your product.
+
+### 2. Visual-first GitHub README
+I included a ton of product screenshots on my GitHub README and kept the text content short since I had a landing and docs page. People have short attention spans and aren't gonna read a wall of text.
+
+### 3. Catchy positioning
+I used the post title "I built an open source Google Analytics replacement" - simple but effective positioning that immediately communicates the value.
+
+### 4. Strong visual assets
+I created a good OpenGraph image that showed the best features of the product, which helped with social sharing.
+
+### 5. Polish matters
+I had a genuinely good & polished product with a fully functional landing page, docs, self-hosting guide, and SaaS product that I personally use every single day. I doubt I would've gotten as much traction if I released a barely-working MVP after a few weeks.
+
+## What didn't work
+
+I made a couple launch posts from my X account, but I only had a couple hundred followers so nobody cared (though I didn't expect to go viral on X in the first place).
+
+Some big Discord servers like the Next.js server have #showcase channels. Literally nobody reads these.
+
+## The results and reality check
+
+I optimized my launch for reach instead of revenue, so I wasn't surprised that I didn't get a huge surge of paid plan signups. The vast majority of people are self-hosting it since my most viral post was in r/selfhosted. I'm just playing the numbers game and hoping that a small single-digit percentage of people who see it will pay for the cloud version.
+
+So far I have around 700 total signups and $900 in total revenue in 3 weeks - not life-changing money, but solid validation.
+
+## What's next
+
+The virality cooled down after the first week, but the organic growth is still going strong. I'm at 5.8k stars 3 weeks post-launch, so the daily gain is still around ~50 stars. I expect to hit 10k stars in around 3 months.
diff --git a/docs/src/content/blog/_meta.js b/docs/src/content/blog/_meta.js
new file mode 100644
index 000000000..018eae36b
--- /dev/null
+++ b/docs/src/content/blog/_meta.js
@@ -0,0 +1,4 @@
+export default {
+ "5k-stars":
+ "How my open source SaaS got 5,000 Github stars in 9 days with zero marketing effort",
+};
diff --git a/docs/src/content/roadmap.mdx b/docs/src/content/roadmap.mdx
index 3300d42b9..b9f027770 100644
--- a/docs/src/content/roadmap.mdx
+++ b/docs/src/content/roadmap.mdx
@@ -5,16 +5,18 @@ Rybbit is a quickly growing project. We already have quite a few features, but t
## Planned features
- Data export
+- Data import from Google Analytics, Plausible, Umami, PostHog, and more
- Custom reports/dashboards
- Stats API
- More tracking script/SDK integration guides
- Better support for server-side event tracking
+- Mobile app support
- Custom themes
- Revenue tracking
- Web vitals tracking
- Email reports
+- Traffic filters/bot blocking
- Traffic alerts
-- Google Analytics import + other analytics platforms
Once again, join our [Discord server](https://discord.gg/DEhGb4hYBj) or follow me on [X](https://x.com/yang_frog) to share your feedback and ideas. We would love to hear from you!
diff --git a/docs/src/lib/blog.js b/docs/src/lib/blog.js
new file mode 100644
index 000000000..393a970c6
--- /dev/null
+++ b/docs/src/lib/blog.js
@@ -0,0 +1,47 @@
+import fs from "fs";
+import path from "path";
+import matter from "gray-matter";
+
+const BLOG_DIR = path.join(process.cwd(), "src/content/blog");
+
+export async function getAllPosts() {
+ const files = fs.readdirSync(BLOG_DIR);
+
+ const posts = files
+ .filter((file) => file.endsWith(".mdx") && !file.startsWith("_"))
+ .map((file) => {
+ const slug = file.replace(/\.mdx$/, "");
+ const filePath = path.join(BLOG_DIR, file);
+ const fileContents = fs.readFileSync(filePath, "utf8");
+ const { data } = matter(fileContents);
+
+ return {
+ slug,
+ frontMatter: {
+ ...data,
+ date: data.date ? new Date(data.date).toISOString() : null,
+ },
+ };
+ })
+ // Sort by date (newest first)
+ .sort(
+ (a, b) => new Date(b.frontMatter.date) - new Date(a.frontMatter.date)
+ );
+
+ return posts;
+}
+
+export async function getPostBySlug(slug) {
+ const filePath = path.join(BLOG_DIR, `${slug}.mdx`);
+ const fileContents = fs.readFileSync(filePath, "utf8");
+ const { data, content } = matter(fileContents);
+
+ return {
+ frontMatter: {
+ ...data,
+ date: data.date ? new Date(data.date).toISOString() : null,
+ },
+ content,
+ slug,
+ };
+}
diff --git a/docs/src/lib/highlightCode.js b/docs/src/lib/highlightCode.js
new file mode 100644
index 000000000..a4f49013d
--- /dev/null
+++ b/docs/src/lib/highlightCode.js
@@ -0,0 +1,161 @@
+"use client";
+
+export function highlightCode() {
+ // This function will run on the client side
+ if (typeof window === "undefined") return;
+
+ const codeBlocks = document.querySelectorAll("pre code");
+
+ codeBlocks.forEach((block) => {
+ // Get the language class if it exists
+ const languageClass = Array.from(block.classList).find((cls) =>
+ cls.startsWith("language-")
+ );
+
+ if (!languageClass) return;
+
+ const language = languageClass.replace("language-", "");
+
+ // Simple syntax highlighting based on patterns
+ let html = block.innerHTML;
+
+ // Replace all instances of 'class="token token' with just 'class="'
+ html = html.replace(/class="token token/g, 'class="');
+
+ // Replace all instances of nested tokens
+ html = html.replace(/class="token/g, 'class="');
+
+ // Comments
+ html = html.replace(/(\/\/.*)/g, '<span class="comment">$1</span>');
+ html = html.replace(
+ /(\/\*[\s\S]*?\*\/)/g,
+ '<span class="comment">$1</span>'
+ );
+
+ // Strings
+ html = html.replace(
+ /(['"`])(?:(?=(\\?))\2.)*?\1/g,
+ '<span class="string">$&</span>'
+ );
+
+ // Keywords
+ const keywords = [
+ "function",
+ "const",
+ "let",
+ "var",
+ "if",
+ "else",
+ "for",
+ "while",
+ "return",
+ "import",
+ "export",
+ "from",
+ "class",
+ "extends",
+ "async",
+ "await",
+ "try",
+ "catch",
+ "throw",
+ "new",
+ "this",
+ "super",
+ "static",
+ "true",
+ "false",
+ ];
+
+ keywords.forEach((keyword) => {
+ const regex = new RegExp(`\\b${keyword}\\b`, "g");
+ html = html.replace(regex, `<span class="keyword">${keyword}</span>`);
+ });
+
+ // Numbers
+ html = html.replace(
+ /\b(\d+(?:\.\d+)?)\b/g,
+ '<span class="number">$1</span>'
+ );
+
+ // Tags for HTML
+ if (language === "html" || language === "xml") {
+ html = html.replace(
+ /(&lt;\/?[a-zA-Z0-9-]+)(?=\s|&gt;)/g,
+ '<span class="tag">$1</span>'
+ );
+ html = html.replace(
+ /([a-zA-Z0-9-]+)=(?=["'])/g,
+ '<span class="attr-name">$1</span>='
+ );
+ }
+
+ block.innerHTML = html;
+ });
+}
+
+// Simple function to tokenize code - can be used before rendering
+export function tokenizeCode(code, language) {
+ if (!code) return code;
+
+ // Simple tokenization for demonstration
+ let tokenized = code;
+
+ // Comments
+ tokenized = tokenized.replace(/(\/\/.*)/g, '<span class="comment">$1</span>');
+ tokenized = tokenized.replace(
+ /(\/\*[\s\S]*?\*\/)/g,
+ '<span class="comment">$1</span>'
+ );
+
+ // Strings
+ tokenized = tokenized.replace(
+ /(['"`])(?:(?=(\\?))\2.)*?\1/g,
+ '<span class="string">$&</span>'
+ );
+
+ // Keywords
+ const keywords = [
+ "function",
+ "const",
+ "let",
+ "var",
+ "if",
+ "else",
+ "for",
+ "while",
+ "return",
+ "import",
+ "export",
+ "from",
+ "class",
+ "extends",
+ "async",
+ "await",
+ "try",
+ "catch",
+ "throw",
+ "new",
+ "this",
+ "super",
+ "static",
+ "true",
+ "false",
+ ];
+
+ keywords.forEach((keyword) => {
+ const regex = new RegExp(`\\b${keyword}\\b`, "g");
+ tokenized = tokenized.replace(
+ regex,
+ `<span class="keyword">${keyword}</span>`
+ );
+ });
+
+ // Numbers
+ tokenized = tokenized.replace(
+ /\b(\d+(?:\.\d+)?)\b/g,
+ '<span class="number">$1</span>'
+ );
+
+ return tokenized;
+}