Auth Core
stackfoundry/auth-coreFreeBlock
Provider-neutral auth architecture, route layout, and provider selection guide for Clerk or Better Auth.
Install it
npx shadcn@latest add https://stackfoundry.dev/r/auth-core.jsonSource
1import { authLaunchChecks, authProviderOptions, authRouteGroups } from "@/lib/stackfoundry/auth-options";23export default function AuthArchitecturePage() {4 return (5 <main className="flex flex-col gap-6 p-6">6 <div>7 <h1 className="text-2xl font-semibold">Auth Architecture</h1>8 <p className="text-muted-foreground">9 Choose one primary auth provider, then keep route groups and authorization boundaries explicit.10 </p>11 </div>1213 <section className="grid gap-3 md:grid-cols-2">14 {authProviderOptions.map((provider) => (15 <div className="rounded-lg border p-4" key={provider.id}>16 <h2 className="font-medium">{provider.label}</h2>17 <p className="mt-2 text-sm text-muted-foreground">{provider.bestFor}</p>18 <code className="mt-3 block rounded border bg-muted p-2 text-xs">{provider.installCommand}</code>19 </div>20 ))}21 </section>2223 <section className="rounded-lg border p-4">24 <h2 className="font-medium">Recommended App Router layout</h2>25 <div className="mt-4 grid gap-3">26 {authRouteGroups.map((group) => (27 <div className="rounded-md border p-3 text-sm" key={group.path}>28 <code>{group.path}</code>29 <p className="mt-1 text-muted-foreground">{group.purpose}</p>30 </div>31 ))}32 </div>33 </section>3435 <section className="rounded-lg border p-4">36 <h2 className="font-medium">Before production</h2>37 <ul className="mt-3 grid gap-2 text-sm text-muted-foreground">38 {authLaunchChecks.map((check) => (39 <li key={check}>{check}</li>40 ))}41 </ul>42 </section>43 </main>44 );45}
What it pulls in
Other registry items
Files it writes
More from stackfoundry
All 157 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Deletionaccount-deletion | stackfoundry | Blocks | Free | no deps · 3 files | |
| Account Modesaccount-modes | stackfoundry | Blocks | Free | no deps · 3 files | |
| Account Settingsaccount-settings | stackfoundry | Blocks | Free | no deps · 2 files | |
| Admin Consoleadmin-console | stackfoundry | Blocks | Free | no deps · 2 files | |
| Agent-Ready Installsagent-ready-installs | stackfoundry | Blocks | Free | no deps · 13 files | |
| AI Chatai-chat | stackfoundry | Blocks | Free | 3 deps · 4 files | |
| AI Chatbot SDKai-chatbot-sdk | stackfoundry | Blocks | Free | 3 deps · 2 files | |
| AI Elementsai-elements | stackfoundry | Blocks | Free | no deps · 5 files |
