neon

star 0

Neon serverless PostgreSQL integration using @neondatabase/serverless. Use when implementing database operations with Neon.

rand-tech By rand-tech schedule Updated 1/30/2026

name: neon description: Neon serverless PostgreSQL integration using @neondatabase/serverless. Use when implementing database operations with Neon.

Neon Integration

Neon is a serverless PostgreSQL database.

Guidelines

  • Use the @neondatabase/serverless package to interact with a Neon database.

  • Use the neon(...) function to create a reusable SQL client:

    import { neon } from '@neondatabase/serverless'
    
    const sql = neon(process.env.DATABASE_URL)
    
  • NEVER use the @vercel/postgres package to interact with a Neon database.

  • Use parameterized queries to prevent SQL injection.

Environment Variables

  • DATABASE_URL - Neon connection string

Example Usage

import { neon } from '@neondatabase/serverless'

const sql = neon(process.env.DATABASE_URL)

// Query example
const users = await sql`SELECT * FROM users WHERE id = ${userId}`

// Insert example
await sql`INSERT INTO users (name, email) VALUES (${name}, ${email})`
Install via CLI
npx skills add https://github.com/rand-tech/v0-skills --skill neon
Repository Details
star Stars 0
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator