No description
  • TypeScript 67.6%
  • CSS 12.8%
  • Nix 11.8%
  • HTML 7.8%
Find a file Use this template
hayshin e405d527ff
All checks were successful
CI / Check, lint, test, and build (push) Successful in 58s
chore: initial commit (squashed history)
Vite+ Chrome/Firefox extension template with React, TypeScript, Tailwind CSS.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-19 17:21:11 +05:00
.forgejo/workflows chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
public chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
src chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
.gitignore chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
custom-vite-plugins.ts chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
devenv.lock chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
devenv.nix chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
devenv.yaml chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
manifest.dev.json chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
manifest.json chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
package.json chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
pnpm-lock.yaml chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
pnpm-workspace.yaml chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
README.md chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
tsconfig.json chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00
vite.config.ts chore: initial commit (squashed history) 2026-07-19 17:21:11 +05:00

Vite+ Web Extension Template

A minimal Chrome/Firefox extension template using React, TypeScript, Tailwind CSS, and Vite+. The vp CLI is provided by nix-vite-plus through devenv.

Requirements

  • Nix with flakes enabled
  • devenv
  • A package manager supported by Vite+ (pnpm is pinned via packageManager)

Setup

devenv shell
vp install

Development

Chrome is the default target:

vp build --mode development --watch

Or use the package scripts:

pnpm dev:chrome
pnpm dev:firefox

Load the generated extension directory in your browser:

  • Chrome: dist_chrome
  • Firefox: dist_firefox

Production builds

pnpm build:chrome
pnpm build:firefox

The browser target is selected with BROWSER=chrome|firefox; vite.config.ts defaults to Chrome.

Checks and formatting

pnpm check
pnpm lint
pnpm fmt

These commands are handled by Vite+ (vp check, vp lint, and vp fmt).