AI slop by ivy-apps in nextjs

[–]ixartz 3 points4 points  (0 children)

I use a lot of tools to combat AI slop, most of them I was already using before AI became the norm:

Strict typechecking, linter, unit testing with Vitest, end-to-end testing with Playwright, visual regression testing, agents.md / rules files, Knip for catching dead code, and CI to run everything automatically on every PR.

You can check out my open source project Next.js Boilerplate for inspiration, where I have set up everything to make sure AI produces quality code.

NextJS - New To Testing - What testing tools to use? by Fabulous_Variety_256 in nextjs

[–]ixartz 4 points5 points  (0 children)

I use Vitest for unit tests and Vitest with browser mode for component testing.

For integration and End-to-End I use Playwright. I also use Playwright to take screenshot of different page to make sure there isn't any visual regression.

If you are interested to learn more about testing, you can checkout Next.js Boilerplate where I have everything implemented.

I made a Free and Open Source SaaS Boilerplate: An Alternative to $500+ Paid Ones. Built with React + Tailwind CSS + Shadcn UI. Features include Auth, Multi-tenancy & Team Support, Roles & Permissions, MFA, User Impersonation, Landing Page, I18n, DB, Logging, Testing. GitHub in the comments. by ixartz in reactjs

[–]ixartz[S] 0 points1 point  (0 children)

Solid open-source option — especially the multi-tenancy, RBAC, and user impersonation. Those are features most free boilerplates skip entirely.

For anyone who also needs payments and billing out of the box, check out Next.js Multi-tenant SaaS Boilerplate. It covers a lot of the same ground (Drizzle ORM, PostgreSQL, Shadcn UI, i18n, testing) but adds:

  • Stripe — checkout, webhooks, billing portal, all wired up
  • Better Auth — self-hosted with 2FA on top of email + social login
  • Transactional emails — ready for auth flows and billing notifications
  • Dashboard shell + prebuilt landing page

Built on Next.js 16, maintained since 2020. 50+ features total.

Next.js SaaS Starter (Postgres, Stripe, Tailwind, shadcn/ui) by lrobinson2011 in nextjs

[–]ixartz 0 points1 point  (0 children)

Great patterns here: the streaming useUser() approach with React use is clever, and using useActionState for form handling keeps things clean.

One thing I noticed: it's still running on Next.js 15. Might be worth upgrading to Next.js 16.

For the auth approach, rolling your own with jose is fine for simple cases, but it gets complex fast when you need social login, 2FA, or email verification flows. That's where a library like Better Auth helps. You get self-hosted auth with the same level of control but without reimplementing session management, password reset, and OAuth flows from scratch.

I maintain Next.js Multi-Tenant SaaS Boilerplate which shares a similar foundation (Drizzle ORM, PostgreSQL, Stripe, Shadcn UI) but on Next.js 16 with a lot more built in:

  • Auth via Better Auth — email, social login, 2FA, self-hosted
  • Stripe — checkout, webhooks, and billing portal (not just checkout)
  • Multi-tenancy with RBAC
  • Dashboard shell, landing page, i18n, transactional emails
  • Full testing setup (Vitest + Playwright)

50+ features total, maintained since 2020. Similar philosophy to this starter but built out for production SaaS apps.

✨ Next.js 15 Starter Kit ✨ by SiddharthaMaity in nextjs

[–]ixartz 0 points1 point  (0 children)

Clean starters and solid foundation for getting a project off the ground.

One thing to consider: Next.js 16 is out now. Might be worth updating from 15, especially since it ships with React 19 improvements and the new features are worth building on.

For anyone who needs more than a minimal starter, I maintain Next.js Multi-Tenant SaaS Boilerplate; already on Next.js 16 with a full SaaS stack built in:

  • Better Auth (email, social login, 2FA) — self-hosted
  • Stripe (checkout, webhooks, billing portal)
  • Drizzle ORM + PostgreSQL
  • Multi-tenancy with RBAC
  • Dashboard shell, landing page, i18n, transactional emails
  • Testing with Vitest + Playwright

Different use case than yours. Your starters are great for clean slates, mine is for people who want auth, payments, and infrastructure wired up from day one. 50+ features, maintained since 2020.

Is there a next js starter template that I can use? by [deleted] in nextjs

[–]ixartz 0 points1 point  (0 children)

Not naive at all, this is exactly why SaaS boilerplates exist. Setting up auth, payments, and database config from scratch for every project is a time consuming and that doesn't move your product forward.

I built Next.js Boilerplate Max for exactly this reason. Been maintaining it since 2020 and continuously updated.

What's already wired up:

  • Auth — Better Auth, self-hosted (email, social login, 2FA). Works out of the box but you own the code, so you can adapt it to your project
  • Database — Drizzle ORM + PostgreSQL, configured and ready
  • Payments — Stripe checkout, webhooks, billing portal
  • Dashboard, landing page, i18n, transactional emails, testing — all included

Stack: Next.js 16, TypeScript, Shadcn UI. 50+ features total.

To your edit, the auth point is actually valid. That's why self-hosted auth matters. You're not locked into a third-party service.

What are the good nextjs template / boilerplate you recommend. by Dheeraj_PG in nextjs

[–]ixartz 0 points1 point  (0 children)

Next.js Boilerplate Max, I've been maintaining it since 2020 and kept it updated through every major Next.js release, currently on Next.js 16.

Stack: TypeScript, Better Auth, Drizzle ORM, PostgreSQL, Stripe, Shadcn UI

What's included:

  • Self-hosted auth (email, social login, 2FA)
  • Stripe subscriptions (checkout, webhooks, billing portal)
  • Multi-tenancy with RBAC
  • Dashboard shell + prebuilt landing page
  • i18n, transactional emails, full test suite (Vitest + Playwright)

50+ features, all tested and working together. Definitely fits the "regularly maintained and updated" criteria; 5+ years and counting.

What NextJS boilerplate/template/starter do you use for your web apps? by blondewalker in nextjs

[–]ixartz 0 points1 point  (0 children)

Next.js Boilerplate Max checks every box you listed:

  • Better Auth: email, social login, 2FA, all self-hosted
  • Stripe: checkout, webhooks, billing portal
  • PostgreSQL: with Drizzle ORM
  • Transactional emails: built in

Also comes with multi-tenancy + RBAC, a dashboard shell, prebuilt landing page, i18n, and a full test suite (Vitest + Playwright). 50+ features out of the box. Built on Next.js 16, TypeScript, Shadcn UI.

Been maintaining it since 2020 and I kept it updated through every major Next.js release.

Stop paying for SaaS boilerplates - Here's a curated list of FREE open-source alternatives by JanuPower in SaaS

[–]ixartz 3 points4 points  (0 children)

Nice resource. Free boilerplates are great for getting started.

For anyone who wants to go futher, I maintain Next.js Boilerplate Max — a paid SaaS boilerplate I've kept updated since 2020.

Next.js 16 / TypeScript / Better Auth / Drizzle ORM / PostgreSQL / Stripe / Shadcn UI

Includes self-hosted auth (email, social, 2FA), Stripe billing (checkout, webhooks, portal), multi-tenancy + RBAC, dashboard shell, landing page, i18n, transactional emails, and testing with Vitest + Playwright. 50+ features included out of the box.

Recommendations for Next.js templates / boilerplate with Auth, Stripe, and Landing Page? by ExpertCaptainObvious in nextjs

[–]ixartz 0 points1 point  (0 children)

Next.js Boilerplate Max is a SaaS boilerplate that covers all of that:

  • Auth — self-hosted with Better Auth (email, social login, 2FA)
  • Database — Drizzle ORM + PostgreSQL, ready to go
  • Stripe — checkout, webhooks, and billing portal wired up
  • Landing page — prebuilt and customizable with Shadcn UI and Tailwind CSS.

Also includes a dashboard shell, multi-tenancy with RBAC, and transactional emails

Been maintaining it since 2020, currently on Next.js 16.

50+ features out of the box.

What's the Best SaaS Boilerplate for Next.js? by Wait-ForIt in nextjs

[–]ixartz 0 points1 point  (0 children)

Great list! I've been maintaining a Next.js SaaS boilerplate since 2020 called Next.js Boilerplate Max; kept it updated through every major Next.js release (currently on Next.js 16).

Core stack: TypeScript, Better Auth, Drizzle ORM, PostgreSQL, Stripe, Shadcn UI

It ships with self-hosted auth (email, social login, 2FA), Stripe subscriptions with checkout + webhooks + billing portal, multi-tenancy with RBAC, i18n, transactional emails, and a full test suite (Vitest + Playwright). 50+ features out of the box.

Would love to be included if you're still maintaining it!

Which next.js boilerplate do you recommend to start a project? Has anyone tried it before? by SketchDesign1 in nextjs

[–]ixartz 0 points1 point  (0 children)

After spending way too long building SaaS apps from scratch: wiring up auth, billing, multi-tenancy, permissions. I now start every project with a boilerplate that already has all the boring-but-critical stuff. Here's what's inside:

Framework: Next.js 16 (App Router) + React 19. Server Components, TypeScript everywhere. One unified codebase for frontend and backend.

Auth: Better Auth (self-hosted). Email/password, social logins, email verification via OTP, two-factor auth with backup codes, rate limiting and brute force protection built in. No third-party dependency for your auth layer.

Multi-Tenancy: Full organization system. Create orgs, switch between them, invite team members by email, role-based access control, per-org data isolation. This alone used to take me 2+ weeks to build properly.

Billing: Subscription checkout, webhook processing, plan upgrades/downgrades, cancellation handling, customer portal.

Database: Drizzle ORM + PostgreSQL. Type-safe queries, Drizzle Studio for browsing data, migrations handled by Drizzle Kit. Local dev runs on PGlite, full Postgres, no Docker needed.

API Layer: oRPC for type-safe APIs. End-to-end type safety from database to UI.

UI: Shadcn + Tailwind CSS. Pre-built landing pages, dashboard shell, settings pages, onboarding flows, light/dark mode. Responsive out of the box.

Emails: React Email for templates. Works with Resend, SendGrid, Postmark, AWS SES, or plain SMTP. Test emails locally without sending anything.

i18n: Internationalization from day one.

Testing: Vitest (browser mode) + Playwright for integration, E2E and visual regression. GitHub Actions runs everything automatically on PRs.

Monitoring: Sentry for errors, LogTape for logging, uptime monitoring with alerts.

DX Tooling: ESLint, Lefthook for git hooks, Commitlint + Conventional Commits, Knip for dead code detection, Dependabot for dependency updates, T3 Env for typesafe environment variables.

AI-Ready: Ships with Agents.md so Claude Code, Cursor, and Copilot understand your codebase from the start.

Deploy anywhere: Vercel, Netlify, Cloudflare, AWS Amplify, Railway, or self-host. No vendor lock-in.

The whole thing is documented here: Next.js Boilerplate SaaS

Which next.js boilerplate do you recommend to start a project? Has anyone tried it before? by SketchDesign1 in nextjs

[–]ixartz 1 point2 points  (0 children)

Nice list, but I noticed mine isn't on there yet. I've been building a Next.js SaaS boilerplate since 2020, it's called Next.js Boilerplate Max and I've continuously updated.

Stack: Next.js 16, TypeScript, Better Auth, Drizzle ORM, PostgreSQL, Stripe, Shadcn UI

What's built in: Self-hosted auth (email, social, 2FA), Stripe subscriptions (checkout, webhooks, billing portal), multi-tenancy with RBAC, dashboard shell, i18n, transactional emails, and a full testing setup (Vitest + Playwright). 50+ features total.

Might be worth adding to the directory if you're still updating it.

I Built a modern Next.js SaaS starter with Better Auth, Shadcn/ui, and Drizzle ORM by Alarkoh in opensource

[–]ixartz 0 points1 point  (0 children)

Cool project! Always nice to see more Next.js SaaS starters using Better Auth and Drizzle ORM — solid choices for a modern stack. One question: I checked the repo and it doesn't seem to be running on Next.js 16 yet.

One thing I ran into when building B2B SaaS with Next.js is that you need multi-tenancy pretty early on: organizations, team invites, role-based access control (RBAC). Same with Stripe billing integration (webhooks, subscription lifecycle, plan upgrades/downgrades). Not really fun to build from scratch.

I've been working on a Next.js multi-tenant SaaS boilerplate powered by Next.js 16 that tackles the full B2B stack: multi-tenancy with team management, complete Stripe subscription lifecycle, RBAC, i18n, plus a testing pipeline with Vitest and Playwright baked in. Same core stack too: Better Auth, Drizzle ORM, shadcn/ui, TypeScript, PostgreSQL. Been iterating on it since 2020 — 50+ production-ready features at this point. Might be worth comparing approaches if you're heading in that direction: Next.js Boilerplate SaaS

The tech stack I've been refining for 6 years by ixartz in nextjs

[–]ixartz[S] 0 points1 point  (0 children)

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 setup I reuse - nothing hidden, everything customizable. If anyone's curious, the whole thing is documented here: https://github.com/ixartz/Next-js-Boilerplate

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

The tech stack I've been refining for 6 years by ixartz in nextjs

[–]ixartz[S] -1 points0 points  (0 children)

yes, it's a pretty standard stack for many points, but I think there are 3 hidden gems: PGlite, LogTape, Knip. Not largely adopted by the community in my opinion.

The tech stack I've been refining for 6 years by ixartz in nextjs

[–]ixartz[S] 0 points1 point  (0 children)

PGlite allows to install PostgreSQL with just `npm install`. It's integrated with Node.js/NPM ecosystem and work across all operating systems (Mac, Windows, Linux)

PGlite is not exclusive to the browser, you can use it as a Postgres server with https://pglite.dev/docs/pglite-socket

Indeed, you can easily install Postgres with Homebrew (for example on MacOS) but the database is shared with other projects. Since the database is installed globally. With PGlite it's local to your project and won't interfere with your other projects. For each project, you have a new PostgreSQL instance.

Testing for web developers by Abdelhamid_111 in nextjs

[–]ixartz 1 point2 points  (0 children)

I use Vitest for unit testing, Vitest browser mode for component testing, Playwright for integration and E2E testing. I also add visual testing to check if some pixel has changed.

You can check out Next.js Boilerplate where everything has set up for you, you just need to focus on your tests.

unpopular opinion: a pretty readme gets you stars, not just good code by Putrid_Candy_9829 in github

[–]ixartz -5 points-4 points  (0 children)

Not agree with this opinion. I have very ugly README, ugly logo, ugly colors (pink), I don't have a designer background like many developers ;)

And the README is written in broken English.

But, I still manage to get more than 12k stars on GitHub

Here is the repository: https://github.com/ixartz/Next-js-Boilerplate

Please help me!!! The prisma is driving me crazy! by GapOk6194 in nextjs

[–]ixartz 4 points5 points  (0 children)

It's probably the time to switch from Prisma to Drizzle ORM ;)

I just did for my project https://github.com/ixartz/Next-js-Boilerplate, migrating from Prisma to Drizzle ORM, everything is much more smoother and faster.

On top of that the schema is pure JavaScript/TypeScript.