zitadel-sdk-tanstack-start SKILL.md skillA

zitadel-sdk-tanstack-start from zitadel/nextgen is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add zitadel/nextgen/zitadel-sdk-tanstack-start@git:20261021.ab19e1e

Pins git:20261021.ab19e1e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
zitadel/nextgen
Path
packages/sdk-tanstack-start/skills/zitadel-sdk-tanstack-start/SKILL.md
Versions recorded
5
Latest version
git:20261021.ab19e1e, committed Oct 21, 2026
First version recorded
Oct 19, 2026
Size
6,300 bytes
Repository stars
27
License
AGPL-3.0

Integrate Zitadel authentication into an existing or custom TanStack Start app with @zitadel/sdk-tanstack-start. Use when the user wants login, logout, session handling, or protected routes in a TanStack Start (React) app and is wiring the SDK by hand rather than letting the CLI scaffold a fresh project — registering the request middleware in `src/start.ts`, guarding a route with a server function, or rendering the `ZitadelLogin` / `ZitadelSession` widgets.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# @zitadel/sdk-tanstack-start

TanStack Start request middleware and helpers that add Zitadel (Nextgen) auth to
a TanStack Start app. The middleware proxies auth traffic same-origin under
`/__nextgen`, verifies the session JWT via JWKS on the server, places the result
on the request context as `nextgenAuth`, and redirects unauthenticated requests
on protected routes. Unlike the other meta-framework SDKs it also ships the
widgets (a `/react` entry), so no other Zitadel package is needed.

## When to use

The `zitadel` CLI (`zitadel setup --framework tanstack-start`) scaffolds
`src/start.ts`, login/register/profile routes, and `.env.local` into a fresh or
detected TanStack Start project — prefer it for greenfield work. Reach for
**this skill** when you are adding auth to an **existing or custom** TanStack
Start app by hand, or adjusting a scaffolded wiring.

## Install

```bash
pnpm add @zitadel/sdk-tanstack-start@latest
```

Peer deps: `@tanstack/react-start >=1.168.10`, `react >=18`, `react-dom >=18`.

## Integrate

**1. Request middleware.** Register it in `src/start.ts`, the file TanStack Start
auto-loads, via `requestMiddleware`. Having this file turns off the automatic
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add zitadel/nextgen/zitadel-sdk-tanstack-start@sha256:f6fe7475d5e3545f

The line at the top of this page pins the label git:20261021.ab19e1e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_e4dm4l4w7ih4k6ir.svg)](https://markdownregistry.com/a/art_e4dm4l4w7ih4k6ir)

0 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Oct 19, 2026 and Oct 21, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20261021.ab19e1e latest2026-10-21 ab19e1e 6,300 BA view · diff
git:20261020.be439bc2026-10-20 be439bc 6,299 BA view · diff
git:20261019.12b32262026-10-19 12b3226 6,292 BA view · diff
git:20261019.c1ec7ca2026-10-19 c1ec7ca 6,137 BA view · diff
git:20261019.7f82bfc2026-10-19 7f82bfc 5,915 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6300 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

zitadel/nextgen · 27 stars · license AGPL-3.0 · pushed 2026-10-22 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_e4dm4l4w7ih4k6ir
GET https://markdownregistry.com/api/v1/resolve?ref=zitadel/nextgen/zitadel-sdk-tanstack-start
GET https://markdownregistry.com/api/v1/blob/f6fe7475d5e3545f8736dd5e8158f740bc3fb01e858b4e0077d643390cbd1c73

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from zitadel/nextgen

.cursorrules Cursor rule
zitadel/nextgen · .cursorrules
git:20261014.2e7bbe8 · audit A · 27 stars
AGENTS.md@.moon AGENTS.md file
zitadel/nextgen · .moon/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md AGENTS.md file
zitadel/nextgen · AGENTS.md
git:20261017.9e45fa5 · audit A · 27 stars
AGENTS.md@api/openapi AGENTS.md file
zitadel/nextgen · api/openapi/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps AGENTS.md file
zitadel/nextgen · apps/AGENTS.md
git:20261015.74f0bb1 · audit A · 27 stars
AGENTS.md@apps/cli AGENTS.md file
zitadel/nextgen · apps/cli/AGENTS.md
git:20261016.c9fd392 · audit A · 27 stars
zitadel-cli SKILL.md skill
zitadel/nextgen · apps/cli/skills/zitadel-cli/SKILL.md · Set up and manage Zitadel authentication in a local project with the agent-friendly `zitadel` CLI. Use when the user…
git:20261018.eef798c · audit A · 27 stars
AGENTS.md@apps/cli/src/lib/local-server AGENTS.md file
zitadel/nextgen · apps/cli/src/lib/local-server/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps/cli/tests AGENTS.md file
zitadel/nextgen · apps/cli/tests/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps/console AGENTS.md file
zitadel/nextgen · apps/console/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars
AGENTS.md@apps/docs AGENTS.md file
zitadel/nextgen · apps/docs/AGENTS.md
git:20261021.9b24d6e · audit A · 27 stars
AGENTS.md@apps/storybook AGENTS.md file
zitadel/nextgen · apps/storybook/AGENTS.md
git:20261020.8d47d7a · audit A · 27 stars

Every file in zitadel/nextgen

Browse by kind, by grade A, or by owner.