feat: init

This commit is contained in:
2026-02-13 22:02:30 +01:00
commit 8f9ff830fb
16711 changed files with 3307340 additions and 0 deletions
Generated Vendored
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) Pooya Parsa <pooya@pi0.io>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Generated Vendored
+51
View File
@@ -0,0 +1,51 @@
# H3
<!-- automd:badges -->
[![npm version](https://img.shields.io/npm/v/h3)](https://npmjs.com/package/h3)
[![npm downloads](https://img.shields.io/npm/dm/h3)](https://npm.chart.dev/h3)
<!-- /automd -->
H3 (pronounced as /eɪtʃθriː/, like h-3) is a minimal h(ttp) framework built for high performance and portability.
> [!NOTE]
> You are on the v1 branch. Check out [h3 main](https://github.com/unjs/h3/tree/main) for latest.
👉 [Documentation](https://h3.unjs.io)
## Contribution
<details>
<summary>Local development</summary>
- Clone this repository
- Install the latest LTS version of [Node.js](https://nodejs.org/en/)
- Enable [Corepack](https://github.com/nodejs/corepack) using `corepack enable`
- Install dependencies using `pnpm install`
- Run tests using `pnpm dev` or `pnpm test`
</details>
<!-- /automd -->
## License
<!-- automd:contributors license=MIT author="pi0" -->
Published under the [MIT](https://github.com/h3js/h3/blob/main/LICENSE) license.
Made by [@pi0](https://github.com/pi0) and [community](https://github.com/h3js/h3/graphs/contributors) 💛
<br><br>
<a href="https://github.com/h3js/h3/graphs/contributors">
<img src="https://contrib.rocks/image?repo=h3js/h3" />
</a>
<!-- /automd -->
<!-- automd:with-automd -->
---
_🤖 auto updated with [automd](https://automd.unjs.io)_
<!-- /automd -->
+2602
View File
File diff suppressed because it is too large Load Diff
+1397
View File
File diff suppressed because one or more lines are too long
+1397
View File
File diff suppressed because one or more lines are too long
+1397
View File
File diff suppressed because one or more lines are too long
+2485
View File
File diff suppressed because it is too large Load Diff
+78
View File
@@ -0,0 +1,78 @@
{
"name": "h3",
"version": "1.15.5",
"description": "Minimal H(TTP) framework built for high performance and portability.",
"repository": "h3js/h3",
"license": "MIT",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "unbuild",
"dev": "vitest",
"lint": "eslint --cache . && prettier -c src test playground examples docs",
"lint:fix": "eslint --cache . --fix && prettier -c src test playground examples docs -w",
"prepack": "pnpm build",
"play": "listhen -w ./playground/app.ts",
"profile": "0x -o -D .profile -P 'autocannon -c 100 -p 10 -d 40 http://localhost:$PORT' ./playground/server.cjs",
"release": "pnpm test && pnpm build && changelogen --release --publish --publishTag 1x && git push --follow-tags",
"test": "pnpm lint && vitest --run --coverage && pnpm test:types",
"test:types": "tsgo --noEmit"
},
"resolutions": {
"h3": "^1.14.0"
},
"dependencies": {
"cookie-es": "^1.2.2",
"crossws": "^0.3.5",
"defu": "^6.1.4",
"destr": "^2.0.5",
"iron-webcrypto": "^1.2.1",
"node-mock-http": "^1.0.4",
"radix3": "^1.1.2",
"ufo": "^1.6.3",
"uncrypto": "^0.1.3"
},
"devDependencies": {
"0x": "^6.0.0",
"@types/express": "^5.0.6",
"@types/node": "^25.0.8",
"@types/supertest": "^6.0.3",
"@typescript/native-preview": "7.0.0-dev.20260115.1",
"@vitest/coverage-v8": "^4.0.17",
"autocannon": "^8.0.0",
"automd": "^0.4.2",
"changelogen": "^0.6.2",
"connect": "^3.7.0",
"eslint": "^9.39.2",
"eslint-config-unjs": "^0.6.2",
"express": "^5.2.1",
"get-port": "^7.1.0",
"h3": "^2.0.1-rc.8",
"jiti": "^2.6.1",
"listhen": "^1.9.0",
"node-fetch-native": "^1.6.7",
"prettier": "^3.8.0",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"supertest": "^7.2.2",
"typescript": "^5.9.3",
"unbuild": "^3.6.1",
"undici": "^7.18.2",
"vitest": "^4.0.17",
"zod": "^4.3.5"
},
"packageManager": "pnpm@10.28.0"
}