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.
Next.js
Middleware, same-origin proxying, server auth, and App Router helpers.
Nuxt
Nitro middleware, runtime config, plugins, and server-side session access.
SvelteKit
A server hook for proxying, session checks, and protected routes.
SolidStart
Request middleware for SolidStart 2, with client-only login components.
Qwik Router
An onRequest plugin for Qwik Router on Qwik 2.
TanStack Start
Global request middleware, route guards, and typed React components.
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.
React
Client-side sign-in and sign-out components for Vite and other SPA deployments.
Vue
Vue 3 wrappers around the shared login/logout components.
Angular
Standalone Angular components for the shared Zitadel auth UI.
Solid
Solid wrappers around the shared login/logout components.
Svelte
Svelte 5 wrappers around the shared login/logout components.
Qwik
Qwik wrappers with QRL flow callbacks around the shared auth UI.
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.
Components
Lit web components, including the login component that every framework SDK uses.
API client
Generated TypeScript endpoint functions, models, Zod schemas, and MSW helpers.
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:.
| Framework | Package | Rendering | Same-origin /__nextgen/* proxy | CLI scaffolds |
|---|---|---|---|---|
| Next.js | @zitadel/sdk-next | Server (App Router) | Built into the SDK middleware | routes + proxy.ts (or middleware.ts, by the Next version in package.json) |
| Nuxt | @zitadel/sdk-nuxt | Server (Nitro) | Nitro server middleware | pages + module config in nuxt.config |
| SvelteKit | @zitadel/sdk-sveltekit | Server (SSR) | handle server hook | src/hooks.server.ts + routes |
| SolidStart | @zitadel/sdk-solid-start | Server (SSR) | SolidStart request middleware | src/middleware.ts registered in vite.config.ts + routes |
| Qwik Router | @zitadel/sdk-qwik-router | Server (SSR) | Root onRequest plugin | src/routes/plugin@zitadel.ts + routes |
| TanStack Start | @zitadel/sdk-tanstack-start | Server (SSR) | Global request middleware | src/start.ts + routes |
| React | @zitadel/sdk-react | SPA | Vite dev proxy / your deploy proxy | Vite proxy + auth UI |
| Vue | @zitadel/sdk-vue | SPA | Vite dev proxy / your deploy proxy | Vite proxy + auth UI |
| Angular | @zitadel/sdk-angular | SPA | dev-server proxy / your deploy proxy | proxy config + components |
| Solid | @zitadel/sdk-solid | SPA | Vite dev proxy / your deploy proxy | Vite proxy + auth UI |
| Svelte | @zitadel/sdk-svelte | SPA | Vite dev proxy / your deploy proxy | Vite proxy + auth UI |
| Qwik | @zitadel/sdk-qwik | SPA | Vite dev proxy / your deploy proxy | Vite proxy + auth UI |
| Components | @zitadel/components | Web components | n/a (wrapped by an SDK) | — |
| API client | @zitadel/api | n/a | n/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?