neon-toolkit

द्वारा neondatabase

परीक्षण, CI/CD पाइपलाइनों और पृथक विकास वातावरणों के लिए अस्थायी Neon डेटाबेस बनाता और प्रबंधित करता है। अस्थायी डेटाबेस बनाते समय उपयोग करें...

npx skills add https://github.com/neondatabase/ai-rules --skill neon-toolkit

Neon Toolkit Skill

Automates creation, management, and cleanup of temporary Neon databases using the Neon Toolkit.

When to Use

  • Creating fresh databases for each test run
  • Spinning up databases in CI/CD pipelines
  • Building isolated development environments
  • Rapid prototyping without manual setup

Not recommended for: Production databases, shared team environments, local-only development (use Docker), or free tier accounts (requires paid projects).

Code Generation Rules

When generating TypeScript/JavaScript code:

  • BEFORE generating import statements, check tsconfig.json for path aliases (compilerOptions.paths)
  • If path aliases exist (e.g., "@/": ["./src/"]), use them (e.g., import { x } from '@/lib/utils')
  • If NO path aliases exist or unsure, ALWAYS use relative imports (e.g., import { x } from '../../../lib/utils')
  • Verify imports match the project's configuration
  • Default to relative imports - they always work regardless of configuration

Reference Documentation

Primary Resource: See [neon-toolkit.mdc](https://raw.githubusercontent.com/neondatabase-labs/ai-rules/main/neon-toolkit.mdc) in project root for comprehensive guidelines including:

  • Core concepts (Organization, Project, Branch, Endpoint)
  • Installation and authentication setup
  • Database lifecycle management patterns
  • API client usage examples
  • Error handling strategies

Quick Setup

Installation

npm install @neondatabase/toolkit

Basic Usage

import { NeonToolkit } from '@neondatabase/toolkit';

const neon = new NeonToolkit({ apiKey: process.env.NEON_API_KEY! });

// Create ephemeral database
const db = await neon.createEphemeralDatabase();
console.log(`Database URL: ${db.url}`);

// Use the database...

// Cleanup
await db.delete();

Templates & Scripts

  • templates/toolkit-workflow.ts - Complete ephemeral database workflow
  • scripts/create-ephemeral-db.ts - Create a temporary database
  • scripts/destroy-ephemeral-db.ts - Clean up ephemeral database

Common Use Cases

Testing

const db = await neon.createEphemeralDatabase();
// Run tests with fresh database
await db.delete();

CI/CD Integration

export NEON_API_KEY=${{ secrets.NEON_API_KEY }}
npm test  # Uses ephemeral database

Related Skills

  • neon-serverless - For connecting to databases
  • neon-drizzle - For schema and migrations

Want best practices in your project? Run neon-plugin:add-neon-docs with parameter SKILL_NAME="neon-toolkit" to add reference links.

neondatabase की और Skills

claimable-postgres
neondatabase
स्थानीय विकास, डेमो, प्रोटोटाइपिंग और परीक्षण वातावरण के लिए तत्काल Postgres डेटाबेस। खाते की आवश्यकता नहीं है। डेटाबेस 72 घंटे के बाद समाप्त हो जाते हैं जब तक कि किसी Neon खाते में दावा न किया जाए।
neon
neondatabase
Neon प्लेटफ़ॉर्म का अवलोकन, जो ऐप्स और एजेंटों के लिए Postgres, Auth, Data API, और नई सेवाओं: Object Storage, Compute Functions, और AI Gateway को शामिल करता है। जब भी "Neon" का उल्लेख हो, इसका उपयोग Neon के साथ काम करने और शुरू करने के तरीके के अवलोकन के लिए करें। अन्यथा, व्यक्तिगत क्षमताएँ ट्रिगर हैं: "object storage" या "S3-compatible storage", "serverless functions", "background jobs", या "run code near my database", "AI gateway", "LLM proxy", "model routing", या "call an LLM" →...
apidatabasedevelopment
plugin-manager
neondatabase
इस रिपॉजिटरी के लिए Cursor और Claude Code दोनों में प्लगइन संरचना और कॉन्फ़िगरेशन प्रबंधित करें। प्लगइन फ़ोल्डर बनाते, अपडेट करते या समीक्षा करते समय उपयोग करें…
skill-creator
neondatabase
प्रभावी कौशल बनाने के लिए मार्गदर्शिका। इस कौशल का उपयोग तब किया जाना चाहिए जब उपयोगकर्ता एक नया कौशल बनाना (या मौजूदा कौशल को अपडेट करना) चाहते हैं जो Claude की क्षमताओं को बढ़ाता है…
using-neon
neondatabase
Neon Serverless Postgres के साथ काम करने के लिए मार्गदर्शिकाएँ और सर्वोत्तम अभ्यास। इसमें आरंभ करना, Neon के साथ स्थानीय विकास, कनेक्शन विधि चुनना, Neon… शामिल है।
neon-js-react
neondatabase
React ऐप्स (Vite, CRA) में प्रमाणीकरण और डेटाबेस क्वेरी के साथ पूर्ण Neon SDK सेट करता है। टाइप किया गया क्लाइंट बनाता है, डेटाबेस प्रकार उत्पन्न करता है, और कॉन्फ़िगर करता है…
postgres-best-practices
neondatabase
पोस्टग्रेस के साथ काम करने के लिए सर्वोत्तम प्रथाएँ और दिशानिर्देश। इसमें स्कीमा डिज़ाइन, इंडेक्सिंग रणनीतियाँ, क्वेरी ऑप्टिमाइज़ेशन, माइग्रेशन और सामान्य समस्याएँ शामिल हैं। उपयोग…
neon-postgres-egress-optimizer
neondatabase
उपयोगकर्ता को उनके Postgres डेटाबेस से अत्यधिक डेटा स्थानांतरण (एग्रेस) का कारण बनने वाले एप्लिकेशन-साइड क्वेरी पैटर्न के निदान और सुधार में मार्गदर्शन करें। अधिकांश उच्च एग्रेस बिल एप्लिकेशन द्वारा आवश्यकता से अधिक डेटा लाने के कारण आते हैं।