JSPM

  • Created
  • Published
  • Downloads 599144
  • Score
    100M100P100Q186514F
  • License MIT

Build and Deploy Universal JavaScript Servers

Package Exports

  • nitropack
  • nitropack/cli
  • nitropack/dist/runtime/app
  • nitropack/dist/runtime/cache
  • nitropack/dist/runtime/client
  • nitropack/dist/runtime/config
  • nitropack/dist/runtime/entries/aws-lambda
  • nitropack/dist/runtime/entries/azure
  • nitropack/dist/runtime/entries/azure-functions
  • nitropack/dist/runtime/entries/cli
  • nitropack/dist/runtime/entries/cloudflare
  • nitropack/dist/runtime/entries/cloudflare-pages
  • nitropack/dist/runtime/entries/firebase
  • nitropack/dist/runtime/entries/netlify-builder
  • nitropack/dist/runtime/entries/netlify-edge
  • nitropack/dist/runtime/entries/nitro-dev
  • nitropack/dist/runtime/entries/nitro-prerenderer
  • nitropack/dist/runtime/entries/node
  • nitropack/dist/runtime/entries/node-server
  • nitropack/dist/runtime/entries/service-worker
  • nitropack/dist/runtime/entries/stormkit
  • nitropack/dist/runtime/entries/vercel
  • nitropack/dist/runtime/entries/vercel-edge
  • nitropack/dist/runtime/error
  • nitropack/dist/runtime/index
  • nitropack/dist/runtime/plugin
  • nitropack/dist/runtime/renderer
  • nitropack/dist/runtime/static
  • nitropack/dist/runtime/timing
  • nitropack/dist/runtime/types
  • nitropack/dist/runtime/utils
  • nitropack/dist/runtime/virtual/polyfills
  • nitropack/package.json
  • nitropack/runtime/app
  • nitropack/runtime/cache
  • nitropack/runtime/client
  • nitropack/runtime/config
  • nitropack/runtime/entries/aws-lambda
  • nitropack/runtime/entries/azure
  • nitropack/runtime/entries/azure-functions
  • nitropack/runtime/entries/cli
  • nitropack/runtime/entries/cloudflare
  • nitropack/runtime/entries/cloudflare-pages
  • nitropack/runtime/entries/firebase
  • nitropack/runtime/entries/netlify-builder
  • nitropack/runtime/entries/netlify-edge
  • nitropack/runtime/entries/nitro-dev
  • nitropack/runtime/entries/nitro-prerenderer
  • nitropack/runtime/entries/node
  • nitropack/runtime/entries/node-server
  • nitropack/runtime/entries/service-worker
  • nitropack/runtime/entries/stormkit
  • nitropack/runtime/entries/vercel
  • nitropack/runtime/entries/vercel-edge
  • nitropack/runtime/error
  • nitropack/runtime/index
  • nitropack/runtime/plugin
  • nitropack/runtime/renderer
  • nitropack/runtime/static
  • nitropack/runtime/timing
  • nitropack/runtime/types
  • nitropack/runtime/utils
  • nitropack/runtime/virtual/polyfills

Readme

npm version npm downloads npm-edge version npm-edge downloads

⚗️ Nitro

Build and Deploy Universal JavaScript Servers

Why using Nitro?

Nitro provides a powerful toolchain and a runtime framework from the UnJS ecosystem to build and deploy any JavaScript server, anywhere!

❯ 🐇 Rapid development experience with hot module replacement
❯ 😌 Multi-provider deployments with a single codebase and zero-configuration
❯ 💼 Portable and compact deployments without node_modules dependency
❯ 📁 Directory structure aware to register API routes and more with zero configuration
❯ 🤏 Minimal Design to fit into any solution with minimum overhead
❯ 🚀 Code-splitting and async chunk loading for fast server startup time
❯ 👕 TypeScript fully supported
❯ 💾 Multi-driver storage and caching layer
❯ 💰 Route caching and static pre-rendering with built-in crawler
❯ 🐱 Hackable to extend almost any part of nitro using options
❯ ✨ Auto imports for lazy folks and a tidy minimal codebase
❯ 🏛️ Best-effort compatibility for using legacy npm packages and mocking Node.js modules

Who is using Nitro?

Nuxt 3 is using Nitro as its server engine.



📖 Documentation

✍️ Changelog

🏀 Online playground



😺 Quick Start

0️⃣ Create an empty directory nitro-app

mkdir nitro-app
cd nitro-app

1️⃣ Create routes/index.ts:

export default () => 'nitro is amazing!'

2️⃣ Start development server:

npx nitropack dev

🪄 Your API is ready at http://localhost:3000/

Check .nitro/dev/index.mjs if want to know what is happening

3️⃣ You can now build your production-ready server:

npx nitropack build

4️⃣ Output is in the .output directory and ready to be deployed on almost any VPS with no dependencies. You can locally try it too:

node .output/server/index.mjs

That's it you got it! Read the documentation to learn more.


🌱 nitro is young and under development

Check 🐛 open issues for the known issues and roadmap and tell us 💡your ideas!


License

Made with 💛 Published under MIT.