{"id":22093471,"url":"https://github.com/mubaidr/vite-chrome-extension","last_synced_at":"2025-07-24T20:32:55.863Z","repository":{"id":216868819,"uuid":"742518783","full_name":"mubaidr/vite-chrome-extension","owner":"mubaidr","description":"A simple vite based chrome extension starter ","archived":false,"fork":false,"pushed_at":"2024-01-15T14:34:22.000Z","size":36,"stargazers_count":17,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T13:21:10.993Z","etag":null,"topics":["chrome","extension","tailwind","vite"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mubaidr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"mubaidr","patreon":"mubaidr","open_collective":"mubaidr","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":"mubaidr","otechie":null,"custom":null}},"created_at":"2024-01-12T16:56:19.000Z","updated_at":"2024-04-24T12:34:18.000Z","dependencies_parsed_at":"2024-01-13T14:16:58.588Z","dependency_job_id":null,"html_url":"https://github.com/mubaidr/vite-chrome-extension","commit_stats":null,"previous_names":["mubaidr/vite-chrome-extension"],"tags_count":0,"template":true,"template_full_name":"mubaidr/vite-vue3-chrome-extension-v3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2Fvite-chrome-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2Fvite-chrome-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2Fvite-chrome-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mubaidr%2Fvite-chrome-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mubaidr","download_url":"https://codeload.github.com/mubaidr/vite-chrome-extension/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227476000,"owners_count":17779417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","extension","tailwind","vite"],"created_at":"2024-12-01T03:14:46.299Z","updated_at":"2024-12-01T03:14:46.799Z","avatar_url":"https://github.com/mubaidr.png","language":"HTML","funding_links":["https://github.com/sponsors/mubaidr","https://patreon.com/mubaidr","https://opencollective.com/mubaidr","https://issuehunt.io/r/mubaidr"],"categories":[],"sub_categories":[],"readme":"# vite-chrome-extension\n\n[![build](https://github.com/mubaidr/vite-chrome-extension/actions/workflows/build.yml/badge.svg)](https://github.com/mubaidr/vite-chrome-extension/actions/workflows/build.yml) [![release](https://github.com/mubaidr/vite-chrome-extension/actions/workflows/release.yml/badge.svg)](https://github.com/mubaidr/vite-chrome-extension/actions/workflows/release.yml)\n\nA [Vite](https://vitejs.dev/) powered WebExtension ([Chrome](https://developer.chrome.com/docs/extensions/reference/), [FireFox](https://addons.mozilla.org/en-US/developers/), etc.) starter template based on `manifest 3`, `Tailwind`, `daisyUI`.\n\n**Please check: [vite-vue3-chrome-extension-v3](https://github.com/mubaidr/vite-vue3-chrome-extension-v3) for a more advance template based on Vuejs**\n\n**Looking for more simple solution? Look no further [simple-vite-chrome-extension](https://github.com/mubaidr/simple-vite-chrome-extension)**\n\n## Features\n\n- HMR for extension pages and content scripts\n- Sample `onInstall` \u0026 `onUpdate` pages\n- [`Tailwind`](https://tailwindcss.com/) css And [`daisyUI`](https://daisyui.com/)\n- Tailwindcss plugins for Typography, forms, prettier and daisy ui\n- vscode recommended settings and extensions for chrome plugin development\n- [Icons](./src/components) - Access to icons from any iconset directly\n  - By default [Material Design Icons](https://materialdesignicons.com/cdn/1.6.50-dev/) set is enabled\n- [TypeScript](https://www.typescriptlang.org/) - type safe\n- `Eslint` \u0026 `Prettier` configured for `javascript`, `TypeScript`\n- [CRXJS Vite Plugin](https://crxjs.dev/vite-plugin) Build a Chrome Extension with Vite\n- Github build and release actions\n\n_Please create an issue if you feel some feature is missing or could be improved._\n\n## Pre-packed\n\n### Vite Plugins\n\n- [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import)\n- [`unplugin-icons`](https://github.com/antfu/unplugin-icons) - icons as components\n  - [Material Design Icons](https://icon-sets.iconify.design/mdi/) - Material Design Icons\n\n### UI Frameworks\n\n- [tailwindcss](https://tailwindcss.com) - A utility-first CSS framework\n- [daisyUI](https://daisyui.com/) - The most popular component library for Tailwind CSS\n\nTailwind css `forms` and `typography` plugins are enabled for default styling of form controls.\n\n## Use the Template\n\n### GitHub Template\n\n[Create a repo from this template on GitHub](https://github.com/mubaidr/vite-chrome-extension/generate).\n\n### Clone to local\n\nIf you prefer to do it manually with the cleaner git history\n\n\u003e If you don't have pnpm installed, run: npm install -g pnpm\n\n```bash\npnpx degit mubaidr/vite-chrome-extension my-webext\ncd my-webext\npnpm i\n```\n\n## Usage\n\n### Project Structure\n\n- `src` - main source.\n  - `content-script` - scripts and components to be injected as `content_script`\n    - `iframe` content script iframe app which will be injected into page\n  - `background` - scripts for background.\n  - `popup` - popup application root\n    - `pages` - popup pages\n  - `options` - options application root\n    - `pages` - options pages\n  - `setup` - Page for Install and Update chrome extension events\n    - `pages` - pages for install and update events\n  - `offscreen` - Chrome extension offscreen pages, can be used for audio, screen recording\n  - `pages` - application pages, common to all views (About, Contact, Authentication etc)\n  - `assets` - assets\n- `dist` - built files, also serve stub entry for Vite on development.\n\n### Extra info\n\nIn [src/background/index.ts](./src/background/index.ts) you can find an example of chrome.runtime.onInstalled.addListener.\n\nWe add `?type` to the url to tell if it's update or install event. Then in [src/setup/pages/index.ts](./src/setup/pages/index.ts) we check for the `type` and show the appropriate page.\n\n### Development\n\n```bash\npnpm dev\n```\n\nThen **load extension in browser with the `dist/` folder**.\n\n### Build\n\nTo build the extension, run\n\n```bash\npnpm build\n```\n\nAnd then pack files under `dist`, you can upload `dist.crx` or `dist.xpi` to appropriate extension store.\n\n## Contributors\n\n\u003c!-- readme: collaborators,contributors -start --\u003e\n\u003ctable\u003e\n\u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n        \u003ca href=\"https://github.com/mubaidr\"\u003e\n            \u003cimg src=\"https://avatars.githubusercontent.com/u/2222702?v=4\" width=\"100;\" alt=\"mubaidr\"/\u003e\n            \u003cbr /\u003e\n            \u003csub\u003e\u003cb\u003eMuhammad Ubaid Raza\u003c/b\u003e\u003c/sub\u003e\n        \u003c/a\u003e\n    \u003c/td\u003e\u003c/tr\u003e\n\u003c/table\u003e\n\u003c!-- readme: collaborators,contributors -end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubaidr%2Fvite-chrome-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmubaidr%2Fvite-chrome-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmubaidr%2Fvite-chrome-extension/lists"}