Skip to main content

Navios Framework

Type-safe, decorator-based framework for building modern APIs

npm install @navios/core @navios/adapter-fastify @navios/builder zod
ClientgetUser(userId)
Type-Safe
Shared Schema@navios/builder
Validated
Server@Endpoint(getUser)

Define Once, Use Everywhere

Create type-safe API definitions that work seamlessly on both client and server

// shared/api.ts
import { builder } from '@navios/builder'
import { z } from 'zod'

export const API = builder()

export const getUser = API.declareEndpoint({
method: 'GET',
url: '/users/$userId',
responseSchema: z.object({
id: z.string(),
name: z.string(),
email: z.string(),
}),
})

How Navios Compares

See how Navios stacks up against other popular frameworks

FeatureNaviosNestJSExpress
TypeScript Native
Shared Client/Server Types
ES Decorators (TC39)Legacy
Bun SupportLimited
Built-in ValidationZodclass-validator
Bundle SizeSmallLargeMinimal
DI FlexibilityHierarchicalModule-bound

Packages

@navios/core@navios/core version

HTTP server framework with decorators, modules, and controllers

Learn more →
@navios/builder@navios/builder version

Type-safe API declarations shared between client and server

Learn more →
@navios/di@navios/di version

Lightweight dependency injection with hierarchical containers

Learn more →