Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A PocketBase frontend template to launch a SaaS in minutes. Based on React and Tailwind

A full-stack Next.js TypeScript template focused on functionality over UI, featuring Zustand, TanStack Query, and ESLint 9 support.
Pocket SaaS is a GitHub template that gives you a ready-made React and Tailwind CSS frontend starter for building SaaS applications on a PocketBase backend.
Pocket SaaS is a frontend starter template for SaaS projects that pairs React with PocketBase, a serverless database with built-in authentication and authorization. It provides a pre-configured Vite project using TypeScript, Tanstack Router, Tailwind CSS, and shadcn/ui components, plus a Dockerfile for deployment. The template is published by GitHub user lucafaggianelli and is designed to be used via the "Use this template" button.
src/pages/ are automatically registered with Tanstack Router; files named .lazy.tsx are code-split and loaded lazily./signin route automatically lists enabled OAuth providers and email/password, and email verification is sent after sign-up.protectPage helper and a protected route group in src/pages/_app/ let you restrict pages to authenticated users; unauthenticated visitors are redirected to /signin.pocketbase-typegen integration generates TypeScript types when you run pnpm run pb:typegen after schema changes.src/config/menu.ts for easy editing.pnpm pb:download fetches the platform-specific PocketBase binary and pnpm pb:server starts it.protectPage helper or place pages under the protected group so only signed-in users can access them.The workflow described in the template starts with creating a new repository from the GitHub template or cloning it. You then install dependencies with pnpm, download the PocketBase binary using pnpm pb:download, start the backend with pnpm pb:server, and run the frontend with pnpm dev. For a type-safe connection, run pnpm run pb:typegen after modifying collections.
The repository is available as a public GitHub template, so you can copy it and use it for your own projects without paying a license fee. No pricing or payment information is mentioned in the template documentation.
Create a new file under src/pages/, for example hello.tsx, and Tanstack Router will expose it at /hello automatically. Name the file something.lazy.tsx to load it lazily instead of including it in the main bundle.
Use the protectPage helper in the beforeLoad option of your route definition, or place the page inside the pre-built protected route group at src/pages/_app/. Unauthenticated users are redirected to /signin.
The template includes package scripts: run pnpm pb:download to get the PocketBase binary for your platform, then pnpm pb:server to launch the server. If the download script fails, you can manually download the binary from the PocketBase GitHub releases and put it in the pocketbase folder.