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.
npx claude-code-templates@latest --setting statusline/neon-database-context 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..."
}
}