clerk-tanstack-patterns

Community

Secure TanStack React Start apps using Clerk.

AuthorRoyMcCrain
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Developers need a straightforward way to enforce Clerk authentication across TanStack React Start projects, handling server‑side guards, loaders, and API routes without repetitive boilerplate.

Core Features & Use Cases

  • Route Guard Templates: Ready‑to‑use beforeLoad checks that redirect unauthenticated users.
  • Server Function Helpers: Pre‑defined createServerFn patterns for auth, org data, and protected API handlers.
  • Vinxi Middleware Integration: Simple setup of clerkMiddleware in the start file to enable auth() throughout the server.

Quick Start

Add a beforeLoad guard using Clerk's auth() to protect the /dashboard route.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: clerk-tanstack-patterns
Download link: https://github.com/RoyMcCrain/dotsfile/archive/main.zip#clerk-tanstack-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.