Docs

SDKs

Framework packages and shared client surfaces for the Zitadel preview.

The preview publishes framework SDKs, shared UI components and a generated API client. They ship together in one release. Pick an SDK by how your app renders. Server frameworks proxy and verify sessions in middleware. Single-page app (SPA) frameworks render the same login and logout components behind a same-origin proxy.

Start with the CLI

Run npx @zitadel/cli@latest setup to set up an app. It scaffolds the right package and proxy for your framework. Use these SDK pages to review generated files, customize routes or integrate manually.

Server frameworks

Auth runs in framework middleware. It proxies /__nextgen/*, verifies the session and guards protected routes on the server.

SPA frameworks

The same shared login and logout components, rendered in the browser. They need a same-origin proxy for /__nextgen/*. The CLI wires one for local development. Production deployments supply their own.

Building blocks

Lower-level packages the framework SDKs are built on. Use them to embed the components directly or to call the API with a typed client.

Choosing an SDK

All packages ship on npm's latest tag in one release. Install the same version of all of them, for example pnpm add @zitadel/sdk-next@latest. A framework SDK (the first six rows) re-exports the widgets of its UI SDK from a /components entry, so one package is enough to import from. The SvelteKit, SolidStart and Qwik Router SDKs also need their UI SDK installed, because the framework's compiler plugin looks for it in the app's own package.json; the CLI adds both. Until 1.0.0, a minor version can break, and its release note marks it Breaking:.

FrameworkPackageRenderingSame-origin /__nextgen/* proxyCLI scaffolds
Next.js@zitadel/sdk-nextServer (App Router)Built into the SDK middlewareroutes + proxy.ts (or middleware.ts, by the Next version in package.json)
Nuxt@zitadel/sdk-nuxtServer (Nitro)Nitro server middlewarepages + module config in nuxt.config
SvelteKit@zitadel/sdk-sveltekitServer (SSR)handle server hooksrc/hooks.server.ts + routes
SolidStart@zitadel/sdk-solid-startServer (SSR)SolidStart request middlewaresrc/middleware.ts registered in vite.config.ts + routes
Qwik Router@zitadel/sdk-qwik-routerServer (SSR)Root onRequest pluginsrc/routes/plugin@zitadel.ts + routes
TanStack Start@zitadel/sdk-tanstack-startServer (SSR)Global request middlewaresrc/start.ts + routes
React@zitadel/sdk-reactSPAVite dev proxy / your deploy proxyVite proxy + auth UI
Vue@zitadel/sdk-vueSPAVite dev proxy / your deploy proxyVite proxy + auth UI
Angular@zitadel/sdk-angularSPAdev-server proxy / your deploy proxyproxy config + components
Solid@zitadel/sdk-solidSPAVite dev proxy / your deploy proxyVite proxy + auth UI
Svelte@zitadel/sdk-svelteSPAVite dev proxy / your deploy proxyVite proxy + auth UI
Qwik@zitadel/sdk-qwikSPAVite dev proxy / your deploy proxyVite proxy + auth UI
Components@zitadel/componentsWeb componentsn/a (wrapped by an SDK)—
API client@zitadel/apin/an/a—

The same-origin proxy is the one concept shared by every SDK. See SDK proxy for why /__nextgen/* must be same-origin and which call carries the project secret.

Was this helpful?