Neon Functions

Deploys and manages long-running, serverless Node.js HTTP functions next to your Neon Postgres database.

The Neon Functions skill enables developers to define, run locally, deploy, and manage long-running Node.js HTTP handlers directly on their Neon database branches. Perfect for WebSockets, Server-Sent Events (SSE), API backends, and streaming AI agents, it bypasses traditional lambda execution caps while automatically injecting database connection strings and scaling to zero when idle.

Características Principales

01Integrates seamlessly with local development environments using a hot-reloading 'neon dev' server loop.
02Defines infrastructure-as-code using the central neon.ts configuration schema to manage branch-specific routing.
03Supports stateful streaming using WebSockets and Server-Sent Events (SSE) without external state stores.
04Deploys long-running Node.js HTTP functions directly onto database branches with automated Postgres connection injection.
05Provides automated branch isolation, giving every preview, CI, and dev branch a self-contained API and database state.
0676 GitHub stars

Casos de Uso

01Building streaming AI agents that make multiple LLM calls and require long-running execution without timeouts.
02Hosting a lightweight WebSocket server or real-time SSE endpoint co-located directly with database compute.
03Creating database-adjacent webhook handlers and API endpoints that deploy securely with database schema migrations.