Free course

Hono Course

Build a typed Hono API with Web Standard primitives, middleware, validation, testing, inferred clients, and two deployment runtimes.

5 modules · 25 lessons · No signup

Prerequisites: TypeScript, HTTP and Web APIs

~~~

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.

Take this course offline

Subscribe to my newsletter to get every free book and course in PDF and EPUB format.

Get the downloads

Course contents

  1. Hono foundations

    Start from Web Standards and separate portable app code from runtime adapters.

    1. Start from Web Standards
    2. Choose a runtime adapter
    3. Use context deliberately
    4. Return clear responses
    5. Check your understanding: hono foundations
  2. Routing and middleware

    Design the route tree and compose typed middleware in a visible order.

    1. Design the route tree
    2. Understand middleware order
    3. Use built-in middleware selectively
    4. Write request context middleware
    5. Check your understanding: routing and middleware
  3. Validation and errors

    Validate the right input target and handle errors, cookies, and authorization.

    1. Validate the correct target
    2. Connect a schema validator
    3. Handle errors centrally
    4. Use cookies and authorization safely
    5. Check your understanding: validation and errors
  4. Type-safe clients and testing

    Test through app.request and use inferred clients without dropping runtime checks.

    1. Test with app.request
    2. Use test helpers where they help
    3. Build a typed RPC client
    4. Test the contract, not the types
    5. Check your understanding: type-safe clients and testing
  5. Deploy and operate Hono

    Model bindings, deploy to two runtimes, observe behavior, and measure portability.

    1. Model runtime bindings
    2. Deploy to Node and Workers
    3. Observe portable applications
    4. Finish the portability report
    5. Check your understanding: deploy and operate hono