Ohkami is a declarative web framework focused on type-safe request handling and flexible asynchronous execution. Its API allows developers to associate HTTP methods and paths with handler functions directly, without requiring procedural macros for ordinary route definitions. The framework uses a unified abstraction for request handlers and middleware, making it possible to combine application endpoints with reusable processing components.
A notable aspect of Ohkami is its support for different execution environments. Applications can use several native asynchronous runtimes, with additional support for serverless platforms such as Cloudflare Workers and AWS Lambda. The framework also integrates OpenAPI generation with its routing and request-handling model, helping documentation reflect the actual behaviour of application endpoints. Ohkami provides facilities for conventional HTTP APIs, streaming responses and interactive connections, while allowing developers to test request handling without starting a network listener.
This is free and open source software.
Key Features
- Declarative, macro-free HTTP routing with type-safe handlers.
- Support for GET, POST, PUT, PATCH, DELETE and OPTIONS routes.
- Nested applications and composable route definitions.
- Typed extraction of path parameters and request data.
- Unified Fang abstraction for handlers and middleware.
- Global and route-specific middleware composition.
- Authentication and security components, including Basic authentication, CORS, CSRF and JWT handling.
- Support for Tokio, smol, nio, monoio and Compio runtimes.
- Cloudflare Workers and AWS Lambda execution environments.
- Automatic OpenAPI documentation generation integrated with application routes.
- Server-Sent Events for streaming updates.
- WebSocket communication.
- Static directory serving with support for pre-compressed assets.
- TLS support through rustls.
- Graceful server shutdown on supported native runtimes.
- Request-handling tests without opening network connections.
Website: github.com/ohkami-rs/ohkami
Support:
Developer: kanarus
License: MIT License
Ohkami is written in Rust. Learn Rust with our recommended free books and free tutorials.
Related Software
| Rust Web Frameworks | |
|---|---|
| axum | Ergonomic and modular web framework |
| warp | Composable, web server framework |
| hyper | Protective and efficient HTTP library |
| Loco | Web or API framework for Rust |
| Gotham | Flexible web framework that promotes stability, safety, security and speed |
| Rocket | Async web framework focusing on usability, security, extensibility, and speed. |
| Poem | Full-featured and easy-to-use web framework |
| ntex | Framework for composable network services |
| Trillium | Modular toolkit for building async web applications |
| zino | Next-generation framework for composable applications |
| Iron | Extensible, concurrency focused web development |
| Vidi | Fast, robust, flexible, lightweight web framework |
| Xitca-Web | HTTP library and web framework |
| Thruster | Fast, middleware based, web framework |
| Rwf | Full-stack Rust platform for scalable, database-backed applications |
| nickel | Simple and lightweight foundation for web applications |
| Cot | Rust toolkit for fast, type-safe apps with built-in admin tools |
| Graphul | Express inspired web framework |
| Roa | Async web framework inspired by koa, lightweight but powerful |
| Ohkami | Intuitive and declarative web framework |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.