ngyn (en·jn)
The next-generation web framework for building ergonomic, lightning-fast, type-safe, reliable backend services in Rust.
use ngyn::prelude::*;#[handler]fn echo_hello() -> &'static str {"Hello World, Ngyn!"}#[tokio::main]async fn main() {let mut app = HyperApplication::default();// echo hello for every route and http post verbapp.any("*", echo_hello);let _ = app.listen("127.0.0.1:3000").await;}
Quickstart Guides
Authentication & Authorization
Learn how to restrict access to your endpoints based on specific requirements.
The Ecosystem
High Performance
Ngyn is built for speed, leveraging Rust's blazing-fast runtime and zero-cost abstractions to deliver unparalleled backend performance.
Type Safe
Benefit from Rust's robust type system and compile-time guarantees, ensuring fewer runtime errors and more reliable backend services.
Scalable Architecture
Designed for microservices and large-scale applications, with built-in support for async programming and concurrent request handling.
Developer Ergonomic
Clean, expressive APIs and comprehensive documentation make building complex backend services simpler and more enjoyable.
Gates and Middlewares
Learn about the contact model and how to create, retrieve, update, delete, and list contacts.
Websockets and Streams
Learn about the conversation model and how to create, retrieve, update, delete, and list conversations.
Form Handling
Learn about the conversation model and how to create, retrieve, update, delete, and list conversations.
Multiple Platforms
Learn about the message model and how to create, retrieve, update, delete, and list messages.