Skip to content

Introduction

Tyravel logo

Tyravel is a TypeScript-native web framework that brings Laravel-style ergonomics to Node.js 26+. It runs on standard Web APIs (Request, Response, fetch) and ships as a set of focused npm packages you can adopt incrementally.

What you get

  • Application kernel — service container, providers, HTTP kernel, and facades (Route, Auth, Queue, …)
  • HTTP layer — router with groups and named routes, middleware registry, JSON/HTML/XML responses
  • Database — Eloquent-style models, query builder, migrations, factories, seeders, and pagination
  • Auth — session and token guards, social OAuth (GitHub, Google, X, Apple, …), OAuth2 server, CSRF, API token hardening, policies, password reset
  • Crypto — post-quantum KEM/signatures (@tyravel/crypto), session encryption at rest, signed OAuth tokens
  • Async work — typed jobs, database/redis queue drivers, domain events and listeners (async-native boot and I/O since v0.9.0)
  • DXtyravel CLI for scaffolding, migrations, seeding, and a built-in dev server

Requirements

  • Node.js 26+ (Bun is also supported as a runtime)
  • npm workspaces for monorepo development; published packages install like any other dependency

Packages

PackageRole
@tyravel/coreApplication kernel and facades
@tyravel/httpRouter, middleware, requests, responses
@tyravel/databaseORM, migrations, pagination
@tyravel/authGuards, sessions, social OAuth, policies
@tyravel/auth-oauthOAuth2 authorization server
@tyravel/cryptoPost-quantum encryption and signatures
@tyravel/cliProject scaffolding and generators

See the package reference for every @tyravel/* package, or the monorepo README for a quick overview.

Documentation map

SectionBest for
GuideConcepts and how things work
ReferencePackage exports, CLI commands, facades
TutorialsZero-to-deploy learning path
CookbookFocused recipes (realtime, RAG, testing)
Configuration referenceEvery config/*.ts key from scaffolds
BroadcastingWebSocket hub, Echo client, production deploy
DeploymentDocker, Fly.io, Railway walkthroughs with manifests
EcosystemPublishing third-party @tyravel/* extensions

Upgrading

Tyravel 1.0.x follows strict semver for stable APIs. Read API stability before upgrading across minor versions. Apps still on 0.11–0.16 should follow Upgrading to 1.0 to drop removed sync helpers and adopt async catalog APIs.

Released under the MIT License.