# H3

[BASE product page](<https://base.akulich.dev/en/library/h3/>) · [Resource](<https://github.com/unjs/h3>)

ID: h3 · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

A small HTTP framework for universal JavaScript server runtimes: it provides routing and request handling for backend tools\.

## Type

Backend / API library

## Entry type

library

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/h3/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/h3/#resource-access>)

Code and local use under MIT\.

## [Paid features and costs](<https://base.akulich.dev/en/library/h3/#resource-access>)

Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Access and limitations](<https://base.akulich.dev/en/library/h3/#resource-access>)

Code and local use under MIT\. Computing resources, self\-hosting, and external services are paid for separately if used\.

## [Use cases](<https://base.akulich.dev/en/library/h3/#resource-tasks>)

- Handle an HTTP request in a JavaScript runtime
- Connect handler responses/errors to the selected server runtime

## Category IDs

- backend

## Subcategory IDs

- backend\.api

## Tags

- H3
- API
- Development

## Also known as

- unjs/h3
- h3\-framework
- h3\-http

## [Selection purpose](<https://base.akulich.dev/en/library/h3/#resource-selection>)

Handle an HTTP request in a JavaScript runtime

## [Choose this when](<https://base.akulich.dev/en/library/h3/#resource-selection>)

- Handle an HTTP request in a JavaScript runtime
- Connect handler responses/errors to the selected server runtime

## [Limitations](<https://base.akulich.dev/en/library/h3/#resource-selection>)

- Costs and limits of free use: Computing resources, self\-hosting, and external services are paid for separately if used\.
- Terms of use: MIT for the code; dependencies have separate licenses\.
- The current README branch covers v2; v1 has separate documentation\. Node\-style handlers do not automatically become universal web handlers\.

## [Questions before use](<https://base.akulich.dev/en/library/h3/#resource-faq>)

### What can you use for free in H3?

Code and local use under MIT\.

### What additional costs might arise with H3?

Computing resources, self\-hosting, and external services are paid for separately if used\.

### What terms of use matter for H3?

MIT for the code; dependencies have separate licenses\.

### How do you get started with H3?

Define the route and how it obtains request data\. Connect handler responses/errors to the selected server runtime\. Add error handling and an integration check of the result\.

### Can an old Node\.js handler be moved to H3?

fromNodeHandler adapts a req/res callback, but that handler runs in a Node\.js server runtime; the documentation also shows Bun/Deno Node compatibility\. A Web Request\-to\-Response handler is converted with fromWebHandler or mount\. defineHandler accepts sync/async functions, middleware, route metadata, and \.fetch; a lazy handler initializes on first access\.

## Sources for the selection guide

- [https://github\.com/unjs/h3](<https://github.com/unjs/h3>)
- [https://raw\.githubusercontent\.com/unjs/h3/HEAD/README\.md](<https://raw.githubusercontent.com/unjs/h3/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/unjs/h3/HEAD/LICENSE](<https://raw.githubusercontent.com/unjs/h3/HEAD/LICENSE>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)
- [https://h3\.dev/guide/basics/handler](<https://h3.dev/guide/basics/handler>)

## [Possible workflow](<https://base.akulich.dev/en/library/h3/#resource-scenario>)

Handle an HTTP request in a JavaScript runtime\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- A data contract or HTTP workflow\.
- A project with a supported runtime\.

## Steps

1. Define the route and how it obtains request data\.
2. Connect handler responses/errors to the selected server runtime\.
3. Add error handling and an integration check of the result\.

## Check your result

- Invalid and missing data are handled predictably\.
- Types and the actual response agree; errors are not hidden\.

## [License](<https://base.akulich.dev/en/library/h3/#resource-license>)

MIT for the code; dependencies have separate licenses\.

## License explanations for the specified scope

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## [Sources](<https://base.akulich.dev/en/library/h3/#resource-sources>)

- [Official source](<https://github.com/unjs/h3>)
- [Official source](<https://raw.githubusercontent.com/unjs/h3/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/unjs/h3/HEAD/LICENSE>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)
- [Official source](<https://h3.dev/guide/basics/handler>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
