Why Navios?
A modern approach to building type-safe APIs with TypeScript
Shared API definitions
Define your API once with @navios/builder and use it on both client and server. No more type mismatches or manual syncing.
getUser({ urlParams })@navios/builder@Endpoint(getUser)Type-safe by design
Built with TypeScript from the ground up. Full type inference across your entire API, from endpoint definitions to response handling.
Decorator-based architecture
Define modules, controllers, and endpoints with intuitive decorators. Clean, readable code that scales with your application.
Powerful DI container
Lightweight dependency injection with hierarchical containers, multiple scopes, and async resolution for clean architecture.
Schema validation
Validate requests and responses with Zod, Valibot, ArkType or any Standard Schema library. Types are inferred from your schemas.
Adapter-agnostic
Run on Fastify or Bun with the same codebase. Switch runtimes without changing your application code.
One definition, three places
Create type-safe API definitions that work on both client and server
How Navios compares
See how Navios stacks up against other popular frameworks
| Feature | Navios | NestJS | Express |
|---|---|---|---|
| TypeScript native | Yes | Yes | No |
| Shared client/server types | Yes | No | No |
| ES decorators (TC39) | Yes | Legacy | No |
| Bun support | Yes | Limited | Yes |
| Built-in validation | Standard Schema | class-validator | No |
| Bundle size | Small | Large | Minimal |
| DI flexibility | Hierarchical | Module-bound | No |
Pick your pieces
Core packages, adapters, and recipes to build your application
Start with one endpoint
Set up a server, declare an endpoint, and call it with full types in a few minutes.