The @neondatabase/toolkit
A terse client for AI agents that can spin up Postgres in seconds and run SQL queries
What you will learn:
What is the @neondatabase/toolkit
How to get started
About the toolkit
The @neondatabase/toolkit (@neon/toolkit on JSR) is a terse client that lets you spin up a Postgres database in seconds and run SQL queries. It includes both the Neon TypeScript SDK and the Neon Serverless Driver, making it an excellent choice for AI agents that need to quickly set up an SQL database or test environments where manually deploying a new database isn't practical.
note
This is an experimental feature and is subject to change.
Getting started
With a few lines of code, you can create a Postgres database on Neon, run SQL queries, and tear down the database when you're done. Here's a quick look:
To run this:
Accessing the API Client
As with all of our experimental features, changes are ongoing. If you have any feedback, we'd love to hear it. Let us know via the Feedback form in the Neon Console or our feedback channel on Discord.