The rules travel with the code
AGENTS.md, DESIGN.md and the agent playbook are in the repository, so Claude Code, Cursor or Copilot read the same rules the maintainers follow.
Next.js 16 · Cloudflare Workers · D1
Aback Stack is the Next.js boilerplate with sign in, payments, email, a database and a dashboard already wired, tested and documented. Start at your product idea, not at the setup checklist.
Built by Devvrat Hans to launch the Aback Group products. This site is built from it.
bun run verify
// 01The problem
None of it is your product, and all of it has to work before anyone can pay you. It is the part that takes the longest to get right and the part users only notice when it breaks.
= the weeks before your first feature
bun installbun run verifylint, types, tests and build passedbun run devReady on http://localhost:3000Every item on the left already works, with tests around it. The first thing you write is the part that is yours.
// 02What is inside
Each area is a working path with tests, not a folder of empty files. Pick a tab to see what you get and the code that does it.
Google, GitHub, Microsoft, credentials and email links
# Offer the providers you configuredAUTH_PROVIDERS=google,githubGOOGLE_CLIENT_ID=...GITHUB_CLIENT_ID=...Dodo Payments, Lemon Squeezy, Stripe
const { snapshot } = await resolveUserEntitlements({ userId });const decision = evaluateEntitlementGuard({ snapshot, requirements: [{ capabilityKey: "limits.projects.max_count", comparator: "at_least", minimumValue: projectCount + 1, }],});Resend, Postmark, SendGrid
EMAIL_PROVIDER=resendEMAIL_API_KEY=...EMAIL_FROM=hello@yourproduct.comCloudflare D1, SQLite in the tests
bun run db:migrate:localApplied the migrations to the local D1 databasebun run testEvery test passedCloudflare Turnstile, optional
const guardFailure = resolveRequestGuardFailure(request);if (guardFailure) { return createRequestGuardResponse(guardFailure);} const session = await resolveAuthSessionContextFromRequest({ request });if (!session.authenticated) { return createErrorResponse("AUTHENTICATION_REQUIRED", ...);}Next.js metadata, sitemap.ts, opengraph-image.tsx
Tailwind CSS 4, Radix primitives, Tabler icons
import { Button, Card, Field } from "@/vendor/aback-ui";Claude Code, Cursor, GitHub Copilot
AGENTS.md the contractCLAUDE.md imports the contractDESIGN.md the design systemdocs/AGENT-PLAYBOOK.md.github/copilot-instructions.mdOne payment, every update after it.
// 03Who it is for
Anything with accounts and payments starts from the same foundation. Here is what it fits, and when it is the wrong choice.
Plans, trials, the customer portal, plan changes and limits that are checked on the server.
Accounts, billing and limits per plan, such as projects and seats, so the new code is the model call and its interface.
One-time checkout and signed order events behind the same payment contract. This site sells itself that way.
The licence covers products you build for clients, so every project starts from the same tested base.
// 04Built for AI
An agent is only as good as the codebase it reads. This one tells it where code belongs, which mistakes have already happened here and how to prove a change, so the first diff is close to the right one.
AGENTS.md, DESIGN.md and the agent playbook are in the repository, so Claude Code, Cursor or Copilot read the same rules the maintainers follow.
A protected page, an API route, a new table, an email, a plan limit: each recipe lists every file the change has to touch.
Strict types, the test suite and bun run verify catch a plausible but broken diff before it reaches a user.
// 05Why it exists
Hey, I'm Devvrat.
Aback Group builds a family of products, and every one of them started the same way: sessions, webhooks, emails that land in spam, a pricing page, a dark mode. Weeks of work before the first feature, repeated for every launch.
So I built that foundation once, properly, with the tests and the rules to keep it right. The next Aback products start from it, and the site you are reading is built from it.
Aback Stack is that same repository. When I improve it for our own launches, you get the update with git pull.
// 06Pricing
One price, the whole repository and every update after it. No subscription and no seats.
The production SaaS foundation on Next.js and Cloudflare, with every future update.
$199USD, once. No subscription.
Pay once. Build unlimited products.
Payments, tax and receipts are handled by Dodo Payments, the merchant of record. The code is delivered as read-only access to a private GitHub repository. Read the licence before you buy.
Dodo Payments is the merchant of record: it handles the card, the tax and the receipt.
The confirmation email from Dodo Payments links to your customer portal. Click Connect next to GitHub access.
GitHub invites you to the private repository with read access. Accept it, clone, and run bun run verify.
// 07FAQ
Read access to the private GitHub repository: the full source, the documentation, the test suite and the agent playbook. Every update published to the repository reaches you with git pull, and the licence lets you build as many products of your own as you like.
Dodo Payments emails your receipt with a link to your customer portal. Click Connect next to GitHub access and authorise your GitHub account, then accept the invitation GitHub sends you. If nothing arrives within a few minutes, check the spam folder or write to support.
No. Aback Stack is $199, paid once. There is no renewal, and the updates keep arriving through the repository.
Next.js 16 with the App Router, React 19 and strict TypeScript, Tailwind CSS 4 and the Aback UI components, deployed to Cloudflare Workers with D1 for data. Bun runs the scripts and the tests.
Not to run it. Without configuration the kit uses an in memory store and logs email to the console, so bun run dev works on a fresh clone. You need Cloudflare when you deploy.
It is written for them. AGENTS.md, the agent playbook and CLAUDE.md tell an agent where code belongs, how to make the common changes and how to prove them, so Claude Code, Cursor or Copilot extend the kit inside its architecture instead of around it.
Yes. The licence covers the products you build for yourself, your organisation or a client, commercially and for any number of end users. What it does not allow is passing the kit itself on, for example as another template or boilerplate.
Yes. The payments in the kit sit behind one contract, and the deployment picks Dodo Payments, Stripe or Lemon Squeezy with one environment variable. Email works the same way with Resend, Postmark or SendGrid.
Dodo Payments, as the merchant of record. It takes the payment, calculates and remits the sales tax or VAT of your country and issues the receipt, so the invoice is valid for your business.
Write to support@abackstack.com with your receipt. Refunds are processed through Dodo Payments, and a refund removes the repository access.
Another question? Write to us.
Start today
Clone it tonight, run one command to prove it works, and spend tomorrow on the feature only you can build. $199 once, every update included.