---
title: "Introducing @neon/sdk, our new TypeScript client for the Neon API"
description: "@neon/sdk is a fetch-based, zero-dependency, ESM-only TypeScript client for the Neon API, replacing the axios-based @neondatabase/api-client."
url: "https://swe.quest/articles/introducing-neon-sdk-our-new-typescript-client-for-the-neon-api-29d9cb594b8c1451"
canonical: "https://neon.com/blog/neon-sdk"
source: "Neon"
published: "2026-07-13"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 6
tags: ["typescript","api-design","postgres","developer-tools"]
---

# Introducing @neon/sdk, our new TypeScript client for the Neon API

A post on [Neon](https://swe.quest/sources/neon.md), published 2026-07-13, 6 min read, Announcement. Original: [https://neon.com/blog/neon-sdk](https://neon.com/blog/neon-sdk)

## Summary

@neon/sdk is a fetch-based, zero-dependency, ESM-only TypeScript client for the Neon API, replacing the axios-based @neondatabase/api-client. It has two layers: a raw surface generated from Neon's OpenAPI spec with Hey API, exposing every endpoint as a tree-shakeable function, and an ergonomic client that adds retries, readiness polling of background operations, pagination, errors as values and multi-step workflows. Examples include createAndConnect for projects and branches, snapshot restore with a preview callback that commits or rolls back, and cross-organization project transfer. Neon recommends it over the MCP server and CLI for programmatic integration such as CI/CD and platform provisioning, and the old client is not being deprecated.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- TypeScript ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- REST APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

@neon/sdk, Neon, OpenAPI, Hey API, @neondatabase/api-client, Neon Snapshots

## Related posts

- [Introducing neon.ts: infrastructure as code for your Neon projects](https://swe.quest/articles/introducing-neon-ts-infrastructure-as-code-for-your-neon-projects-a40f6e284c0cef8b.md): Neon · 2026-06-15 · Medium · 8 min read · Infrastructure as code, TypeScript, PostgreSQL, Serverless, Developer tools
  neon.ts is a TypeScript infrastructure-as-code file for Neon projects that declares services (Postgres, Neon Auth, Data API, with functions, buckets and an AI gateway coming under a preview block) and provisions them with \`neon config plan\` and \`neon config apply\`.
- [Announcing @neon/effect](https://swe.quest/articles/announcing-neon-effect-a662ae931c553237.md): Neon · 2026-10-01 · Medium · 4 min read · TypeScript, Resilience, PostgreSQL, Developer tools
  @neon/effect wraps the Neon SDK for Effect 4, keeping the same method names while returning Effects for API calls and Streams for paginated lists.
- [Give your agent Neon tools](https://swe.quest/articles/give-your-agent-neon-tools-25669ff9dbbd96d7.md): Neon · 2026-09-03 · Medium · 7 min read · AI agents, API design, TypeScript, PostgreSQL
  Neon's new @neon/tools package turns the ergonomic @neon/sdk client into typed agent tools, using Zod request schemas generated from the OpenAPI spec, with adapters for MCP, Mastra and Vercel's Eve.
- [Neon for Agent Platforms: A Companion Skill for the AI Agent Program](https://swe.quest/articles/neon-for-agent-platforms-a-companion-skill-for-the-ai-agent-program-6b42423040c5c41e.md): Neon · 2026-05-22 · Medium · 3 min read · PostgreSQL, Multi-tenancy, AI agents, Cloud platforms
  neon-for-agent-platforms is an open-source companion Agent Skill and set of TypeScript scripts for running fleets of Neon Postgres databases on agent platforms.
- [@neondatabase/serverless hits 1.0.0](https://swe.quest/articles/neondatabase-serverless-hits-1-0-0-d5430675bc92b751.md): Neon · 2025-03-25 · Medium · 5 min read · PostgreSQL, Serverless, TypeScript, Application security, JavaScript
  Neon's JavaScript/TypeScript serverless driver, which carries Postgres queries over HTTP and WebSockets for environments without raw TCP such as V8 isolates and browsers, reaches 1.0.0 after a refactor that adds auto-generated types via api-extractor and CI tests across Node, Bun, Deno, browsers, Cloudflare Workers, Vercel and the Prisma/Drizzle adapters.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
