BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/neon-ui/neon-client

Neon Client

neon-ui/neon-client
FreeUtility

Shared Neon API client factory used by neon-ui data hooks.

Install it

npx shadcn@latest add https://ui.neon.com/r/neon-client.json

Source

src/lib/neon-client.tsui.neon.com/r/neon-client.json
1import { createNeonClient as createSdkClient } from "@neon/sdk";
2
3/**
4 * Shared Neon API client factory for neon-ui data hooks.
5 *
6 * Wraps `@neon/sdk`, the official TypeScript SDK for the Neon API. Methods are
7 * grouped into resource namespaces (`neon.branches`, `neon.postgres.endpoints`,
8 * `neon.consumption`, ...) and resolve to `{ data, error }` rather than
9 * throwing, so a failed call is handled where it happens.
10 *
11 * The API key must come from the server side (route handler, server
12 * component, or server function). Never expose NEON_API_KEY to the browser;
13 * browser-facing components should receive data as props or go through the
14 * Data API, which is designed for untrusted clients.
15 */
16export const createNeonClient = (apiKey: string) => {
17 if (!apiKey) {
18 throw new Error(
19 "neon-ui: missing Neon API key. Pass process.env.NEON_API_KEY from server-side code."
20 );
21 }
22
23 return createSdkClient({ apiKey });
24};
25
26export type NeonClient = ReturnType<typeof createNeonClient>;

What it pulls in

npm packages

  • @neon/sdk

Files it writes

  • src/lib/neon-client.ts

Facts

Registry
neon-ui
Type
registry:lib
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ui.neon.com neondatabase/ui on GitHub Raw registry item This item as JSON

More from neon-ui

All 77 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Consumption metricsconsumptionneon-uiUtilitiesFreeno deps
cn utilityutilsneon-uiUtilitiesFree2 deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex