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
Creating an API, a bucket with access permissions and writing files to that bucket via a serverless function.
// JavaScript Example
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.
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 Twitter
-
Send us an email
We greatly appreciate contributions, consider starting with the contributions guide and a chat on Discord or GitHub.