├── .editorconfig ├── .gitignore ├── .prettierrc ├── README.md ├── package-lock.json ├── package.json ├── src ├── package-lock.json ├── package.json ├── worker.js └── wrangler.toml └── wrangler.toml /.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = tab 6 | end_of_line = lf 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | insert_final_newline = true 10 | 11 | [*.yml] 12 | indent_style = space 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | 3 | logs 4 | _.log 5 | npm-debug.log_ 6 | yarn-debug.log* 7 | yarn-error.log* 8 | lerna-debug.log* 9 | .pnpm-debug.log* 10 | 11 | # Diagnostic reports (https://nodejs.org/api/report.html) 12 | 13 | report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json 14 | 15 | # Runtime data 16 | 17 | pids 18 | _.pid 19 | _.seed 20 | \*.pid.lock 21 | 22 | # Directory for instrumented libs generated by jscoverage/JSCover 23 | 24 | lib-cov 25 | 26 | # Coverage directory used by tools like istanbul 27 | 28 | coverage 29 | \*.lcov 30 | 31 | # nyc test coverage 32 | 33 | .nyc_output 34 | 35 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 36 | 37 | .grunt 38 | 39 | # Bower dependency directory (https://bower.io/) 40 | 41 | bower_components 42 | 43 | # node-waf configuration 44 | 45 | .lock-wscript 46 | 47 | # Compiled binary addons (https://nodejs.org/api/addons.html) 48 | 49 | build/Release 50 | 51 | # Dependency directories 52 | 53 | node_modules/ 54 | jspm_packages/ 55 | 56 | # Snowpack dependency directory (https://snowpack.dev/) 57 | 58 | web_modules/ 59 | 60 | # TypeScript cache 61 | 62 | \*.tsbuildinfo 63 | 64 | # Optional npm cache directory 65 | 66 | .npm 67 | 68 | # Optional eslint cache 69 | 70 | .eslintcache 71 | 72 | # Optional stylelint cache 73 | 74 | .stylelintcache 75 | 76 | # Microbundle cache 77 | 78 | .rpt2_cache/ 79 | .rts2_cache_cjs/ 80 | .rts2_cache_es/ 81 | .rts2_cache_umd/ 82 | 83 | # Optional REPL history 84 | 85 | .node_repl_history 86 | 87 | # Output of 'npm pack' 88 | 89 | \*.tgz 90 | 91 | # Yarn Integrity file 92 | 93 | .yarn-integrity 94 | 95 | # dotenv environment variable files 96 | 97 | .env 98 | .env.development.local 99 | .env.test.local 100 | .env.production.local 101 | .env.local 102 | 103 | # parcel-bundler cache (https://parceljs.org/) 104 | 105 | .cache 106 | .parcel-cache 107 | 108 | # Next.js build output 109 | 110 | .next 111 | out 112 | 113 | # Nuxt.js build / generate output 114 | 115 | .nuxt 116 | dist 117 | 118 | # Gatsby files 119 | 120 | .cache/ 121 | 122 | # Comment in the public line in if your project uses Gatsby and not Next.js 123 | 124 | # https://nextjs.org/blog/next-9-1#public-directory-support 125 | 126 | # public 127 | 128 | # vuepress build output 129 | 130 | .vuepress/dist 131 | 132 | # vuepress v2.x temp and cache directory 133 | 134 | .temp 135 | .cache 136 | 137 | # Docusaurus cache and generated files 138 | 139 | .docusaurus 140 | 141 | # Serverless directories 142 | 143 | .serverless/ 144 | 145 | # FuseBox cache 146 | 147 | .fusebox/ 148 | 149 | # DynamoDB Local files 150 | 151 | .dynamodb/ 152 | 153 | # TernJS port file 154 | 155 | .tern-port 156 | 157 | # Stores VSCode versions used for testing VSCode extensions 158 | 159 | .vscode-test 160 | 161 | # yarn v2 162 | 163 | .yarn/cache 164 | .yarn/unplugged 165 | .yarn/build-state.yml 166 | .yarn/install-state.gz 167 | .pnp.\* 168 | 169 | # wrangler project 170 | 171 | .dev.vars 172 | .wrangler/ 173 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "printWidth": 140, 3 | "singleQuote": true, 4 | "semi": true, 5 | "useTabs": true 6 | } 7 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Public API for OpenHeart 2 | 3 | This is a **public** API for the [OpenHeart portocol](https://github.com/dddddddddzzzz/OpenHeart), none of the stored count should be expected to be private. 4 | 5 | It is advised that you own this data yourself. This API exist purely for convenience. We do not gurantee uptime and data persistence in the long run. 6 | 7 | ## Usage 8 | 9 | https://api.oh.dddddddddzzzz.org 10 | 11 | ### In `OpenHeart` spec 12 | 13 | GET /``/`` to look up reactions for `` under `` 14 | 15 | POST /``/`` to send an emoji 16 | 17 | ### Not in `OpenHeart` spec: 18 | 19 | GET /`` to look up reactions for everything under `` 20 | 21 | POST /``/`?redirect=` to send users either back `Referer` header with blank ``, or a destination ``. 22 | 23 | `` owner has the right to remove data under their domain scope. 24 | 25 | ## Try it out 26 | 27 | Send emoji 💯 with `github.com` as ``, `dddddddddddzzzz/api-oh` as ``: 28 | 29 | ``` 30 | curl -d '💯' -X POST 'https://api.oh.dddddddddzzzz.org/github.com/dddddddddddzzzz/api-oh' 31 | ``` 32 | 33 | Get all emoji counts for `/github.com/dddddddddddzzzz/api-oh`: 34 | 35 | ``` 36 | curl 'https://api.oh.dddddddddzzzz.org/github.com/dddddddddddzzzz/api-oh' 37 | ``` 38 | 39 | ### Put it on your website right now 40 | 41 | Copy and past the following HTML snippet, and swap `example.com` with your domain. That's it! 42 | 43 | ```html 44 |
45 | 46 |
47 | ``` 48 | 49 | Alternatively, with JavaScript, you can use [``](https://github.com/dddddddddzzzz/open-heart-element). 50 | 51 | ```html 52 | 53 | 54 | 55 | 56 | 👍 57 | ``` 58 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "api-oh", 3 | "version": "0.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "api-oh", 9 | "version": "0.0.0", 10 | "devDependencies": { 11 | "wrangler": "^3.60.3" 12 | } 13 | }, 14 | "node_modules/@cloudflare/kv-asset-handler": { 15 | "version": "0.3.4", 16 | "resolved": "https://registry.npmjs.org/@cloudflare/kv-asset-handler/-/kv-asset-handler-0.3.4.tgz", 17 | "integrity": "sha512-YLPHc8yASwjNkmcDMQMY35yiWjoKAKnhUbPRszBRS0YgH+IXtsMp61j+yTcnCE3oO2DgP0U3iejLC8FTtKDC8Q==", 18 | "dev": true, 19 | "license": "MIT OR Apache-2.0", 20 | "dependencies": { 21 | "mime": "^3.0.0" 22 | }, 23 | "engines": { 24 | "node": ">=16.13" 25 | } 26 | }, 27 | "node_modules/@cloudflare/workerd-darwin-64": { 28 | "version": "1.20241004.0", 29 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20241004.0.tgz", 30 | "integrity": "sha512-c2afR486NXDRcPm7RaTSRDnffFklPCXde/IeNVhEhBJ8O+pQhBOdDcGIy8zXPwMu0CYga0iHNZmpbsl+ZcHttA==", 31 | "cpu": [ 32 | "x64" 33 | ], 34 | "dev": true, 35 | "license": "Apache-2.0", 36 | "optional": true, 37 | "os": [ 38 | "darwin" 39 | ], 40 | "engines": { 41 | "node": ">=16" 42 | } 43 | }, 44 | "node_modules/@cloudflare/workerd-darwin-arm64": { 45 | "version": "1.20241004.0", 46 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20241004.0.tgz", 47 | "integrity": "sha512-siD9fexv5lr2IpBczWV7OPgJvHj8/fJUrRAYCMcBURkfiwssK91coQeZlN1NdQ85aYELVgxDFoG+p86OS+ZzLw==", 48 | "cpu": [ 49 | "arm64" 50 | ], 51 | "dev": true, 52 | "license": "Apache-2.0", 53 | "optional": true, 54 | "os": [ 55 | "darwin" 56 | ], 57 | "engines": { 58 | "node": ">=16" 59 | } 60 | }, 61 | "node_modules/@cloudflare/workerd-linux-64": { 62 | "version": "1.20241004.0", 63 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20241004.0.tgz", 64 | "integrity": "sha512-EtKGXO5fzRgX6UhDDLhjjEsB1QtliHb12zavZ/S0C8hKPz76II7MQ3Lls9kfB62fbdMP8L6vcqWPObEUcw6GSw==", 65 | "cpu": [ 66 | "x64" 67 | ], 68 | "dev": true, 69 | "license": "Apache-2.0", 70 | "optional": true, 71 | "os": [ 72 | "linux" 73 | ], 74 | "engines": { 75 | "node": ">=16" 76 | } 77 | }, 78 | "node_modules/@cloudflare/workerd-linux-arm64": { 79 | "version": "1.20241004.0", 80 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20241004.0.tgz", 81 | "integrity": "sha512-XO7VBE1YaFf/o9tKO1PqDqaxkU2eAR2DLX7R0+R8p+q92sUDXyoxo48T3yJDfxWndnKJ6hSJfvKanw3Mq9Tisw==", 82 | "cpu": [ 83 | "arm64" 84 | ], 85 | "dev": true, 86 | "license": "Apache-2.0", 87 | "optional": true, 88 | "os": [ 89 | "linux" 90 | ], 91 | "engines": { 92 | "node": ">=16" 93 | } 94 | }, 95 | "node_modules/@cloudflare/workerd-windows-64": { 96 | "version": "1.20241004.0", 97 | "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20241004.0.tgz", 98 | "integrity": "sha512-o+TmCYGq58jNUDbG73xOvd648XvJ2TicI++2BBoySklJXG6f4But5AwA8TxQgmeujR3vpBjPZKexEzcZSUOTtA==", 99 | "cpu": [ 100 | "x64" 101 | ], 102 | "dev": true, 103 | "license": "Apache-2.0", 104 | "optional": true, 105 | "os": [ 106 | "win32" 107 | ], 108 | "engines": { 109 | "node": ">=16" 110 | } 111 | }, 112 | "node_modules/@cloudflare/workers-shared": { 113 | "version": "0.6.0", 114 | "resolved": "https://registry.npmjs.org/@cloudflare/workers-shared/-/workers-shared-0.6.0.tgz", 115 | "integrity": "sha512-rfUCvb3hx4AsvdUZsxgk9lmgEnQehqV3jdtXLP/Xr0+P56n11T/0nXNMzmn7Nnv+IJFOV6X9NmFhuMz4sBPw7w==", 116 | "dev": true, 117 | "license": "MIT OR Apache-2.0", 118 | "dependencies": { 119 | "mime": "^3.0.0", 120 | "zod": "^3.22.3" 121 | }, 122 | "engines": { 123 | "node": ">=16.7.0" 124 | } 125 | }, 126 | "node_modules/@cspotcode/source-map-support": { 127 | "version": "0.8.1", 128 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 129 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 130 | "dev": true, 131 | "license": "MIT", 132 | "dependencies": { 133 | "@jridgewell/trace-mapping": "0.3.9" 134 | }, 135 | "engines": { 136 | "node": ">=12" 137 | } 138 | }, 139 | "node_modules/@esbuild-plugins/node-globals-polyfill": { 140 | "version": "0.2.3", 141 | "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-globals-polyfill/-/node-globals-polyfill-0.2.3.tgz", 142 | "integrity": "sha512-r3MIryXDeXDOZh7ih1l/yE9ZLORCd5e8vWg02azWRGj5SPTuoh69A2AIyn0Z31V/kHBfZ4HgWJ+OK3GTTwLmnw==", 143 | "dev": true, 144 | "license": "ISC", 145 | "peerDependencies": { 146 | "esbuild": "*" 147 | } 148 | }, 149 | "node_modules/@esbuild-plugins/node-modules-polyfill": { 150 | "version": "0.2.2", 151 | "resolved": "https://registry.npmjs.org/@esbuild-plugins/node-modules-polyfill/-/node-modules-polyfill-0.2.2.tgz", 152 | "integrity": "sha512-LXV7QsWJxRuMYvKbiznh+U1ilIop3g2TeKRzUxOG5X3YITc8JyyTa90BmLwqqv0YnX4v32CSlG+vsziZp9dMvA==", 153 | "dev": true, 154 | "license": "ISC", 155 | "dependencies": { 156 | "escape-string-regexp": "^4.0.0", 157 | "rollup-plugin-node-polyfills": "^0.2.1" 158 | }, 159 | "peerDependencies": { 160 | "esbuild": "*" 161 | } 162 | }, 163 | "node_modules/@esbuild/android-arm": { 164 | "version": "0.17.19", 165 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz", 166 | "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==", 167 | "cpu": [ 168 | "arm" 169 | ], 170 | "dev": true, 171 | "license": "MIT", 172 | "optional": true, 173 | "os": [ 174 | "android" 175 | ], 176 | "engines": { 177 | "node": ">=12" 178 | } 179 | }, 180 | "node_modules/@esbuild/android-arm64": { 181 | "version": "0.17.19", 182 | "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz", 183 | "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==", 184 | "cpu": [ 185 | "arm64" 186 | ], 187 | "dev": true, 188 | "license": "MIT", 189 | "optional": true, 190 | "os": [ 191 | "android" 192 | ], 193 | "engines": { 194 | "node": ">=12" 195 | } 196 | }, 197 | "node_modules/@esbuild/android-x64": { 198 | "version": "0.17.19", 199 | "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz", 200 | "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==", 201 | "cpu": [ 202 | "x64" 203 | ], 204 | "dev": true, 205 | "license": "MIT", 206 | "optional": true, 207 | "os": [ 208 | "android" 209 | ], 210 | "engines": { 211 | "node": ">=12" 212 | } 213 | }, 214 | "node_modules/@esbuild/darwin-arm64": { 215 | "version": "0.17.19", 216 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz", 217 | "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==", 218 | "cpu": [ 219 | "arm64" 220 | ], 221 | "dev": true, 222 | "license": "MIT", 223 | "optional": true, 224 | "os": [ 225 | "darwin" 226 | ], 227 | "engines": { 228 | "node": ">=12" 229 | } 230 | }, 231 | "node_modules/@esbuild/darwin-x64": { 232 | "version": "0.17.19", 233 | "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz", 234 | "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==", 235 | "cpu": [ 236 | "x64" 237 | ], 238 | "dev": true, 239 | "license": "MIT", 240 | "optional": true, 241 | "os": [ 242 | "darwin" 243 | ], 244 | "engines": { 245 | "node": ">=12" 246 | } 247 | }, 248 | "node_modules/@esbuild/freebsd-arm64": { 249 | "version": "0.17.19", 250 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz", 251 | "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==", 252 | "cpu": [ 253 | "arm64" 254 | ], 255 | "dev": true, 256 | "license": "MIT", 257 | "optional": true, 258 | "os": [ 259 | "freebsd" 260 | ], 261 | "engines": { 262 | "node": ">=12" 263 | } 264 | }, 265 | "node_modules/@esbuild/freebsd-x64": { 266 | "version": "0.17.19", 267 | "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz", 268 | "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==", 269 | "cpu": [ 270 | "x64" 271 | ], 272 | "dev": true, 273 | "license": "MIT", 274 | "optional": true, 275 | "os": [ 276 | "freebsd" 277 | ], 278 | "engines": { 279 | "node": ">=12" 280 | } 281 | }, 282 | "node_modules/@esbuild/linux-arm": { 283 | "version": "0.17.19", 284 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz", 285 | "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==", 286 | "cpu": [ 287 | "arm" 288 | ], 289 | "dev": true, 290 | "license": "MIT", 291 | "optional": true, 292 | "os": [ 293 | "linux" 294 | ], 295 | "engines": { 296 | "node": ">=12" 297 | } 298 | }, 299 | "node_modules/@esbuild/linux-arm64": { 300 | "version": "0.17.19", 301 | "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz", 302 | "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==", 303 | "cpu": [ 304 | "arm64" 305 | ], 306 | "dev": true, 307 | "license": "MIT", 308 | "optional": true, 309 | "os": [ 310 | "linux" 311 | ], 312 | "engines": { 313 | "node": ">=12" 314 | } 315 | }, 316 | "node_modules/@esbuild/linux-ia32": { 317 | "version": "0.17.19", 318 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz", 319 | "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==", 320 | "cpu": [ 321 | "ia32" 322 | ], 323 | "dev": true, 324 | "license": "MIT", 325 | "optional": true, 326 | "os": [ 327 | "linux" 328 | ], 329 | "engines": { 330 | "node": ">=12" 331 | } 332 | }, 333 | "node_modules/@esbuild/linux-loong64": { 334 | "version": "0.17.19", 335 | "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz", 336 | "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==", 337 | "cpu": [ 338 | "loong64" 339 | ], 340 | "dev": true, 341 | "license": "MIT", 342 | "optional": true, 343 | "os": [ 344 | "linux" 345 | ], 346 | "engines": { 347 | "node": ">=12" 348 | } 349 | }, 350 | "node_modules/@esbuild/linux-mips64el": { 351 | "version": "0.17.19", 352 | "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz", 353 | "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==", 354 | "cpu": [ 355 | "mips64el" 356 | ], 357 | "dev": true, 358 | "license": "MIT", 359 | "optional": true, 360 | "os": [ 361 | "linux" 362 | ], 363 | "engines": { 364 | "node": ">=12" 365 | } 366 | }, 367 | "node_modules/@esbuild/linux-ppc64": { 368 | "version": "0.17.19", 369 | "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz", 370 | "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==", 371 | "cpu": [ 372 | "ppc64" 373 | ], 374 | "dev": true, 375 | "license": "MIT", 376 | "optional": true, 377 | "os": [ 378 | "linux" 379 | ], 380 | "engines": { 381 | "node": ">=12" 382 | } 383 | }, 384 | "node_modules/@esbuild/linux-riscv64": { 385 | "version": "0.17.19", 386 | "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz", 387 | "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==", 388 | "cpu": [ 389 | "riscv64" 390 | ], 391 | "dev": true, 392 | "license": "MIT", 393 | "optional": true, 394 | "os": [ 395 | "linux" 396 | ], 397 | "engines": { 398 | "node": ">=12" 399 | } 400 | }, 401 | "node_modules/@esbuild/linux-s390x": { 402 | "version": "0.17.19", 403 | "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz", 404 | "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==", 405 | "cpu": [ 406 | "s390x" 407 | ], 408 | "dev": true, 409 | "license": "MIT", 410 | "optional": true, 411 | "os": [ 412 | "linux" 413 | ], 414 | "engines": { 415 | "node": ">=12" 416 | } 417 | }, 418 | "node_modules/@esbuild/linux-x64": { 419 | "version": "0.17.19", 420 | "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz", 421 | "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==", 422 | "cpu": [ 423 | "x64" 424 | ], 425 | "dev": true, 426 | "license": "MIT", 427 | "optional": true, 428 | "os": [ 429 | "linux" 430 | ], 431 | "engines": { 432 | "node": ">=12" 433 | } 434 | }, 435 | "node_modules/@esbuild/netbsd-x64": { 436 | "version": "0.17.19", 437 | "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz", 438 | "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==", 439 | "cpu": [ 440 | "x64" 441 | ], 442 | "dev": true, 443 | "license": "MIT", 444 | "optional": true, 445 | "os": [ 446 | "netbsd" 447 | ], 448 | "engines": { 449 | "node": ">=12" 450 | } 451 | }, 452 | "node_modules/@esbuild/openbsd-x64": { 453 | "version": "0.17.19", 454 | "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz", 455 | "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==", 456 | "cpu": [ 457 | "x64" 458 | ], 459 | "dev": true, 460 | "license": "MIT", 461 | "optional": true, 462 | "os": [ 463 | "openbsd" 464 | ], 465 | "engines": { 466 | "node": ">=12" 467 | } 468 | }, 469 | "node_modules/@esbuild/sunos-x64": { 470 | "version": "0.17.19", 471 | "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz", 472 | "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==", 473 | "cpu": [ 474 | "x64" 475 | ], 476 | "dev": true, 477 | "license": "MIT", 478 | "optional": true, 479 | "os": [ 480 | "sunos" 481 | ], 482 | "engines": { 483 | "node": ">=12" 484 | } 485 | }, 486 | "node_modules/@esbuild/win32-arm64": { 487 | "version": "0.17.19", 488 | "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz", 489 | "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==", 490 | "cpu": [ 491 | "arm64" 492 | ], 493 | "dev": true, 494 | "license": "MIT", 495 | "optional": true, 496 | "os": [ 497 | "win32" 498 | ], 499 | "engines": { 500 | "node": ">=12" 501 | } 502 | }, 503 | "node_modules/@esbuild/win32-ia32": { 504 | "version": "0.17.19", 505 | "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz", 506 | "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==", 507 | "cpu": [ 508 | "ia32" 509 | ], 510 | "dev": true, 511 | "license": "MIT", 512 | "optional": true, 513 | "os": [ 514 | "win32" 515 | ], 516 | "engines": { 517 | "node": ">=12" 518 | } 519 | }, 520 | "node_modules/@esbuild/win32-x64": { 521 | "version": "0.17.19", 522 | "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz", 523 | "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==", 524 | "cpu": [ 525 | "x64" 526 | ], 527 | "dev": true, 528 | "license": "MIT", 529 | "optional": true, 530 | "os": [ 531 | "win32" 532 | ], 533 | "engines": { 534 | "node": ">=12" 535 | } 536 | }, 537 | "node_modules/@fastify/busboy": { 538 | "version": "2.1.1", 539 | "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", 540 | "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", 541 | "dev": true, 542 | "license": "MIT", 543 | "engines": { 544 | "node": ">=14" 545 | } 546 | }, 547 | "node_modules/@jridgewell/resolve-uri": { 548 | "version": "3.1.2", 549 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 550 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 551 | "dev": true, 552 | "license": "MIT", 553 | "engines": { 554 | "node": ">=6.0.0" 555 | } 556 | }, 557 | "node_modules/@jridgewell/sourcemap-codec": { 558 | "version": "1.5.0", 559 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 560 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 561 | "dev": true, 562 | "license": "MIT" 563 | }, 564 | "node_modules/@jridgewell/trace-mapping": { 565 | "version": "0.3.9", 566 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 567 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 568 | "dev": true, 569 | "license": "MIT", 570 | "dependencies": { 571 | "@jridgewell/resolve-uri": "^3.0.3", 572 | "@jridgewell/sourcemap-codec": "^1.4.10" 573 | } 574 | }, 575 | "node_modules/@types/node": { 576 | "version": "22.7.5", 577 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.7.5.tgz", 578 | "integrity": "sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ==", 579 | "dev": true, 580 | "license": "MIT", 581 | "dependencies": { 582 | "undici-types": "~6.19.2" 583 | } 584 | }, 585 | "node_modules/@types/node-forge": { 586 | "version": "1.3.11", 587 | "resolved": "https://registry.npmjs.org/@types/node-forge/-/node-forge-1.3.11.tgz", 588 | "integrity": "sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==", 589 | "dev": true, 590 | "license": "MIT", 591 | "dependencies": { 592 | "@types/node": "*" 593 | } 594 | }, 595 | "node_modules/acorn": { 596 | "version": "8.12.1", 597 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.12.1.tgz", 598 | "integrity": "sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==", 599 | "dev": true, 600 | "license": "MIT", 601 | "bin": { 602 | "acorn": "bin/acorn" 603 | }, 604 | "engines": { 605 | "node": ">=0.4.0" 606 | } 607 | }, 608 | "node_modules/acorn-walk": { 609 | "version": "8.3.4", 610 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", 611 | "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", 612 | "dev": true, 613 | "license": "MIT", 614 | "dependencies": { 615 | "acorn": "^8.11.0" 616 | }, 617 | "engines": { 618 | "node": ">=0.4.0" 619 | } 620 | }, 621 | "node_modules/anymatch": { 622 | "version": "3.1.3", 623 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 624 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 625 | "dev": true, 626 | "license": "ISC", 627 | "dependencies": { 628 | "normalize-path": "^3.0.0", 629 | "picomatch": "^2.0.4" 630 | }, 631 | "engines": { 632 | "node": ">= 8" 633 | } 634 | }, 635 | "node_modules/as-table": { 636 | "version": "1.0.55", 637 | "resolved": "https://registry.npmjs.org/as-table/-/as-table-1.0.55.tgz", 638 | "integrity": "sha512-xvsWESUJn0JN421Xb9MQw6AsMHRCUknCe0Wjlxvjud80mU4E6hQf1A6NzQKcYNmYw62MfzEtXc+badstZP3JpQ==", 639 | "dev": true, 640 | "license": "MIT", 641 | "dependencies": { 642 | "printable-characters": "^1.0.42" 643 | } 644 | }, 645 | "node_modules/binary-extensions": { 646 | "version": "2.3.0", 647 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 648 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 649 | "dev": true, 650 | "license": "MIT", 651 | "engines": { 652 | "node": ">=8" 653 | }, 654 | "funding": { 655 | "url": "https://github.com/sponsors/sindresorhus" 656 | } 657 | }, 658 | "node_modules/blake3-wasm": { 659 | "version": "2.1.5", 660 | "resolved": "https://registry.npmjs.org/blake3-wasm/-/blake3-wasm-2.1.5.tgz", 661 | "integrity": "sha512-F1+K8EbfOZE49dtoPtmxUQrpXaBIl3ICvasLh+nJta0xkz+9kF/7uet9fLnwKqhDrmj6g+6K3Tw9yQPUg2ka5g==", 662 | "dev": true, 663 | "license": "MIT" 664 | }, 665 | "node_modules/braces": { 666 | "version": "3.0.3", 667 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 668 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 669 | "dev": true, 670 | "license": "MIT", 671 | "dependencies": { 672 | "fill-range": "^7.1.1" 673 | }, 674 | "engines": { 675 | "node": ">=8" 676 | } 677 | }, 678 | "node_modules/capnp-ts": { 679 | "version": "0.7.0", 680 | "resolved": "https://registry.npmjs.org/capnp-ts/-/capnp-ts-0.7.0.tgz", 681 | "integrity": "sha512-XKxXAC3HVPv7r674zP0VC3RTXz+/JKhfyw94ljvF80yynK6VkTnqE3jMuN8b3dUVmmc43TjyxjW4KTsmB3c86g==", 682 | "dev": true, 683 | "license": "MIT", 684 | "dependencies": { 685 | "debug": "^4.3.1", 686 | "tslib": "^2.2.0" 687 | } 688 | }, 689 | "node_modules/chokidar": { 690 | "version": "3.6.0", 691 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 692 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 693 | "dev": true, 694 | "license": "MIT", 695 | "dependencies": { 696 | "anymatch": "~3.1.2", 697 | "braces": "~3.0.2", 698 | "glob-parent": "~5.1.2", 699 | "is-binary-path": "~2.1.0", 700 | "is-glob": "~4.0.1", 701 | "normalize-path": "~3.0.0", 702 | "readdirp": "~3.6.0" 703 | }, 704 | "engines": { 705 | "node": ">= 8.10.0" 706 | }, 707 | "funding": { 708 | "url": "https://paulmillr.com/funding/" 709 | }, 710 | "optionalDependencies": { 711 | "fsevents": "~2.3.2" 712 | } 713 | }, 714 | "node_modules/cookie": { 715 | "version": "0.7.2", 716 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", 717 | "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", 718 | "dev": true, 719 | "license": "MIT", 720 | "engines": { 721 | "node": ">= 0.6" 722 | } 723 | }, 724 | "node_modules/data-uri-to-buffer": { 725 | "version": "2.0.2", 726 | "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-2.0.2.tgz", 727 | "integrity": "sha512-ND9qDTLc6diwj+Xe5cdAgVTbLVdXbtxTJRXRhli8Mowuaan+0EJOtdqJ0QCHNSSPyoXGx9HX2/VMnKeC34AChA==", 728 | "dev": true, 729 | "license": "MIT" 730 | }, 731 | "node_modules/debug": { 732 | "version": "4.3.7", 733 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", 734 | "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==", 735 | "dev": true, 736 | "license": "MIT", 737 | "dependencies": { 738 | "ms": "^2.1.3" 739 | }, 740 | "engines": { 741 | "node": ">=6.0" 742 | }, 743 | "peerDependenciesMeta": { 744 | "supports-color": { 745 | "optional": true 746 | } 747 | } 748 | }, 749 | "node_modules/defu": { 750 | "version": "6.1.4", 751 | "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.4.tgz", 752 | "integrity": "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg==", 753 | "dev": true, 754 | "license": "MIT" 755 | }, 756 | "node_modules/esbuild": { 757 | "version": "0.17.19", 758 | "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz", 759 | "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==", 760 | "dev": true, 761 | "hasInstallScript": true, 762 | "license": "MIT", 763 | "bin": { 764 | "esbuild": "bin/esbuild" 765 | }, 766 | "engines": { 767 | "node": ">=12" 768 | }, 769 | "optionalDependencies": { 770 | "@esbuild/android-arm": "0.17.19", 771 | "@esbuild/android-arm64": "0.17.19", 772 | "@esbuild/android-x64": "0.17.19", 773 | "@esbuild/darwin-arm64": "0.17.19", 774 | "@esbuild/darwin-x64": "0.17.19", 775 | "@esbuild/freebsd-arm64": "0.17.19", 776 | "@esbuild/freebsd-x64": "0.17.19", 777 | "@esbuild/linux-arm": "0.17.19", 778 | "@esbuild/linux-arm64": "0.17.19", 779 | "@esbuild/linux-ia32": "0.17.19", 780 | "@esbuild/linux-loong64": "0.17.19", 781 | "@esbuild/linux-mips64el": "0.17.19", 782 | "@esbuild/linux-ppc64": "0.17.19", 783 | "@esbuild/linux-riscv64": "0.17.19", 784 | "@esbuild/linux-s390x": "0.17.19", 785 | "@esbuild/linux-x64": "0.17.19", 786 | "@esbuild/netbsd-x64": "0.17.19", 787 | "@esbuild/openbsd-x64": "0.17.19", 788 | "@esbuild/sunos-x64": "0.17.19", 789 | "@esbuild/win32-arm64": "0.17.19", 790 | "@esbuild/win32-ia32": "0.17.19", 791 | "@esbuild/win32-x64": "0.17.19" 792 | } 793 | }, 794 | "node_modules/escape-string-regexp": { 795 | "version": "4.0.0", 796 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 797 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 798 | "dev": true, 799 | "license": "MIT", 800 | "engines": { 801 | "node": ">=10" 802 | }, 803 | "funding": { 804 | "url": "https://github.com/sponsors/sindresorhus" 805 | } 806 | }, 807 | "node_modules/estree-walker": { 808 | "version": "0.6.1", 809 | "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-0.6.1.tgz", 810 | "integrity": "sha512-SqmZANLWS0mnatqbSfRP5g8OXZC12Fgg1IwNtLsyHDzJizORW4khDfjPqJZsemPWBB2uqykUah5YpQ6epsqC/w==", 811 | "dev": true, 812 | "license": "MIT" 813 | }, 814 | "node_modules/exit-hook": { 815 | "version": "2.2.1", 816 | "resolved": "https://registry.npmjs.org/exit-hook/-/exit-hook-2.2.1.tgz", 817 | "integrity": "sha512-eNTPlAD67BmP31LDINZ3U7HSF8l57TxOY2PmBJ1shpCvpnxBF93mWCE8YHBnXs8qiUZJc9WDcWIeC3a2HIAMfw==", 818 | "dev": true, 819 | "license": "MIT", 820 | "engines": { 821 | "node": ">=6" 822 | }, 823 | "funding": { 824 | "url": "https://github.com/sponsors/sindresorhus" 825 | } 826 | }, 827 | "node_modules/fill-range": { 828 | "version": "7.1.1", 829 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 830 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 831 | "dev": true, 832 | "license": "MIT", 833 | "dependencies": { 834 | "to-regex-range": "^5.0.1" 835 | }, 836 | "engines": { 837 | "node": ">=8" 838 | } 839 | }, 840 | "node_modules/fsevents": { 841 | "version": "2.3.3", 842 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 843 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 844 | "dev": true, 845 | "hasInstallScript": true, 846 | "license": "MIT", 847 | "optional": true, 848 | "os": [ 849 | "darwin" 850 | ], 851 | "engines": { 852 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 853 | } 854 | }, 855 | "node_modules/function-bind": { 856 | "version": "1.1.2", 857 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 858 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 859 | "dev": true, 860 | "license": "MIT", 861 | "funding": { 862 | "url": "https://github.com/sponsors/ljharb" 863 | } 864 | }, 865 | "node_modules/get-source": { 866 | "version": "2.0.12", 867 | "resolved": "https://registry.npmjs.org/get-source/-/get-source-2.0.12.tgz", 868 | "integrity": "sha512-X5+4+iD+HoSeEED+uwrQ07BOQr0kEDFMVqqpBuI+RaZBpBpHCuXxo70bjar6f0b0u/DQJsJ7ssurpP0V60Az+w==", 869 | "dev": true, 870 | "license": "Unlicense", 871 | "dependencies": { 872 | "data-uri-to-buffer": "^2.0.0", 873 | "source-map": "^0.6.1" 874 | } 875 | }, 876 | "node_modules/glob-parent": { 877 | "version": "5.1.2", 878 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 879 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 880 | "dev": true, 881 | "license": "ISC", 882 | "dependencies": { 883 | "is-glob": "^4.0.1" 884 | }, 885 | "engines": { 886 | "node": ">= 6" 887 | } 888 | }, 889 | "node_modules/glob-to-regexp": { 890 | "version": "0.4.1", 891 | "resolved": "https://registry.npmjs.org/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz", 892 | "integrity": "sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==", 893 | "dev": true, 894 | "license": "BSD-2-Clause" 895 | }, 896 | "node_modules/hasown": { 897 | "version": "2.0.2", 898 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 899 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 900 | "dev": true, 901 | "license": "MIT", 902 | "dependencies": { 903 | "function-bind": "^1.1.2" 904 | }, 905 | "engines": { 906 | "node": ">= 0.4" 907 | } 908 | }, 909 | "node_modules/is-binary-path": { 910 | "version": "2.1.0", 911 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 912 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 913 | "dev": true, 914 | "license": "MIT", 915 | "dependencies": { 916 | "binary-extensions": "^2.0.0" 917 | }, 918 | "engines": { 919 | "node": ">=8" 920 | } 921 | }, 922 | "node_modules/is-core-module": { 923 | "version": "2.15.1", 924 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.15.1.tgz", 925 | "integrity": "sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ==", 926 | "dev": true, 927 | "license": "MIT", 928 | "dependencies": { 929 | "hasown": "^2.0.2" 930 | }, 931 | "engines": { 932 | "node": ">= 0.4" 933 | }, 934 | "funding": { 935 | "url": "https://github.com/sponsors/ljharb" 936 | } 937 | }, 938 | "node_modules/is-extglob": { 939 | "version": "2.1.1", 940 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 941 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 942 | "dev": true, 943 | "license": "MIT", 944 | "engines": { 945 | "node": ">=0.10.0" 946 | } 947 | }, 948 | "node_modules/is-glob": { 949 | "version": "4.0.3", 950 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 951 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 952 | "dev": true, 953 | "license": "MIT", 954 | "dependencies": { 955 | "is-extglob": "^2.1.1" 956 | }, 957 | "engines": { 958 | "node": ">=0.10.0" 959 | } 960 | }, 961 | "node_modules/is-number": { 962 | "version": "7.0.0", 963 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 964 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 965 | "dev": true, 966 | "license": "MIT", 967 | "engines": { 968 | "node": ">=0.12.0" 969 | } 970 | }, 971 | "node_modules/magic-string": { 972 | "version": "0.25.9", 973 | "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", 974 | "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", 975 | "dev": true, 976 | "license": "MIT", 977 | "dependencies": { 978 | "sourcemap-codec": "^1.4.8" 979 | } 980 | }, 981 | "node_modules/mime": { 982 | "version": "3.0.0", 983 | "resolved": "https://registry.npmjs.org/mime/-/mime-3.0.0.tgz", 984 | "integrity": "sha512-jSCU7/VB1loIWBZe14aEYHU/+1UMEHoaO7qxCOVJOw9GgH72VAWppxNcjU+x9a2k3GSIBXNKxXQFqRvvZ7vr3A==", 985 | "dev": true, 986 | "license": "MIT", 987 | "bin": { 988 | "mime": "cli.js" 989 | }, 990 | "engines": { 991 | "node": ">=10.0.0" 992 | } 993 | }, 994 | "node_modules/miniflare": { 995 | "version": "3.20241004.0", 996 | "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-3.20241004.0.tgz", 997 | "integrity": "sha512-QSSmCR2V1AJnnpYwlyLXobKLSGiY1FlAiZYULMdGgOUThV7HJeSysDxsmPmrH+D4GQbmUERnmDdB6M6Rrz7uPg==", 998 | "dev": true, 999 | "license": "MIT", 1000 | "dependencies": { 1001 | "@cspotcode/source-map-support": "0.8.1", 1002 | "acorn": "^8.8.0", 1003 | "acorn-walk": "^8.2.0", 1004 | "capnp-ts": "^0.7.0", 1005 | "exit-hook": "^2.2.1", 1006 | "glob-to-regexp": "^0.4.1", 1007 | "stoppable": "^1.1.0", 1008 | "undici": "^5.28.4", 1009 | "workerd": "1.20241004.0", 1010 | "ws": "^8.17.1", 1011 | "youch": "^3.2.2", 1012 | "zod": "^3.22.3" 1013 | }, 1014 | "bin": { 1015 | "miniflare": "bootstrap.js" 1016 | }, 1017 | "engines": { 1018 | "node": ">=16.13" 1019 | } 1020 | }, 1021 | "node_modules/ms": { 1022 | "version": "2.1.3", 1023 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1024 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1025 | "dev": true, 1026 | "license": "MIT" 1027 | }, 1028 | "node_modules/mustache": { 1029 | "version": "4.2.0", 1030 | "resolved": "https://registry.npmjs.org/mustache/-/mustache-4.2.0.tgz", 1031 | "integrity": "sha512-71ippSywq5Yb7/tVYyGbkBggbU8H3u5Rz56fH60jGFgr8uHwxs+aSKeqmluIVzM0m0kB7xQjKS6qPfd0b2ZoqQ==", 1032 | "dev": true, 1033 | "license": "MIT", 1034 | "bin": { 1035 | "mustache": "bin/mustache" 1036 | } 1037 | }, 1038 | "node_modules/nanoid": { 1039 | "version": "3.3.7", 1040 | "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.7.tgz", 1041 | "integrity": "sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==", 1042 | "dev": true, 1043 | "funding": [ 1044 | { 1045 | "type": "github", 1046 | "url": "https://github.com/sponsors/ai" 1047 | } 1048 | ], 1049 | "license": "MIT", 1050 | "bin": { 1051 | "nanoid": "bin/nanoid.cjs" 1052 | }, 1053 | "engines": { 1054 | "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" 1055 | } 1056 | }, 1057 | "node_modules/node-forge": { 1058 | "version": "1.3.1", 1059 | "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", 1060 | "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", 1061 | "dev": true, 1062 | "license": "(BSD-3-Clause OR GPL-2.0)", 1063 | "engines": { 1064 | "node": ">= 6.13.0" 1065 | } 1066 | }, 1067 | "node_modules/normalize-path": { 1068 | "version": "3.0.0", 1069 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1070 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1071 | "dev": true, 1072 | "license": "MIT", 1073 | "engines": { 1074 | "node": ">=0.10.0" 1075 | } 1076 | }, 1077 | "node_modules/ohash": { 1078 | "version": "1.1.4", 1079 | "resolved": "https://registry.npmjs.org/ohash/-/ohash-1.1.4.tgz", 1080 | "integrity": "sha512-FlDryZAahJmEF3VR3w1KogSEdWX3WhA5GPakFx4J81kEAiHyLMpdLLElS8n8dfNadMgAne/MywcvmogzscVt4g==", 1081 | "dev": true, 1082 | "license": "MIT" 1083 | }, 1084 | "node_modules/path-parse": { 1085 | "version": "1.0.7", 1086 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1087 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1088 | "dev": true, 1089 | "license": "MIT" 1090 | }, 1091 | "node_modules/path-to-regexp": { 1092 | "version": "6.3.0", 1093 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", 1094 | "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", 1095 | "dev": true, 1096 | "license": "MIT" 1097 | }, 1098 | "node_modules/pathe": { 1099 | "version": "1.1.2", 1100 | "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.2.tgz", 1101 | "integrity": "sha512-whLdWMYL2TwI08hn8/ZqAbrVemu0LNaNNJZX73O6qaIdCTfXutsLhMkjdENX0qhsQ9uIimo4/aQOmXkoon2nDQ==", 1102 | "dev": true, 1103 | "license": "MIT" 1104 | }, 1105 | "node_modules/picomatch": { 1106 | "version": "2.3.1", 1107 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1108 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1109 | "dev": true, 1110 | "license": "MIT", 1111 | "engines": { 1112 | "node": ">=8.6" 1113 | }, 1114 | "funding": { 1115 | "url": "https://github.com/sponsors/jonschlinkert" 1116 | } 1117 | }, 1118 | "node_modules/printable-characters": { 1119 | "version": "1.0.42", 1120 | "resolved": "https://registry.npmjs.org/printable-characters/-/printable-characters-1.0.42.tgz", 1121 | "integrity": "sha512-dKp+C4iXWK4vVYZmYSd0KBH5F/h1HoZRsbJ82AVKRO3PEo8L4lBS/vLwhVtpwwuYcoIsVY+1JYKR268yn480uQ==", 1122 | "dev": true, 1123 | "license": "Unlicense" 1124 | }, 1125 | "node_modules/readdirp": { 1126 | "version": "3.6.0", 1127 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1128 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1129 | "dev": true, 1130 | "license": "MIT", 1131 | "dependencies": { 1132 | "picomatch": "^2.2.1" 1133 | }, 1134 | "engines": { 1135 | "node": ">=8.10.0" 1136 | } 1137 | }, 1138 | "node_modules/resolve": { 1139 | "version": "1.22.8", 1140 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.8.tgz", 1141 | "integrity": "sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==", 1142 | "dev": true, 1143 | "license": "MIT", 1144 | "dependencies": { 1145 | "is-core-module": "^2.13.0", 1146 | "path-parse": "^1.0.7", 1147 | "supports-preserve-symlinks-flag": "^1.0.0" 1148 | }, 1149 | "bin": { 1150 | "resolve": "bin/resolve" 1151 | }, 1152 | "funding": { 1153 | "url": "https://github.com/sponsors/ljharb" 1154 | } 1155 | }, 1156 | "node_modules/resolve.exports": { 1157 | "version": "2.0.2", 1158 | "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", 1159 | "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", 1160 | "dev": true, 1161 | "license": "MIT", 1162 | "engines": { 1163 | "node": ">=10" 1164 | } 1165 | }, 1166 | "node_modules/rollup-plugin-inject": { 1167 | "version": "3.0.2", 1168 | "resolved": "https://registry.npmjs.org/rollup-plugin-inject/-/rollup-plugin-inject-3.0.2.tgz", 1169 | "integrity": "sha512-ptg9PQwzs3orn4jkgXJ74bfs5vYz1NCZlSQMBUA0wKcGp5i5pA1AO3fOUEte8enhGUC+iapTCzEWw2jEFFUO/w==", 1170 | "deprecated": "This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.", 1171 | "dev": true, 1172 | "license": "MIT", 1173 | "dependencies": { 1174 | "estree-walker": "^0.6.1", 1175 | "magic-string": "^0.25.3", 1176 | "rollup-pluginutils": "^2.8.1" 1177 | } 1178 | }, 1179 | "node_modules/rollup-plugin-node-polyfills": { 1180 | "version": "0.2.1", 1181 | "resolved": "https://registry.npmjs.org/rollup-plugin-node-polyfills/-/rollup-plugin-node-polyfills-0.2.1.tgz", 1182 | "integrity": "sha512-4kCrKPTJ6sK4/gLL/U5QzVT8cxJcofO0OU74tnB19F40cmuAKSzH5/siithxlofFEjwvw1YAhPmbvGNA6jEroA==", 1183 | "dev": true, 1184 | "license": "MIT", 1185 | "dependencies": { 1186 | "rollup-plugin-inject": "^3.0.0" 1187 | } 1188 | }, 1189 | "node_modules/rollup-pluginutils": { 1190 | "version": "2.8.2", 1191 | "resolved": "https://registry.npmjs.org/rollup-pluginutils/-/rollup-pluginutils-2.8.2.tgz", 1192 | "integrity": "sha512-EEp9NhnUkwY8aif6bxgovPHMoMoNr2FulJziTndpt5H9RdwC47GSGuII9XxpSdzVGM0GWrNPHV6ie1LTNJPaLQ==", 1193 | "dev": true, 1194 | "license": "MIT", 1195 | "dependencies": { 1196 | "estree-walker": "^0.6.1" 1197 | } 1198 | }, 1199 | "node_modules/selfsigned": { 1200 | "version": "2.4.1", 1201 | "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.4.1.tgz", 1202 | "integrity": "sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q==", 1203 | "dev": true, 1204 | "license": "MIT", 1205 | "dependencies": { 1206 | "@types/node-forge": "^1.3.0", 1207 | "node-forge": "^1" 1208 | }, 1209 | "engines": { 1210 | "node": ">=10" 1211 | } 1212 | }, 1213 | "node_modules/source-map": { 1214 | "version": "0.6.1", 1215 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 1216 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 1217 | "dev": true, 1218 | "license": "BSD-3-Clause", 1219 | "engines": { 1220 | "node": ">=0.10.0" 1221 | } 1222 | }, 1223 | "node_modules/sourcemap-codec": { 1224 | "version": "1.4.8", 1225 | "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", 1226 | "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", 1227 | "deprecated": "Please use @jridgewell/sourcemap-codec instead", 1228 | "dev": true, 1229 | "license": "MIT" 1230 | }, 1231 | "node_modules/stacktracey": { 1232 | "version": "2.1.8", 1233 | "resolved": "https://registry.npmjs.org/stacktracey/-/stacktracey-2.1.8.tgz", 1234 | "integrity": "sha512-Kpij9riA+UNg7TnphqjH7/CzctQ/owJGNbFkfEeve4Z4uxT5+JapVLFXcsurIfN34gnTWZNJ/f7NMG0E8JDzTw==", 1235 | "dev": true, 1236 | "license": "Unlicense", 1237 | "dependencies": { 1238 | "as-table": "^1.0.36", 1239 | "get-source": "^2.0.12" 1240 | } 1241 | }, 1242 | "node_modules/stoppable": { 1243 | "version": "1.1.0", 1244 | "resolved": "https://registry.npmjs.org/stoppable/-/stoppable-1.1.0.tgz", 1245 | "integrity": "sha512-KXDYZ9dszj6bzvnEMRYvxgeTHU74QBFL54XKtP3nyMuJ81CFYtABZ3bAzL2EdFUaEwJOBOgENyFj3R7oTzDyyw==", 1246 | "dev": true, 1247 | "license": "MIT", 1248 | "engines": { 1249 | "node": ">=4", 1250 | "npm": ">=6" 1251 | } 1252 | }, 1253 | "node_modules/supports-preserve-symlinks-flag": { 1254 | "version": "1.0.0", 1255 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1256 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1257 | "dev": true, 1258 | "license": "MIT", 1259 | "engines": { 1260 | "node": ">= 0.4" 1261 | }, 1262 | "funding": { 1263 | "url": "https://github.com/sponsors/ljharb" 1264 | } 1265 | }, 1266 | "node_modules/to-regex-range": { 1267 | "version": "5.0.1", 1268 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1269 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1270 | "dev": true, 1271 | "license": "MIT", 1272 | "dependencies": { 1273 | "is-number": "^7.0.0" 1274 | }, 1275 | "engines": { 1276 | "node": ">=8.0" 1277 | } 1278 | }, 1279 | "node_modules/tslib": { 1280 | "version": "2.7.0", 1281 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.7.0.tgz", 1282 | "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", 1283 | "dev": true, 1284 | "license": "0BSD" 1285 | }, 1286 | "node_modules/ufo": { 1287 | "version": "1.5.4", 1288 | "resolved": "https://registry.npmjs.org/ufo/-/ufo-1.5.4.tgz", 1289 | "integrity": "sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==", 1290 | "dev": true, 1291 | "license": "MIT" 1292 | }, 1293 | "node_modules/undici": { 1294 | "version": "5.28.4", 1295 | "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz", 1296 | "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==", 1297 | "dev": true, 1298 | "license": "MIT", 1299 | "dependencies": { 1300 | "@fastify/busboy": "^2.0.0" 1301 | }, 1302 | "engines": { 1303 | "node": ">=14.0" 1304 | } 1305 | }, 1306 | "node_modules/undici-types": { 1307 | "version": "6.19.8", 1308 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", 1309 | "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", 1310 | "dev": true, 1311 | "license": "MIT" 1312 | }, 1313 | "node_modules/unenv": { 1314 | "name": "unenv-nightly", 1315 | "version": "2.0.0-20241009-125958-e8ea22f", 1316 | "resolved": "https://registry.npmjs.org/unenv-nightly/-/unenv-nightly-2.0.0-20241009-125958-e8ea22f.tgz", 1317 | "integrity": "sha512-hRxmKz1iSVRmuFx/vBdPsx7rX4o7Cas9vdjDNeUeWpQTK2LzU3Xy3Jz0zbo7MJX0bpqo/LEFCA+GPwsbl6zKEQ==", 1318 | "dev": true, 1319 | "license": "MIT", 1320 | "dependencies": { 1321 | "defu": "^6.1.4", 1322 | "ohash": "^1.1.4", 1323 | "pathe": "^1.1.2", 1324 | "ufo": "^1.5.4" 1325 | } 1326 | }, 1327 | "node_modules/workerd": { 1328 | "version": "1.20241004.0", 1329 | "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20241004.0.tgz", 1330 | "integrity": "sha512-TCFJ7Zw7svR3adg1fnlPWj/yXhjBnQloLEIJqdu57hli/GsgwlbomwrbM3mdMgbS+K9zYeaYqknXiBN0EXk3QQ==", 1331 | "dev": true, 1332 | "hasInstallScript": true, 1333 | "license": "Apache-2.0", 1334 | "bin": { 1335 | "workerd": "bin/workerd" 1336 | }, 1337 | "engines": { 1338 | "node": ">=16" 1339 | }, 1340 | "optionalDependencies": { 1341 | "@cloudflare/workerd-darwin-64": "1.20241004.0", 1342 | "@cloudflare/workerd-darwin-arm64": "1.20241004.0", 1343 | "@cloudflare/workerd-linux-64": "1.20241004.0", 1344 | "@cloudflare/workerd-linux-arm64": "1.20241004.0", 1345 | "@cloudflare/workerd-windows-64": "1.20241004.0" 1346 | } 1347 | }, 1348 | "node_modules/wrangler": { 1349 | "version": "3.80.4", 1350 | "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-3.80.4.tgz", 1351 | "integrity": "sha512-DyNvShtVH3k7ZyBndlIiwyRDXqtHr3g01hxwn4FfwKlAaT6EL0wb3KL3UGbsdpeM/xbJiUQxFQ4WuFBWgZS18Q==", 1352 | "dev": true, 1353 | "license": "MIT OR Apache-2.0", 1354 | "dependencies": { 1355 | "@cloudflare/kv-asset-handler": "0.3.4", 1356 | "@cloudflare/workers-shared": "0.6.0", 1357 | "@esbuild-plugins/node-globals-polyfill": "^0.2.3", 1358 | "@esbuild-plugins/node-modules-polyfill": "^0.2.2", 1359 | "blake3-wasm": "^2.1.5", 1360 | "chokidar": "^3.5.3", 1361 | "esbuild": "0.17.19", 1362 | "miniflare": "3.20241004.0", 1363 | "nanoid": "^3.3.3", 1364 | "path-to-regexp": "^6.3.0", 1365 | "resolve": "^1.22.8", 1366 | "resolve.exports": "^2.0.2", 1367 | "selfsigned": "^2.0.1", 1368 | "source-map": "^0.6.1", 1369 | "unenv": "npm:unenv-nightly@2.0.0-20241009-125958-e8ea22f", 1370 | "workerd": "1.20241004.0", 1371 | "xxhash-wasm": "^1.0.1" 1372 | }, 1373 | "bin": { 1374 | "wrangler": "bin/wrangler.js", 1375 | "wrangler2": "bin/wrangler.js" 1376 | }, 1377 | "engines": { 1378 | "node": ">=16.17.0" 1379 | }, 1380 | "optionalDependencies": { 1381 | "fsevents": "~2.3.2" 1382 | }, 1383 | "peerDependencies": { 1384 | "@cloudflare/workers-types": "^4.20241004.0" 1385 | }, 1386 | "peerDependenciesMeta": { 1387 | "@cloudflare/workers-types": { 1388 | "optional": true 1389 | } 1390 | } 1391 | }, 1392 | "node_modules/ws": { 1393 | "version": "8.18.0", 1394 | "resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz", 1395 | "integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==", 1396 | "dev": true, 1397 | "license": "MIT", 1398 | "engines": { 1399 | "node": ">=10.0.0" 1400 | }, 1401 | "peerDependencies": { 1402 | "bufferutil": "^4.0.1", 1403 | "utf-8-validate": ">=5.0.2" 1404 | }, 1405 | "peerDependenciesMeta": { 1406 | "bufferutil": { 1407 | "optional": true 1408 | }, 1409 | "utf-8-validate": { 1410 | "optional": true 1411 | } 1412 | } 1413 | }, 1414 | "node_modules/xxhash-wasm": { 1415 | "version": "1.0.2", 1416 | "resolved": "https://registry.npmjs.org/xxhash-wasm/-/xxhash-wasm-1.0.2.tgz", 1417 | "integrity": "sha512-ibF0Or+FivM9lNrg+HGJfVX8WJqgo+kCLDc4vx6xMeTce7Aj+DLttKbxxRR/gNLSAelRc1omAPlJ77N/Jem07A==", 1418 | "dev": true, 1419 | "license": "MIT" 1420 | }, 1421 | "node_modules/youch": { 1422 | "version": "3.3.4", 1423 | "resolved": "https://registry.npmjs.org/youch/-/youch-3.3.4.tgz", 1424 | "integrity": "sha512-UeVBXie8cA35DS6+nBkls68xaBBXCye0CNznrhszZjTbRVnJKQuNsyLKBTTL4ln1o1rh2PKtv35twV7irj5SEg==", 1425 | "dev": true, 1426 | "license": "MIT", 1427 | "dependencies": { 1428 | "cookie": "^0.7.1", 1429 | "mustache": "^4.2.0", 1430 | "stacktracey": "^2.1.8" 1431 | } 1432 | }, 1433 | "node_modules/zod": { 1434 | "version": "3.23.8", 1435 | "resolved": "https://registry.npmjs.org/zod/-/zod-3.23.8.tgz", 1436 | "integrity": "sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==", 1437 | "dev": true, 1438 | "license": "MIT", 1439 | "funding": { 1440 | "url": "https://github.com/sponsors/colinhacks" 1441 | } 1442 | } 1443 | } 1444 | } 1445 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "api-oh", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "deploy": "wrangler deploy", 7 | "dev": "wrangler dev", 8 | "start": "wrangler dev" 9 | }, 10 | "devDependencies": { 11 | "wrangler": "^3.60.3" 12 | } 13 | } -------------------------------------------------------------------------------- /src/package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ohapi", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "ohapi", 9 | "version": "1.0.0", 10 | "license": "ISC" 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /src/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ohapi", 3 | "version": "1.0.0", 4 | "license": "ISC" 5 | } 6 | -------------------------------------------------------------------------------- /src/worker.js: -------------------------------------------------------------------------------- 1 | const instruction = `.^⋁^. 2 | '. .' 3 | \` 4 | 5 | dddddddddzzzz 6 | OpenHeart protocol API 7 | 8 | https://api.oh.dddddddddzzzz.org 9 | 10 | Test with example.com as . 11 | 12 | GET // to look up reactions for under 13 | GET / to look up reactions for everything under 14 | 15 | POST // to send an emoji 16 | 17 | must not contain a forward slash. 18 | owner has the right to remove data under its domain scope. 19 | 20 | ----- Test in CLI ----- 21 | Send emoji: 22 | curl -d '' -X POST 'https://api.oh.dddddddddzzzz.org/example.com/uid' 23 | 24 | Get all emoji counts for /example.com/uid: 25 | curl 'https://api.oh.dddddddddzzzz.org/example.com/uid' 26 | ` 27 | 28 | export default { 29 | async fetch(request, env) { 30 | if (request.method == 'OPTIONS') { 31 | return new Response(null, {headers}); 32 | } 33 | if (request.method === 'GET') { 34 | if (url(request).pathname === '/') { 35 | return new Response(instruction, {headers}) 36 | } else { 37 | return handleGet(request, env) 38 | } 39 | } 40 | if (request.method === 'POST') return handlePost(request, env) 41 | }, 42 | } 43 | 44 | const headers = { 45 | "Access-Control-Allow-Origin": "*", 46 | "Access-Control-Allow-Methods": "GET,POST", 47 | "Access-Control-Max-Age": "86400", 48 | } 49 | 50 | function error(text, code = 400) { 51 | return new Response(text, {headers, status: code}) 52 | } 53 | 54 | 55 | async function handleGet(request, env) { 56 | const [domain, ...uidParts] = url(request).pathname.slice(1).split('/') 57 | const list = {} 58 | const uid = uidParts ? uidParts.join('/') : null 59 | let prefix = domain 60 | if (uid) { 61 | prefix += `:${uid}` 62 | } 63 | 64 | const res = await env.KV.list({prefix}) 65 | for (const key of res.keys) { 66 | const value = await env.KV.get(key.name) 67 | const [_, uid, emoji] = key.name.split(':') 68 | const obj = list[uid] || {} 69 | obj[emoji] = Number(value) 70 | list[uid] = obj 71 | } 72 | return new Response( 73 | JSON.stringify(uid ? (list[uid] || {}) : list), 74 | {headers: {...headers, 'Content-Type': 'application/json;charset=UTF-8'}}) 75 | } 76 | 77 | function url(request) { 78 | return new URL(request.url) 79 | } 80 | 81 | async function handlePost(request, env) { 82 | const urlObject = url(request) 83 | const path = urlObject.pathname.slice(1) 84 | if (path === '') return error('pathname missing') 85 | 86 | const [domain, ...uidParts] = path.split('/') 87 | const uid = uidParts ? uidParts.join('/') : '' 88 | 89 | if (uid.length < 1) return error('uid required.') 90 | 91 | const id = [encodeURI(domain), uid].join(':') 92 | const emoji = ensureEmoji(await request.text()) 93 | 94 | if (!emoji) return error('request body should contain an emoji') 95 | 96 | const key = `${id}:${emoji}` 97 | 98 | // https://developers.cloudflare.com/workers/runtime-apis/kv/ 99 | const currentCount = Number(await(env.KV.get(key)) || 0) 100 | await env.KV.put(key, currentCount + 1) 101 | 102 | const redirection = urlObject.searchParams.get('redirect') 103 | if (redirection !== null) { 104 | headers['Location'] = redirection || request.headers.get('Referer') 105 | return new Response('recorded', {headers, status: 303}) 106 | } else { 107 | return new Response('recorded', {headers}) 108 | } 109 | } 110 | 111 | function ensureEmoji(emoji) { 112 | const segments = Array.from(new Intl.Segmenter({ granularity: 'grapheme' }).segment(emoji.trim())) 113 | const parsedEmoji = segments.length > 0 ? segments[0].segment : null 114 | 115 | if (/\p{Emoji}/u.test(parsedEmoji)) return parsedEmoji 116 | } 117 | -------------------------------------------------------------------------------- /src/wrangler.toml: -------------------------------------------------------------------------------- 1 | name = "api-oh" 2 | main = "worker.js" 3 | compatibility_date = "2023-08-23" 4 | 5 | [unsafe.metadata.observability] 6 | enabled = true 7 | -------------------------------------------------------------------------------- /wrangler.toml: -------------------------------------------------------------------------------- 1 | name = "api-oh" 2 | main = "src/worker.js" 3 | compatibility_date = "2024-10-14" 4 | workers_dev = false 5 | 6 | [[routes]] 7 | pattern = "api.oh.dddddddddzzzz.org" 8 | zone_name = "dddddddddzzzz.org" 9 | custom_domain = true 10 | 11 | [[kv_namespaces]] 12 | id = "3a5bd21e54b547ebb2bb64e25dab216c" 13 | binding = "KV" 14 | 15 | [observability] 16 | enabled = true 17 | --------------------------------------------------------------------------------