Nitric is a multi-language framework, with concise inline infrastructure from code. Modern applications should be robust, productive and a joy to build. Nitric solves common problems building for modern platforms:
- Easy infrastructure from code
- Build for any host without coupling
- Run locally
- IAM for humans
- Common resources like databases, queues/topics, APIs, key-value, buckets and more
- Change services, IaC tools or cloud providers without changing code
We also know abstraction should mean building on existing layers, not hiding them. Nitric includes powerful escape hatches for when things get custom.
These are supported out of the box, but you can also build custom providers as well
πΏ Install Nitric:
macOS:
brew install nitrictech/tap/nitric
Linux:
curl -L "https://nitric.io/install?version=latest" | bash
Windows:
scoop bucket add nitric https://github.com/nitrictech/scoop-bucket.git
scoop install nitric
π Start building your first app:
nitric new
πΉ See our example apps: Example Apps Repo.
π Prefer a walkthrough? Read through our guides.
π Any questions? Join our developer community on Discord.
β Give us a star to help support our work!
To get up to speed quickly, take a look at our quick intro to Nitric.
Nitric focuses on what you want to achieve as the developer:
What workflow do you need to be productive?
What system design are you trying to achieve?.
All you need to do is write your application code and your infrastructure requirements are inferred. Nitric then orchestrates and configures the deployment of your application, no need to manually write your Terraform or other IaC code. By abstracting these infrastructure requirements, it removes the need to write boilerplate and means your single application is portable across clouds including, AWS, GCP, and Azure.
And, it's all open-source
Creating production-ready services and resources is simple, with less than 10 lines to deploy an API endpoint and a bucket with all the IAM permissions automatically configured.
import { api, bucket } from "@nitric/sdk";
const main = api("main");
const notes = bucket("notes").allow("read", "write");
main.post("/notes/:title", async (ctx) => {
const { title } = ctx.req.params;
await notes.file(title).write(ctx.req.text());
});
This is the only code needed to deploy a working application to any cloud provider using nitric up
. Nitric can deploy this application using automatically generated Pulumi, Terraform or any other automation tools of your choice.
-
Developer-Centric Workflow Nitric lets you design your application architecture, independent of the deployment automation tool or target platform. With highly declarative in-app infrastructure requirements.
-
Making Implicit Requirements Explicit If your app needs storage, a database, or a message queue, Nitric ensures these resources are properly set up and integrated into your app, removing the friction of manual configuration.
-
Cloud-Agnostic and Portable Nitric decouples your application from the underlying cloud infrastructure. Whether you're using AWS, Azure, GCP, or Kubernetes, Nitric allows you to map your application's requirements to the appropriate services across platforms.
-
Automated Infrastructure, Best Practices Included One of the most error-prone aspects of cloud development is managing permissions, configurations, and security policies. Nitric automates this, making security best practicesβlike least privilege access and proper service configurations easy.
-
Focus on Application Logic Nitric's approach allows you to focus on building your application, instead of the scaffolding required to run it in the cloud. By removing the manual steps from the IaC process, Nitric eliminates significant boilerplate and reduces the runtime checking needed to handle configuration errors.
-
Plugin-Based Architecture Nitric's plugin-based architecture allows you to use the deployment plugins we provide, which use Pulumi or Terraform for deployment, or write your own. This flexibility allows you to use the tools you're comfortable with, while still benefiting from Nitric's infrastructure automation and cloud-agnostic approach.
Nitric has full documentation at nitric.io/docs, including concepts, reference documentation for various languages and many tutorials/guides.
-
Ask questions in GitHub discussions
-
Join us on Discord
-
Find us on X
-
Or send us an email
We greatly appreciate contributions, consider starting with the contributions guide and a chat on Discord or GitHub.