100 Next.js resources for developers
The Next.js ecosystem has shifted towards the App Router, Server Components, and Edge-ready architectures. This resource guide focuses on the specific tools and patterns required to build, deploy, and scale high-performance SaaS applications and AI-integrated platforms using the latest Next.js 14+ features.
Data Persistence and Server-Side Logic
- 1
Drizzle ORM
intermediatehighA lightweight TypeScript ORM that provides type-safety for SQL queries with zero overhead, ideal for serverless environments where cold starts matter.
- 2
Prisma Accelerate
intermediatestandardA connection pooler and global cache for Prisma users that solves the 'too many connections' error in serverless functions.
- 3
Next-Safe-Action
beginnerhighA library for defining type-safe Server Actions with Zod validation, ensuring inputs are sanitized before hitting your database.
- 4
React Server Components (RSC) Direct Fetching
intermediatehighPattern of fetching data directly within async components to eliminate the need for internal API routes and reduce client-side bundle size.
- 5
RevalidatePath Strategy
beginnerstandardUsing revalidatePath in Server Actions to trigger on-demand Incremental Static Regeneration (ISR) for immediate UI updates.
- 6
Unstable_cache API
advancedmediumNext.js internal API for caching expensive database queries or third-party API results across multiple requests and users.
- 7
Optimistic UI with useOptimistic
intermediatestandardImplementing the useOptimistic hook to provide instant feedback on UI changes while Server Actions process in the background.
- 8
Neon Serverless Postgres
beginnerhighA serverless Postgres database that scales to zero and integrates with the Next.js Edge Runtime via a specialized driver.
- 9
Turso LibSQL
intermediatemediumA distributed database based on SQLite, optimized for low-latency access in Edge Functions and global deployments.
- 10
Parallel Data Fetching
beginnerstandardUsing Promise.all() within Server Components to initiate multiple data requests simultaneously, reducing total page load time.
Authentication and Multi-tenancy
- 1
Clerk Next.js SDK
beginnerhighManaged authentication service providing pre-built components for user profiles, organization switching, and multi-factor auth.
- 2
Auth.js (NextAuth.v5)
intermediatehighOpen-source authentication library rewritten for the App Router, supporting edge-compatible sessions and diverse OAuth providers.
- 3
Middleware-based RBAC
advancedstandardImplementing Role-Based Access Control within middleware.ts to protect entire route segments based on JWT claims.
- 4
Kinde Auth
beginnermediumPurpose-built authentication for modern SaaS with native support for feature flags and multi-tenant environments.
- 5
Iron-Session
advancedstandardA Node.js stateless session utility using signed and encrypted cookies to store data, useful for custom auth implementations.
- 6
Stripe Connect for Multi-tenancy
advancedhighIntegrating Stripe Connect to allow platform users to accept payments, requiring complex account linking logic in Next.js routes.
- 7
Lucia Auth
intermediatemediumA library that abstracts the session management and database interaction, giving full control over the user schema.
- 8
Dynamic Subdomains in Middleware
advancedhighRewriting requests in middleware to support user-specific subdomains (e.g., tenant.yourapp.com) using the Vercel Platforms starter pattern.
- 9
PostHog Identity Linking
intermediatestandardSyncing Next.js auth state with PostHog to track user journeys across server-side events and client-side interactions.
- 10
Passkey Implementation
advancedmediumConfiguring WebAuthn support within Next.js apps to allow biometric logins, reducing friction for mobile and desktop users.
AI Integration and Performance
- 1
Vercel AI SDK
beginnerhighA set of tools to build AI-powered streaming interfaces with hooks like useChat and useCompletion for real-time UI updates.
- 2
Upstash Redis Rate Limiting
intermediatehighUsing the @upstash/ratelimit library in middleware to prevent AI API abuse and manage cost per user.
- 3
LangChain.js Integration
advancedhighOrchestrating complex chains and agents within Next.js Route Handlers to process document uploads and RAG workflows.
- 4
AI Stream UI Components
advancedhighLeveraging the SDK to stream actual React components instead of just text, allowing for dynamic generative interfaces.
- 5
Pinecone Vector DB Setup
intermediatemediumStoring and querying document embeddings within Next.js API routes to implement long-term memory for AI agents.
- 6
Edge Runtime for AI Streams
intermediatestandardConfiguring specific routes to use 'runtime: edge' to minimize TTFB (Time to First Byte) for streaming LLM responses.
- 7
shadcn/ui Data Tables
beginnerstandardUtilizing TanStack Table within shadcn/ui components to build high-performance, filterable dashboards for SaaS data.
- 8
Next.js Image Optimization with Cloudinary
beginnerstandardOffloading image processing to Cloudinary while using next/image for automatic layout shifting prevention and lazy loading.
- 9
SST (Serverless Stack) for Self-hosting
advancedmediumDeploying Next.js to AWS Lambda using SST to gain full control over infrastructure while maintaining serverless benefits.
- 10
Bundle Analyzer Integration
intermediatestandardUsing @next/bundle-analyzer to identify large client-side dependencies and move them to the server or dynamic imports.