Back to Settings

Neon Database Context

Settings statusline 62

Neon database context statusline showing project name, active branch, compute state, and autoscaling CU range. Uses only Neon REST API (no SQL connections needed). Helps avoid mistakes like running migrations on the wrong branch. Setup: Export NEON_API_KEY and NEON_PROJECT_ID as environment variables, or add them to your project's .env file. Get your API key from console.neon.tech and project ID from your Neon dashboard.

Install Command
npx claude-code-templates@latest --setting statusline/neon-database-context
View on GitHub
claude-code — neon-database-context

Content

JSON
{
"description": "Neon database context statusline showing project name, active branch, compute st..."
"statusLine": {
"type": "command"
"command": "bash -c 'input=$(cat); DIR=$(echo "$input" | jq -r ".workspace.current_dir" 2>/d..."
}
}

Stack Builder

0 components

Your stack is empty

Browse components and click the + button to add them to your stack for easy installation.