Introduction
LightningAddon is your boilerplate to ship a browser extension SaaS to every major browser — Chrome, Firefox, Edge, Safari, Brave, Opera, Zen, and any Chromium or Gecko-based browser — from a single codebase, in a single build command.
It ships a complete end-to-end stack: multi-browser extension frontends, a provider-agnostic auth layer, Stripe billing wired entirely through the service worker, and two fully-featured cloud backends (Firebase and Supabase) with identical feature parity.
The goal is to eliminate the weeks of setup work that every extension SaaS shares — authentication, billing, cross-context messaging, storage management, multi-browser packaging — so developers can start building their actual product on day one.
What You Get
- Multi-browser builds — Chrome, Firefox, Edge, and Safari from one codebase via
pnpm build:chrome,pnpm build:firefox,pnpm build:edge, andpnpm build:safari - Provider-agnostic auth — Switch between Firebase and Supabase with a single env var
- Stripe billing in the background — Checkout and portal sessions handled by the service worker (no CORS issues)
- Typed runtime messaging — Compile-time type safety for popup, content script, and background communication
- Shadow DOM content script — Tailwind CSS isolation so your extension UI never conflicts with host page styles
- Versioned storage migrations — Schema upgrades run automatically on extension startup
Quick Start
pnpm install- Configure env files from
envs/.env.example, or runpnpm choose:backendfor an interactive wizard - Choose your backend: Supabase, Firebase, or Custom
pnpm dev(starts all extension dev servers)pnpm build:chromein another terminal, then loadapps/extension/distin Chrome developer mode (chrome://extensions)
See Quick Start for the full walkthrough.
Next Steps
- Environment Setup — Env files, keys, and validation
- Architecture Overview — Monorepo layout and tech stack
- How to use Supabase — Complete Supabase backend guide
- How to use Firebase — Complete Firebase backend guide
- Framework Switching — Use React, Vue, Svelte, or Angular
- Store Submission — Chrome, Firefox, Edge & Safari store checklist
- Commands Reference — All pnpm scripts
- Safari — Build and ship for Safari
- Package Reference — What each package does