A fast & fun way to build portable cloud-native applications
This repository serves as the Nitric Examples repository, housing both starter templates for the languages supported by the Nitric Framework as well as a variety of example projects to show how Nitric can be used for different use cases.
Each example is designed to be deployed using Nitric for AWS, GCP, and Azure, or alternatively, can be run locally. The examples are organized within the v1 directory, which represents our latest version.
Note: Refer to the README of each project for setup instructions and more info as sometimes they are reliant on cloud services.
When utilizing the nitric new
command to initiate a new project, the available templates listed in the cli-templates.yaml
file are presented as options for constructing your application.
Want another language that isn't currently available? Chat to us on Discord.
Name | Description | Features |
---|---|---|
typescript-starter | TypeScript REST API Starter | APIs |
typescript-starter-deno | TypeScript REST API Starter with Deno 2 | APIs |
javascript-starter | JavaScript REST API Starter | APIs |
auth-firebase | Integrate with Firebase Auth | APIs, Auth, Frontend |
website-status | Perform a ping to check to see if URL is available | APIs |
openai-embeddings | Populate and query a vector db with embeddings of the nitric docs from openai using Supabase | APIs, AI, SQL Database |
middleware demo | A simple example of middleware handlers | APIs |
inventory | Simple inventory with image upload and labels generation with AWS Rekognition | APIs, Storage, Key Value Stores, Topics, Emails |
user-onboarding | Onboard a user and send them an email with AWS SES | APIs, Topics, Key Value Stores, Emails |
uptime-monitoring | A website uptime monitor using Events, APIs and Schedules | APIs, Topics, Schedules, Key Value Stores, Frontend |
dynamic-load | A simple example of loading a node js resource dynamically within an API | APIs |
upload-secure-url | Generate URLs to upload and download securely and directly from a Bucket | APIs, Storage |
graphql-profile-api | Use GraphQL to Create a reliable, scalable, and performant HTTP endpoint | APIs, Key Value Stores, GraphQL |
stripe-payments | Simple example of setting up and redirecting to a stripe payment gateway | APIs, Stripe Payments |
cockroach-example | Simple example of connecting to and adding entries into a cockroach db | APIs, SQL Database |
scheduled-tasks | Delete the items in a bucket (e.g. S3) every 3 days | APIs, Storage, Schedules |
neon-postgres | Simple example of connecting to and querying a neon postgres auto-scaling db | APIs, SQL Database |
neon-tasklist | Create a task list with a Neon pg database. | APIs, SQL Database |
cloudflare-lb | Deploy a multi-cloud application with a cloudflare loadbalanced application | APIs, Multi-Cloud |
surveys-auth0 | A survey app with NextJS frontend with and without Auth0 integration to save and resume application | APIs, Topics, Key Value Stores, Storage, Auth, Frontend |
nitric-drizzle | A PostgreSQL Database using Drizzle ORM deployed with AWS | APIs, SQL Database |
nitric-prisma | A PostgreSQL Database using Prisma ORM deployed with AWS | APIs, SQL Database |
nitric-express | A secure URL upload demonstrating usage with Nitric and Express framework | Existing API Frameworks, Storage |
nitric-koa | A secure URL upload demonstrating usage with Nitric and KOA framework | Existing API Frameworks, Storage |
nitric-hono | A secure URL upload demonstrating usage with Nitric and Hono | Existing API Frameworks, Storage |
nitric-fastify | A secure URL upload demonstrating usage with Nitric and fastify | Existing API Frameworks, Storage |
nitric-monorepo | Several monorepo examples that contains a Next.js app, a nitric API and shared packages | APIs |
websockets | A basic websockets example | APIs, Key Value Stores |
real-time-chat | A realtime chat using Websockets, Next.js, Nitric and Clerk Auth | APIs, WebSockets, Frontend, Auth |
scheduled-report | A scheduled report generated with Google Sheets and shared with Google Drive | APIs, Schedules |
apollo-server | Simple GraphQL example using Apollo Server | APIs, HTTP |
Name | Description | Features |
---|---|---|
python-starter | REST API Starter | APIs |
auth-firebase | Integrate with Firebase Auth | APIs, Auth, Frontend |
python-prediction | Text Prediciton API using Tensorflow | APIs |
scheduled-report | Scheduled Google Sheet Reports | APIs, Schedules |
blender-render | Render Blender Scenes remotely using Cloud GPUs | APIs, Batch, Storage |
podcast-transcription | Transcribe audio files using OpenAI Whisper | APIs, Batch, Storage |
llama-rag | Use Retrieval Augmented Generation (RAG) to enhance your LLMs | APIs, Storage |
Name | Description | Features |
---|---|---|
dart-starter | REST API Starter | APIs |
flutter | Basic Flutter Application with a Nitric backend | APIs, Key Value Stores |
Name | Description | Features |
---|---|---|
go-starter | REST API Starter | APIs |
url-shortener | URL Shortener with Pub/Sub | APIs, Topics, Key Value Stores |
websocket-app | A basic websockets example | APIs, WebSockets, Key Value Stores |
Nitric is a framework for rapid development of cloud-native and serverless applications in many languages.
Using Nitric you define your apps in terms of the resources they need, then write the code for serverless function based APIs, event subscribers and scheduled jobs.
Apps built with Nitric can be deployed to AWS, Azure or Google Cloud all from the same code base so you can focus on your products, not your cloud provider.
Nitric makes it easy to:
- Create smart serverless functions and APIs
- Build reliable distributed apps that use events and/or queues
- Securely store, retrieve and rotate secrets
- Read and write files from buckets
Learn more about Nitric from the main repository or documentation.