zhttpDocumentationDocumentation
GitHubGitHub (opens in a new tab)
  • Introduction
  • Installation
  • Basic usage example
  • Concepts
    • Endpoints
    • Controllers
    • Middlewares
    • Servers
  • OpenAPI
  • Errors
  • Order of execution
  • CommonJS support
Question? Give us feedback → (opens in a new tab)Edit this page on GitHub →
Documentation
Introduction

Introduction

zhttp is a minimal, typesafe, OpenAPI (opens in a new tab) compatible HTTP library. It's build around express (opens in a new tab) and Zod (opens in a new tab).

It solves some of the major pains of building an API with express (handler typing, error handling, input/output validation, openapi...) while attempting to stay as flexible (read: as close to plain express) as possible.

🧪 Try out zhttp on Stackblitz! (opens in a new tab)

Installation

zhttp built with ❤️ by Evert De Spiegeleer

Docs generated with Nextra