Free course
Hono Course
Build a typed Hono API with Web Standard primitives, middleware, validation, testing, inferred clients, and two deployment runtimes.
Prerequisites: TypeScript, HTTP and Web APIs
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it. Join my free newsletter and you get this course plus every other book and course I published.
Download this course as PDF or EPUB
Read it offline, on your Kindle, or print it.
Your progress
of lessons completed.
Course completed.
What you'll learn
Build and test a bookmarks API, then deploy the same portable core to Node and Cloudflare Workers with explicit runtime boundaries.
Course contents
Hono foundations
Start from Web Standards and separate portable app code from runtime adapters.
Routing and middleware
Design the route tree and compose typed middleware in a visible order.
Validation and errors
Validate the right input target and handle errors, cookies, and authorization.
Type-safe clients and testing
Test through app.request and use inferred clients without dropping runtime checks.
Deploy and operate Hono
Model bindings, deploy to two runtimes, observe behavior, and measure portability.