开源 浏览器扩展启动套件
Features · Tech stack · Contributing · Getting started · Community · Star History
Everything you need to build a production ready browser extension, it's an opinionated stack based on learnings from building multiple browser extensions using the latest React framework. It's a starter kit with a focus on code reuse and best practices that will grow with your business.
[!NOTE] This project is listed on Awesome Open Source Boilerplates and Awesome SaaS Boilerplates
[!TIP] Sharing storage and authentication session between all pages
https://github.com/user-attachments/assets/970eddf8-5faf-42cc-89ed-54b7c7548bc8
| Tech | Description |
|---|---|
| TypeScript | Static type-checking programming language |
| React | Library for building user interfaces |
| WXT | Next-gen Web Extension Framework |
| Supabase | Open source Firebase alternative |
| shadcn/ui | Extendable component library |
| Tailwind | Utility-first CSS framework |
| OpenPanel | Open source analytics |
| React Hook Form | Forms with easy-to-use validation |
| Vite | Next generation frontend tool |
| Bun | Package manager and build tool |
| Husky | Git hooks |
| Biome | Linting and formatting |
Please read CONTRIBUTING.md.
git clone [email protected]:turbostarter/extro.gitbun install.env.example to .env and update the variablescp .env.example .envbun dev:chromechrome://extensionsDeveloper modeLoad unpackedbuild/chrome-mv3 directory at rootbun dev:firefoxabout:debugging#/runtime/this-firefoxLoad Temporary Add-on...build/firefox-mv2/manifest.json file at root[!NOTE]
In Firefox you're adding a plugin in temporary mode - that means it'll disappear after you close the browser.
bun run build to build the extension for both Chrome and Firefox or bun build:chrome or bun build:firefox to build only for one of the browsers.build directory and upload the .zip files to the Chrome Web Store and Firefox Add-ons.CI / Publish workflowExtro ships with the following extension pages preconfigured:
background - background service workercontent - content scripts that run in the context of web pagesdevtools - devtools page with custom panelsnewtab - new tab pageoptions - options pagepopup - popup windowsidepanel - side paneltabs - unlisted pages (custom pages delivered with the extension)To chat with other community members, you can join the Discord server. You can ask questions on that server, and you can also help others.
Also, suggest new features or share any challenges you've faced while developing Chrome extensions!
Made with ❤️ by Bartosz Zagrodzki
暂无开放 Issues,或尚未同步最近议题。