Introduction

Okapi is a modern, minimalist HTTP framework for Go built for simplicity, performance, and developer experience. It helps you build fast, scalable, and well-documented APIs with minimal boilerplate.

Designed around clarity, strong typing, and developer productivity, Okapi provides automatic request validation and built-in OpenAPI documentation out of the box, making it easy to create production-ready APIs that are clean, maintainable, and easy to evolve.

Named after the okapi (/oʊˈkɑːpiː/), a rare and graceful mammal native to the rainforests of the Democratic Republic of the Congo, the framework reflects the same balance of elegance, adaptability, and strength. Like the animal itself, Okapi combines distinct qualities into a unique and powerful experience.

Okapi Logo

✨ Key Features

🚀 Fast & Minimal

  • Lightweight and optimized for high-performance HTTP applications
  • Minimal boilerplate with an intuitive developer-friendly API
  • Fully compatible with Go’s net/http standard library

🧩 Powerful Request Handling

  • Automatic binding for:
    • JSON
    • XML
    • Form data
    • Query parameters
    • Headers
    • Path parameters
  • Strongly typed request handling with built-in validation

🔐 Security & Middleware

  • Native support for:
    • JWT authentication
    • Basic Authentication
    • Custom middleware
  • Route grouping and middleware chaining
  • Fine-grained timeout controls
  • CORS management

📚 Built-in API Documentation

  • Automatic OpenAPI 3.0 specification generation
  • Integrated Swagger UI and ReDoc support
  • Documentation stays synchronized with your routes

⚡ Dynamic Route Management

  • Enable or disable routes and route groups dynamically
  • Automatic Swagger synchronization
  • No need to comment out or remove code manually

🛠 Modern Developer Experience

  • Clear and consistent error handling
  • Structured logging support
  • Easy testing and maintainable architecture
  • Static file serving
  • Templating engine support

Built for real-world applications, Okapi scales from quick prototypes to production-grade services with a focus on speed, clarity, and maintainability.


Badges

Tests Go Report Card Go Reference codecov GitHub Release