Neon is launching neon.ts, a TypeScript-based infrastructure-as-code config file for managing Neon projects. It lets developers declare Neon services (serverless Postgres, Data API, Auth, and upcoming functions/buckets/AI gateway), get type-safe environment variables via a parseEnv utility, and define branch configuration policies in TypeScript. The CLI commands neonctl config plan and neonctl config apply provision declared services, while neonctl checkout applies branch policies automatically. A notable DX feature encodes dependency rules between services as TypeScript type errors with human-readable fix suggestions, benefiting both developers and AI coding agents.

7m read timeFrom neon.com
Post cover image
Table of contents
Infrastructure as codeType-safe Neon environment variablesBranch configurationsA bit of TypeScript magicWrapping up
139.1K Impressions1 Comment