talira

Server toolkit that builds one codebase for Node.js, Bun, Deno, edge and serverless

open sourceMITfree

Nitro builds production servers that run anywhere: write API routes, then deploy the same code to Node.js, Bun, Deno, edge workers or serverless functions, with Nitro emitting the output format each host expects. Files in routes/ become routes, compiled so no runtime router ships in the bundle, and any framework that speaks the Web fetch interface (H3, Hono, Elysia) or Node-style (req, res) can be the server entry. It bundles a key-value storage layer, a SQL layer preconfigured with SQLite, cached handlers with stale-while-revalidate, scheduled tasks, WebSockets and a generated OpenAPI spec. Version 3 extends Vite apps; version 2 is the current stable release.

Problems it solves

  • deploy the same JavaScript server to Node.js and serverless without rewriting it
  • add a production server to my Vite app
  • build an API server that runs on edge workers and Bun

Features

  • one codebase deployed to Node.js, Bun, Deno, edge workers and serverless
  • file-based routes compiled into the bundle
  • bring your own server framework: H3, Hono, Elysia or Express
  • caching with stale-while-revalidate over the app's storage layer
  • built-in storage, SQL, scheduled tasks, WebSockets and OpenAPI

Alternatives

The same job

These do what Nitro does.

  1. Hono Web framework built on Web Standards

Compare Nitro with the top 3