DocumentationGetting StartedInstallation

Installation

Pick the package for your stack. The SDK works anywherefetch exists — browsers, Node 18+, edge runtimes.

Vanilla JS / any bundler

bash
npm install nullbackend-sdk

React / Next.js

bash
npm install nullbackend-react nullbackend-sdk react
react must be >= 18. nullbackend-react ships hooks, not components — no JSX config needed.

Next.js App Router — nothing extra

Works out of the box in both Server and Client Components. Hooks only work in Client Components (add "use client"), but the raw SDK can be called from Server Components directly.

Vite

bash
npm create vite@latest my-app -- --template react-ts
cd my-app
npm install nullbackend-react nullbackend-sdk react

Node.js 18+

bash
npm install nullbackend-sdk
No polyfills needed — Node 18 ships a global fetch.