My Next.js SaaS architecture tech stack as a solo developer
▲ 44 r/node+2 crossposts

My Next.js SaaS architecture tech stack as a solo developer

The goal of this diagram is to show how I structure my SaaS app as a solo developer.

This is not “the perfect stack”, and I don’t think every project needs all of this. The goal isn’t to say everyone should use the exact same tools, I'm just sharing an architecture that currently works well for me.

At a high level:

Frontend: Next.js, React, Tailwind CSS, shadcn/ui, React Hook Form, TypeScript

Backend: Node.js, oRPC, Zod for the frontend/backend contract

Database: PostgreSQL with Drizzle ORM

Auth: Clerk

Payments: Stripe

Emails: React Email

Observability: Sentry + LogTape

CI/CD and quality: ESLint, Vitest, Playwright, Knip, Storybook, GitHub Actions

I turned this architecture into an open-source GitHub project here: SaaS Boilerplate

u/ixartz — 2 days ago

The tech stack I've been refining for 6 years

After rebuilding my setup way too many times, I've finally landed on a stack that I don't want to change. Took 6 years to get here, so figured I'd share what works for me.

Here's where it's landed:

Framework: Next.js 16 (App Router) React 19. Server Components, App Router for routing.

Auth: Clerk Magic links, passkeys, MFA, social logins (Google, GitHub, Apple, etc.), user impersonation. It works perfectly with Next.js.

Database: DrizzleORM Type-safe ORM. Works with PostgreSQL, SQLite, MySQL - but personally I prefer PostgreSQL. Drizzle Studio for exploring data, Drizzle Kit for migrations.

Local dev: PGlite This one's underrated. Full Postgres running locally, no Docker needed.

Styling: Tailwind CSS Utility-first, fast iteration.

Forms: React Hook Form + Zod Zod schemas validate on client AND server. Type-safe end-to-end.

Testing: Vitest + Playwright Vitest in browser mode replaced React Testing Library for me. Playwright handles integration, E2E and visual regression. GitHub Actions runs everything on PRs automatically.

Logging: LogTape Universal and unified logging for Browser, server and edge.

Monitoring: Sentry + PostHog Sentry for errors (with Spotlight for local dev - game changer). PostHog for analytics and session replays.

i18n: next-intl Built-in internationalization from day one. i18n-check catches missing translations before they hit prod.

DX tooling:

  • ESLint
  • Lefthook for git hooks
  • Commitlint + Conventional commits for consistent commits
  • Knip for catching dead code
  • Semantic Release for changelogs
  • Dependabot for dependencies update

Security: Arcjet Rate limiting and bot protection without thinking about it.

I put this all together into a boilerplate I reuse all the time, a free and open source boilerplate. If anyone's curious, the whole thing is documented on Git Hub: ixartz / Next-js-Boilerplate

What does your stack look like? Curious if anyone's using different setups.

reddit.com
u/ixartz — 28 days ago
▲ 2 r/SaaS

I made a Free and Open Source SaaS Boilerplate: An Alternative to $500+ Paid Ones.

I built a free open-source SaaS boilerplate to help you ship faster without building the foundation.

It includes auth, teams, roles, permissions, MFA, user impersonation, i18n, database setup, logging, testing, and CI.

Built with Next.js, Tailwind CSS, Shadcn UI, Drizzle ORM, next-intl, Sentry, Vitest, and Playwright.

GitHub repo: Next.js SaaS Boilerplate

u/ixartz — 1 month ago
▲ 0 r/nextjs

I made a Free and Open Source Next.js SaaS Boilerplate built with Tailwind CSS + Shadcn UI. Features include Auth, Multi-tenancy & Team Support, Roles & Permissions, MFA, User Impersonation, Landing Page, I18n, DB, Logging, Testing.

It includes auth, multi-tenancy/team support, roles and permissions, MFA, user impersonation, landing page, i18n, database setup, logging, testing, and CI.

Stack: Next.js, Tailwind CSS, Shadcn UI, Drizzle ORM, next-intl, Sentry, Vitest, and Playwright.

The goal is to reduce repetitive scaffolding and make it easier to build real web apps faster, whether you’re coding manually or working with AI agents.

GitHub repo: Next.js SaaS Boilerplate

u/ixartz — 1 month ago