Nitric Examples

April 4, 2025 ยท View on GitHub

Nitric Logo

A fast & fun way to build portable cloud-native applications

GitHub release (latest SemVer) Twitter Follow Discord

Nitric Examples

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.

Starter Templates

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.

Examples Overview

TypeScript / JavaScript

NameDescriptionFeatures
typescript-starterTypeScript REST API StarterAPIs
typescript-starter-denoTypeScript REST API Starter with Deno 2APIs
javascript-starterJavaScript REST API StarterAPIs
auth-firebaseIntegrate with Firebase AuthAPIs, Auth, Frontend
website-statusPerform a ping to check to see if URL is availableAPIs
openai-embeddingsPopulate and query a vector db with embeddings of the nitric docs from openai using SupabaseAPIs, AI, SQL Database
middleware demoA simple example of middleware handlersAPIs
inventorySimple inventory with image upload and labels generation with AWS RekognitionAPIs, Storage, Key Value Stores, Topics, Emails
user-onboardingOnboard a user and send them an email with AWS SESAPIs, Topics, Key Value Stores, Emails
uptime-monitoringA website uptime monitor using Events, APIs and SchedulesAPIs, Topics, Schedules, Key Value Stores, Frontend
dynamic-loadA simple example of loading a node js resource dynamically within an APIAPIs
upload-secure-urlGenerate URLs to upload and download securely and directly from a BucketAPIs, Storage
graphql-profile-apiUse GraphQL to Create a reliable, scalable, and performant HTTP endpointAPIs, Key Value Stores, GraphQL
stripe-paymentsSimple example of setting up and redirecting to a stripe payment gatewayAPIs, Stripe Payments
cockroach-exampleSimple example of connecting to and adding entries into a cockroach dbAPIs, SQL Database
scheduled-tasksDelete the items in a bucket (e.g. S3) every 3 daysAPIs, Storage, Schedules
neon-postgresSimple example of connecting to and querying a neon postgres auto-scaling dbAPIs, SQL Database
neon-tasklistCreate a task list with a Neon pg database.APIs, SQL Database
cloudflare-lbDeploy a multi-cloud application with a cloudflare loadbalanced applicationAPIs, Multi-Cloud
surveys-auth0A survey app with NextJS frontend with and without Auth0 integration to save and resume applicationAPIs, Topics, Key Value Stores, Storage, Auth, Frontend
nitric-drizzleA PostgreSQL Database using Drizzle ORM deployed with AWSAPIs, SQL Database
nitric-prismaA PostgreSQL Database using Prisma ORM deployed with AWSAPIs, SQL Database
nitric-pgsqlA PostgreSQL Database using the pg client for Node.jsAPIs, SQL Database
nitric-expressA secure URL upload demonstrating usage with Nitric and Express frameworkExisting API Frameworks, Storage
nitric-koaA secure URL upload demonstrating usage with Nitric and KOA frameworkExisting API Frameworks, Storage
nitric-honoA secure URL upload demonstrating usage with Nitric and HonoExisting API Frameworks, Storage
nitric-fastifyA secure URL upload demonstrating usage with Nitric and fastifyExisting API Frameworks, Storage
nitric-monorepoSeveral monorepo examples that contains a Next.js app, a nitric API and shared packagesAPIs
websocketsA basic websockets exampleAPIs, Key Value Stores
real-time-chatA realtime chat using Websockets, Next.js, Nitric and Clerk AuthAPIs, WebSockets, Frontend, Auth
scheduled-reportA scheduled report generated with Google Sheets and shared with Google DriveAPIs, Schedules
apollo-serverSimple GraphQL example using Apollo ServerAPIs, HTTP
nitric-oakA secure URL upload demonstrating usage with Nitric and Oak with DenoExisting API Frameworks, Storage
nitric-nestA secure URL upload demonstrating usage with Nitric and NestExisting API Frameworks, Storage

Python

NameDescriptionFeatures
python-starterREST API StarterAPIs
auth-firebaseIntegrate with Firebase AuthAPIs, Auth, Frontend
python-predictionText Prediciton API using TensorflowAPIs
scheduled-reportScheduled Google Sheet ReportsAPIs, Schedules
blender-renderRender Blender Scenes remotely using Cloud GPUsAPIs, Batch, Storage
podcast-transcriptionTranscribe audio files using OpenAI WhisperAPIs, Batch, Storage
llama-ragUse Retrieval Augmented Generation (RAG) to enhance your LLMsAPIs, Storage
python-debugpyHow to attach debugpy debugger to one or more servicesAPIs

Dart

NameDescriptionFeatures
dart-starterREST API StarterAPIs
flutterBasic Flutter Application with a Nitric backendAPIs, Key Value Stores

Go

NameDescriptionFeatures
go-starterREST API StarterAPIs
url-shortenerURL Shortener with Pub/SubAPIs, Topics, Key Value Stores
websocket-appA basic websockets exampleAPIs, WebSockets, Key Value Stores

Websites

NameDescriptionFeatures
nitric-vite-reactNitric TypeScript with a React static websiteWebsites

About Nitric

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:

Learn more about Nitric from the main repository or documentation.