Skip to main content

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 verb
app.any("*", echo_hello);
let _ = app.listen("127.0.0.1:3000").await;
}

Quickstart Guides

Basics

Learn how to write superpowered sync and async routes and handlers.

Read more

Authentication & Authorization

Learn how to restrict access to your endpoints based on specific requirements.

Read more

Context API

Understand how to work with ngyn at it's core with the context API.

Read more

Error Handling

Empower your apps with a fluid error handling mechanism.

Read more

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.