Git Product home page Git Product logo

nitro's Introduction

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

⚗️ Nitro

Build and Deploy Universal JavaScript Servers

Why use 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 defineEventHandler(() => "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.

nitro's People

Contributors

abdullrahman02000 avatar adetayoadeyemi avatar ajaikn avatar alex-key avatar anishghimire862 avatar antfu avatar ascorbic avatar atinux avatar benjamincanac avatar christopher4lis avatar clarkdo avatar cpreston321 avatar dammy001 avatar danielroe avatar didavid61202 avatar escral avatar farnabaz avatar huang-julien avatar huynl-96 avatar johannschopplich avatar mannil avatar minidigger avatar pi0 avatar posixpascal avatar renovate[bot] avatar robokozo avatar smarroufin avatar so1ve avatar tobiasdiez avatar yassilah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.