Devadex

FireBase SaaS B2B & AI-Ready Boilerplate Template

gumroad   $149.00   by tveinteractive
13d old

🔥Build, Style, and Monetize Your Next SaaS Startup in Record Time.Are you tired of spending the first two weeks of every project setting up authentication, configuring Stripe webhooks, writing complex database security rules, and wiring up email handlers?FireBase SaaS Boilerplate is a commercial-grade, production-ready starter kit designed specifically for SaaS founders, developers, and indie hackers. It provides a premium, responsive frontend styled in a gorgeous dark glassmorphism theme and a robust, secure backend that handles everything from multi-tenant team access to AI function calling out of the box.Focus on your core product features and launch on day one.Key Value Propositions 100+ Hours Saved: Skip the repetitive plumbing of auth, database, cloud functions, and billing setups. B2B Team Model Out-of-the-box: Designed for workspaces and team collaboration, not just single-user accounts. Fully Scoped Security: Production-ready security rules protect your storage and database from client-side overrides or billing bypasses. AI-Enabled: Showcases real-time Gemini AI integration with autonomous tool calling. DevOps & Automated Deployments: Push your code to GitHub and watch it test, build, and deploy itself automatically. Advanced B2B & AI FeaturesB2B Multi-Tenancy & Workspace IsolationBuild SaaS apps meant for teams. Users can belong to multiple workspaces, switch active context seamlessly via a custom navbar dropdown selector, and invite teammates via email. Invitation tokens are secured and processed asynchronously.Workspace Billing & Stripe Customer PortalMonetization is fully wired. Subscriptions are scoped at the team/workspace level. Members can securely launch Stripe's Customer Portal to manage cards, view invoices, or change plans for their active workspace context.Usage-Based Metering (Feature Gating)Protect your margins. Standard users are restricted to 1,000 monthly operations in their workspace. This limit is securely enforced in the database layer via Firestore Security Rules, preventing client-side bypasses.Client-Side Canvas Image CompressionSave bandwidth and reduce Cloud Storage costs. An integrated client-side canvas compressor resizes and compresses image files inside the browser before uploading them to Firebase Storage.Transactional Emails (Resend API)Deliver responsive, modern emails. When a team member is invited, a Cloud Function automatically triggers and dispatches a styled HTML email template via the Resend API.Gemini 2.5 Flash AI Integration (AI-Ready)Equipped with a chatbot interface that showcases Gemini Function Calling. When asked about data (e.g., "What records are in my database?"), Gemini automatically calls a local tool function to retrieve items from Firestore and returns them inside the chat response.CI/CD GitHub Actions PipelinePush-to-deploy workflow. A prebuilt GitHub Actions script (.github/workflows/deploy.yml) runs type-checks, lints, builds the React app, compiles TypeScript cloud functions, and deploys the entire stack to Firebase Hosting, Functions, and Rules.The Tech StackThis template is built on a modern, high-performance, type-safe stack:Frontend (Client) React 19 & TypeScript: Clean, modern hooks-based components. Vite 8: Lightning-fast dev builds and Hot Module Replacement. Tailwind CSS v4: Compiling via PostCSS with curated ambient glow bubbles, premium scrollbars, and custom glassmorphism. React Router v7: Declarative frontend routing with protected route guards. Lucide React Icons: A clean, consistent SVG iconography system. Backend (Serverless) Firebase v10 JS SDK: Web-app bindings. Firebase Local Emulator Suite: Complete offline development suite (Auth, Firestore, Storage, and Functions). Cloud Functions v2 (TypeScript on Node 22): Secure serverless handlers. Stripe SDK: Secure checkout sessions, portal links, and webhooks processing. Resend SDK: Modern email delivery. Google Generative AI SDK: High-speed AI model integrations. What’s Included in the Download Bundle?You will receive a clean, lightweight zip folder structured as follows:├── .github/workflows/│ └── deploy.yml # GitHub Actions CI/CD deployment script├── firebase.json # Emulator suite port mappings├── firestore.rules # B2B membership & usage-gating database rules├── storage.rules # Scoped team uploads rules├── package.json # Root scripts and packages configuration├── postcss.config.js # PostCSS configuration for Tailwind v4├── index.html # Entry HTML loading Inter/Outfit fonts├── src/│ ├── firebase.ts # Safe emulator-detection initialization (HMR-safe)│ ├── main.tsx # React entry point│ ├── App.tsx # Router paths configurations│ ├── utils/│ │ └── compression.ts # Canvas image compressor utility│ ├── context/│ │ └── AuthContext.tsx # Auth, workspaces listener, and loop guard│ ├── components/│ │ ├── Navbar.tsx # Frosted-glass header with switcher│ │ ├── ProtectedRoute.tsx # Route guarding checking auth│ │ └── WorkspaceSelector.tsx # Outside-click dropdown switcher and modal│ └── pages/│ ├── Home.tsx # Responsive landing page & pricing cards│ ├── Auth.tsx # Login, signup, and invite token claimant│ ├── Dashboard.tsx # Scoped CRUD, uploads, invites, and Gemini AI chatbot│ └── Billing.tsx # Stripe portal and workspace billing display└── functions/ # Firebase Cloud Functions (TypeScript)├── package.json # Node server dependencies (stripe, resend, gen-ai)├── tsconfig.json # TypeScript compiler configurations└── src/└── index.ts # Stripe, invitations, Resend, webhook, and Gemini AIEasy 3-Step Setup Install dependencies: Run npm install in the root and /functions folders. Configure keys: Copy .env.example to .env.local (frontend) and functions/.env (backend) and fill in your keys. Start Emulators: Compile functions and run firebase emulators:start to test the entire stack completely offline!

Get it → tveinteractive.gumroad.com

Found on Devadex — the discovery index for independent software the big search engines bury. More from gumroad.

Report this listing