{"schemaVersion":1,"id":"h3","name":"H3","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/h3/","officialUrl":"https://github.com/unjs/h3","isCatalog":false,"description":"A small HTTP framework for universal JavaScript server runtimes: it provides routing and request handling for backend tools.","tasks":["Handle an HTTP request in a JavaScript runtime","Connect handler responses/errors to the selected server runtime"],"categoryIds":["backend"],"subcategoryIds":["backend.api"],"tags":["H3","API","Development"],"aliases":["unjs/h3","h3-framework","h3-http"],"platforms":[],"stack":[],"compatibility":null,"pricing":"free","freeUsage":"Code and local use under MIT.","paidUsage":"Computing resources, self-hosting, and external services are paid for separately if used.","license":"MIT for the code; dependencies have separate licenses.","selectionGuide":{"purpose":"Handle an HTTP request in a JavaScript runtime","chooseWhen":["Handle an HTTP request in a JavaScript runtime","Connect handler responses/errors to the selected server runtime"],"considerInstead":[],"requirements":[],"limitations":["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."],"faq":[{"question":"What can you use for free in H3?","answer":"Code and local use under MIT."},{"question":"What additional costs might arise with H3?","answer":"Computing resources, self-hosting, and external services are paid for separately if used."},{"question":"What terms of use matter for H3?","answer":"MIT for the code; dependencies have separate licenses."},{"question":"How do you get started with H3?","answer":"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."},{"question":"Can an old Node.js handler be moved to H3?","answer":"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."}],"related":[],"sources":["https://github.com/unjs/h3","https://raw.githubusercontent.com/unjs/h3/HEAD/README.md","https://raw.githubusercontent.com/unjs/h3/HEAD/LICENSE","https://www.open-source-tools.com/","https://h3.dev/guide/basics/handler"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Handle an HTTP request in a JavaScript runtime.","inputs":["A data contract or HTTP workflow.","A project with a supported runtime."],"steps":["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."],"checks":["Invalid and missing data are handled predictably.","Types and the actual response agree; errors are not hidden."]},"sources":["https://github.com/unjs/h3","https://raw.githubusercontent.com/unjs/h3/HEAD/README.md","https://raw.githubusercontent.com/unjs/h3/HEAD/LICENSE","https://www.open-source-tools.com/","https://h3.dev/guide/basics/handler"],"checkedAt":"2026-10-06","reviewScope":"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.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Backend / API library","kind":"library","pricingNote":"Code and local use under MIT. Computing resources, self-hosting, and external services are paid for separately if used.","notes":null,"labeledSources":[{"url":"https://github.com/unjs/h3","label":"Official source"},{"url":"https://raw.githubusercontent.com/unjs/h3/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/unjs/h3/HEAD/LICENSE","label":"License"},{"url":"https://www.open-source-tools.com/","label":"Catalog / discovery source"},{"url":"https://h3.dev/guide/basics/handler","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"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.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}