Accelerate your Vercel Workflow with databases optimized for the fastest frontends
Vercel Postgres is a serverless, fully-managed relational database built on open standards and designed to work with your favorite frontend frameworks.
import { sql } from '@vercel/postgres';import { redirect } from 'next/navigation';
async function create(formData: FormData) { 'use server'; const { rows } = await sql` INSERT INTO products (name) VALUES (${formData.get('name')}) `; redirect(`/product/${rows[0].slug}`);}
export default function Page() { return ( <form action={create}> <input type="text" name="name" /> <button type="submit">Submit</button> </form> );}
Vercel Postgres Next.js Starter
Simple Next.js template that uses Vercel Postgres as the database.
Built with Next.js
Vercel Postgres + Prisma Starter
Next.js template with Vercel Postgres as the database and Prisma as the ORM.
Built with Next.js
Vercel Postgres Sveltekit Starter
Simple Sveltekit template that uses Vercel Postgres as the database.
Built with Svelte
Vercel Postgres Nuxt Starter
Simple Nuxt template that uses Vercel Postgres as the database.
Built with Nuxt
Vercel Postgres + Kysely Starter
Next.js template with Vercel Postgres as the database and Kysely as the ORM.
Built with Next.js