
fuse-nextjs
Expert Next.js 16 and React 19 guidance covering App Router, Prisma 7, and Better Auth together.
- version
- 1.1.31
- GitHub stars
- 36
What it does
- Adds the
nextjs-expertagent and 12 skills spanning Next.js 16, Prisma 7, Better Auth, TanStack Form, Zustand, and shadcn/ui - Covers Server versus Client Component boundaries, Server Actions, caching, Turbopack, and migration from Next.js 15
- Guides a modular layout with
app/route groups andmodules/feature folders, each split into interfaces, services, hooks, and stores - Designed for full-stack Next.js projects that need one stack reference for auth, database, forms, and UI together
Expert Next.js 16 + React 19 with App Router, Server Components, Prisma 7, Better Auth, TanStack Form, Zustand, shadcn/ui
Add marketplace
/plugin marketplace add fusengine/agentsRun it inside Claude Code once, then install the plugin below.
Install
/plugin install fuse-nextjs@fusengine-pluginsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceCovers the full surface — 40+ OAuth providers (Google, GitHub, Discord, Apple, Microsoft, and more), 20+ plugins (2FA, magic links, passkeys, organizations/multi-tenant, enterprise SSO/SAML, SCIM provisioning, Stripe/Polar billing, JWT/Bearer, API keys), and database adapters (Prisma, Drizzle, MongoDB, raw SQL). Also covers migration paths from Auth.js, Clerk, Auth0, Supabase, and WorkOS. While Better Auth itself is framework-agnostic, this skill's architecture guidance (proxy.ts, App Router API route) is Next.js-specific — for Prisma schema/query details see prisma-7.
Better Auth - Complete Authentication
TypeScript-first authentication library with 40+ OAuth providers and 20+ plugins.
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing auth setup and patterns
- fuse-ai-pilot:research-expert - Verify latest Better Auth docs via Context7/Exa
- mcp__context7__query-docs - Check providers/plugins availability
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
When to Use
- Implementing authentication in TypeScript/JavaScript applications
- Need OAuth providers (Google, GitHub, Discord, Apple, Microsoft, etc.)
- Adding 2FA, magic links, passkeys, or phone authentication
- Enterprise SSO with SAML, SCIM provisioning, or organizations
- Integrating payments with Stripe or Polar subscriptions
- Web3 authentication with Sign-In with Ethereum (SIWE)
- Migrating from Auth.js, Clerk, Auth0, Supabase, or WorkOS
Why Better Auth
| Feature | Benefit |
|---|---|
| Framework agnostic | Next.js, SvelteKit, Nuxt, Remix, Astro, Expo, NestJS |
| Plugin architecture | Add only the features you need (20+ plugins) |
| Full TypeScript | End-to-end type safety, inference included |
| Self-hosted | Your data stays on your infrastructure |
| Database flexible | Prisma, Drizzle, MongoDB, PostgreSQL, MySQL, SQLite |
| Enterprise ready | SSO, SCIM, organizations, audit logs |
Version Notes (current stable: 1.7.x)
| Since | Change |
|---|---|
| 1.5 | Standalone CLI npx auth@latest (generate, migrate, secret, init, check…) replaces @better-auth/cli; OAuth 2.1 Provider (@better-auth/oauth-provider) |
| 1.6 | session.freshAge computed from createdAt; oidcProvider deprecated |
| 1.7 | oidcProvider removed; generic OAuth providers use signIn.social (no genericOAuthClient); DB joins via advanced.database.joins; accounts keyed on (issuer, accountId); twoFactor.enable returns a method-discriminated response; MCP → @better-auth/mcp; SCIM decoupled from organization |
After upgrading to 1.7, regenerate the schema (npx auth@latest generate) and follow the official 1.7 upgrade guide.
Coverage
OAuth Providers (40+)
Google, GitHub, Discord, Apple, Microsoft, Slack, Spotify, Twitter/X, Facebook, LinkedIn, GitLab, Bitbucket, Dropbox, Twitch, Reddit, TikTok, and 25+ more documented in providers/.
Plugins (20+)
| Plugin | Purpose |
|---|---|
| 2FA | TOTP authenticator, backup codes |
| Magic Link | Passwordless email login |
| Passkey | WebAuthn biometric authentication |
| Organization | Multi-tenant, roles, invitations |
| SSO | Enterprise SAML/OIDC single sign-on |
| SCIM | Directory sync, user provisioning |
| Stripe | Subscription billing integration |
| API Key | Machine-to-machine authentication |
| JWT/Bearer | Token-based API authentication |
Database Adapters
Prisma, Drizzle, MongoDB, raw SQL (PostgreSQL, MySQL, SQLite), and community adapters.
SOLID Architecture (Next.js 16)
Components organized in modules/auth/ following separation of concerns:
- Services:
betterAuthconfiguration and initialization - Hooks:
createAuthClientfor client-side auth state - API Route:
app/api/auth/[...all]/route.tshandler - Proxy:
proxy.tsfor route protection (replaces middleware)
Reference Guide
| Need | Reference |
|---|---|
| Initial setup | installation.md, server-config.md |
| Client usage | client.md, session.md |
| OAuth providers | providers/overview.md, individual provider docs |
| Add plugins | plugins/overview.md, individual plugin docs |
| Database setup | adapters/prisma.md, adapters/drizzle.md |
| Enterprise SSO | plugins/sso.md, guides/saml-okta.md |
| Payments | plugins/stripe.md, plugins/polar.md |
| Migration | guides/clerk-migration.md, other migration guides |
| Complete examples | examples/ for full implementations |
Best Practices
- Plugins on demand - Only add plugins you actually need
- Type-safe client - Use generated types from server config
- Session caching - Enable session caching for performance
- Rate limiting - Configure rate limits for auth endpoints
- Secure cookies - Use secure, httpOnly, sameSite cookies
- Database indexes - Add indexes on user lookup fields
Concepts
Core concepts explained in concepts/:
- Sessions - Token management, refresh, revocation
- Database - Schema design, migrations, adapters
- Plugins - Extension system, composition
- OAuth - Provider configuration, callbacks
- Security - CSRF, rate limiting, password hashing
- Cookies - Session storage, cross-domain
Readme
fuse-nextjs
Expert Next.js 16 development with App Router, Server Components, Prisma 7, Better Auth, TanStack Form, Zustand, and shadcn/ui.
Agent
- nextjs-expert - Expert Next.js developer
Skills
| Skill | Description |
|---|---|
| solid-nextjs | SOLID principles for Next.js with modular architecture |
| nextjs-16 | App Router, Server Components, Server Actions, Caching |
| prisma-7 | Prisma ORM with Rust-free client, TypedSQL |
| better-auth | Authentication with sessions, OAuth, plugins |
| nextjs-tanstack-form | TanStack Form with Server Actions integration |
| nextjs-zustand | Zustand for Client Components with hydration |
| nextjs-shadcn | shadcn/ui with Field components |
Architecture
app/
├── (auth)/
├── (dashboard)/
├── api/
└── layout.tsx
modules/
├── cores/
│ ├── shadcn/components/ui/
│ ├── lib/
│ ├── hooks/
│ └── stores/
└── [feature]/
├── components/
└── src/
├── interfaces/
├── services/
├── hooks/
└── stores/
Installation
/plugin install fuse-nextjs
Usage
The agent activates when working with Next.js projects (next.config.*, app/layout.tsx).
Details
- Marketplace
- fusengine/agents
- Source
- plugins/nextjs-expert
- Author
- Fusengine
- Category
- Development
- License
- MIT
- Keywords
- nextjs, react, prisma, better-auth, tanstack-form, zustand, shadcn, app-router, server-components
- Listed since
- Apr 7, 2026
More from fusengine/agents
All 26- fuse-phpv1.0.12
- fuse-prompt-engineerv1.1.15
- fuse-reactv1.0.28
- fuse-rustv1.0.12
- fuse-securityv1.0.24
- fuse-seov1.0.19
- fuse-shadcn-uiv1.0.23
- fuse-solidv1.0.23
- fuse-statuslinev1.0.16
- fuse-swift-apple-expertv1.2.0
- fuse-tailwindcssv1.1.15
- fuse-tanstack-startv1.0.12
- fuse-typescriptv1.0.12
- fuse-ai-pilotv1.2.56
- fuse-astrov1.0.18
- fuse-cartographerv1.0.18
- fuse-changelogv1.0.17
- fuse-commit-prov1.2.33
- fuse-designv2.3.0
- fuse-devopsv1.0.1
- fuse-gov1.0.11
- fuse-hermesv1.0.2
- fuse-laravelv1.2.15
- fuse-lessonsv1.0.10
Similar to fuse-nextjs
More Frontend & UI Code
nextjssecondsky/claude-skills250 starsNext.js 16 with App Router, Server Components, Server Actions, Cache Components. Use for React 19.2 apps, SSR, or encountering async params, proxy.ts migration,
fuse-reactfusengine/agents36 starsExpert React 19 with hooks, TanStack Router, TanStack Form, Zustand, Testing Library, shadcn/ui, and SOLID principles
nextjs-expertdavepoon/buildwithclaude3.8K starsNext.js development expertise with skills for App Router, Server Components, Route Handlers, Server Actions, and authentication patterns
fuse-tanstack-startfusengine/agents36 starsExpert TanStack Start full-stack React framework: server functions, selective SSR, execution model, middleware, server routes, file-based routing with data load
jutsu-nextjsTheBushidoCollective/han201 starsAdvanced Next.js skills for App Router, Server Components, and data fetching.
frontend-excellencedotclaude/marketplace43 starsModern React and UI development. Master React 19, Next.js 15, component architecture, state management, and performance optimization.