Serverless showcase:
build with Neon
Explore interactive demos from the community and the Neon team.
Featured
Postgres in under a second: Instantly provison a Postgres database on Neon
Tracking the latency between cloud hosting platforms and Neon's Postgres database regions
Create a copy of your database, make changes to it, and restore it to the original state in milliseconds
DB-per-user
AI app architecture: vector database per tenant
An AI app where each user gets it's own database instance. Uses Neon + pgvector.
Branching
Neon Twitter
A microblogging application designed to demonstrate the database branching capability of Neon Serverless Postgres with Neon's GitHub Actions.
Preview Branches
An example project showing how you can create a branch for every preview deployment on Vercel. If you want to use this project as a playground, you can set it up locally.
Neon Discord bot
Learn how to build a Discord bot while leveraging Neon branching. Be sure to read the companion branching tutorial before jumping in.
Full-stack preview environments using Neon and Qovery
This example shows how to execute a bash script and pass environment variables to other services within the same environment with Qovery Lifecycle Job.
Preview branches with Fly.io, Neon, and Github Actions
An example repo showing how to create one database branch per PR to automate your dev workflows, using Fly.io, Github Actions, and Drizzle for migrations.
Data Recovery with branching
Time travel bisect script demo
This demo shows how to create branches in the past and use a binary search to find the exact point in time before data was lost.
Read replicas example
Read replicas example
This example shows how to use Neon read replicas with the @prisma/extension-read-replicas extension in Prisma Client to read and write data in a PostgreSQL database.
Languages and Frameworks
Neon Ecto Getting Started
This repository shows how to connect to Neon from Elixir.
Neon Edge Analytics Astro Sample
A sample repository showing how to use Edge Analytics with Astro.
Neon with Next.js and Prisma
Example code using Next.js as the full stack framework, Prisma as the ORM, and Neon as the Postgres database.
Serverless driver
Ping Thing
Ping a Neon Serverless Postgres database using a Vercel Edge Function to see the journey your request makes.
Neon serverless driver UNESCO World Heritage Sites App
This application demonstrates how to use raw SQL with Neon's serverless driver on Vercel Edge Functions.
OAuth
Neon branch visualizer
This project enables you to visualize Neon branches and how they are connected to each other, showcasing how to build an OAuth integration with Neon.
AI
Vercel Postgres pgvector starter
A Next.js template that uses Vercel Postgres as the database, pgvector for vector similarity search + OpenAI's text embedding models.
Vector similarity search using Neon Postgres
This OpenAI Cookbook guides you through using Neon Serverless Postgres as a vector database for OpenAI embeddings.
Google Colab: Chat with your database with Langchain
This notebook shows how to use LangChain and OpenAI to chat with your database.
Semantic Search Chatbot (OpenAI + LangChain)
A starter application for an AI-powered Semantic Search chatbot with Next.js, pgvector, OpenAI, and LangChain.
AI Chatbot (OpenAI + LangChain)
A starter application for an AI-powered chatbot with Next.js, pgvector, OpenAI, and LangChain
Get started
with Neon
The fully managed multi-cloud Postgres with a generous free tier. We separated storage and compute to offer autoscaling, branching, and bottomless storage.