Ship your next SaaS in days, not months.
An opinionated Next.js starter with auth, payments, background jobs, and the modern tooling you actually want to ship with.

Built with the best
Everything you need to ship fast
Stop wasting weeks on boilerplate. Primus gives you auth, payments, background jobs, and type safety out of the box.
Authentication
Better Auth with social login, email/password, and session management. Ready in minutes, not days.

Payments
Polar integration for subscriptions, one-time payments, and webhook-driven billing. No Stripe complexity.
import { eq } from "drizzle-orm"
import { db } from "@/lib/db"
import { user } from "@/lib/db/schemas/core"
import { result } from "@/lib/either"
import { logger } from "@/lib/logger"
export async function getActiveUsers() {
const query = await result.trycatch(
() => db
.select({
id: user.id,
name: user.name,
email: user.email,
createdAt: user.createdAt,
})
.from(user)
.where(eq(user.active, true))
)
if (!query.ok) {
logger.error({ err: query.error }, "Failed to fetch users")
return result.fail(
new Error("QUERY_FAILED", { cause: query.error })
)
}
logger.info({ count: query.value.length }, "Fetched users")
return result.pass(query.value)
}Type Safety
End-to-end types with Drizzle ORM, t3-env, and strict TypeScript. Errors caught at compile time, not runtime.
Background Jobs
Inngest for durable workflows, scheduled tasks, and event-driven functions. Built-in retry and observability.
From clone to production in four steps
Primus removes the guesswork so you can focus on what makes your product unique.
Built for serious projects
Where developer experience meets production readiness — designed to scale with your ambitions.
Battle-tested Stack
Every dependency is chosen for production. Better Auth for security, Drizzle for type-safe queries, Inngest for reliable background processing.
Developer Experience
Biome for instant linting, GritQL for custom rules, strict TypeScript, and patterns that scale. Your future self will thank you.
Pricing that scales with you
Start free, upgrade when you're ready. No surprises.
Perfect for side projects and getting started.
Free forever.Everything you need for a serious SaaS.
For teams that need dedicated support and SLAs.
Custom pricing.Frequently asked questions
Everything you need to know about Primus.
Start building today
Clone the repo. Configure your services. Ship your SaaS.
Free and open source