GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - mini-op/swagger-theme

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
e2e
e2e
 
 
extension/assets
extension/assets
 
 
scripts
scripts
 
 
src
src
 
 
.eslintignore
.eslintignore
 
 
.eslintrc
.eslintrc
 
 
.gitignore
.gitignore
 
 
.gitpod.Dockerfile
.gitpod.Dockerfile
 
 
.gitpod.yml
.gitpod.yml
 
 
.npmrc
.npmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
modules.d.ts
modules.d.ts
 
 
package.json
package.json
 
 
playwright.config.ts
playwright.config.ts
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
shim.d.ts
shim.d.ts
 
 
tsconfig.json
tsconfig.json
 
 
unocss.config.ts
unocss.config.ts
 
 
vite.config.background.ts
vite.config.background.ts
 
 
vite.config.content.ts
vite.config.content.ts
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

WebExtension Vite Starter

A Vite powered WebExtension (Chrome, FireFox, etc.) starter template.

Popup

Options Page

Inject Vue App into the Content Script

Features

  • ⚑️ Instant HMR - use Vite on dev (no more refresh!)
  • πŸ₯ Vue 3 - Composition API, <script setup> syntax and more!
  • πŸ’¬ Effortless communications - powered by webext-bridge and VueUse storage
  • 🌈 UnoCSS - The instant on-demand Atomic CSS engine.
  • 🦾 TypeScript - type safe
  • πŸ“¦ Components auto importing
  • 🌟 Icons - Access to icons from any iconset directly
  • πŸ–₯ Content Script - Use Vue even in content script
  • 🌍 WebExtension - isomorphic extension for Chrome, Firefox, and others
  • πŸ“ƒ Dynamic manifest.json with full type support

Pre-packed

WebExtension Libraries

  • webextension-polyfill - WebExtension browser API Polyfill with types
  • webext-bridge - effortlessly communication between contexts

Vite Plugins

  • unplugin-auto-import - Directly use browser and Vue Composition API without importing
  • unplugin-vue-components - components auto import
  • unplugin-icons - icons as components
    • Iconify - use icons from any icon sets πŸ”IcΓ΄nes

Vue Plugins

  • VueUse - collection of useful composition APIs

UI Frameworks

  • UnoCSS - the instant on-demand Atomic CSS engine

Coding Style

  • Use Composition API with <script setup> SFC syntax
  • ESLint with @antfu/eslint-config, single quotes, no semi

Dev tools

  • TypeScript
  • pnpm - fast, disk space efficient package manager
  • esno - TypeScript / ESNext node runtime powered by esbuild
  • npm-run-all - Run multiple npm-scripts in parallel or sequential
  • web-ext - Streamlined experience for developing web extensions

Use the Template

GitHub Template

Create a repo from this template on GitHub.

Clone to local

If you prefer to do it manually with the cleaner git history

If you don't have pnpm installed, run: npm install -g pnpm

npx degit antfu/vitesse-webext my-webext
cd my-webext
pnpm i

Usage

Folders

  • src - main source.
    • contentScript - scripts and components to be injected as content_script
    • background - scripts for background.
    • components - auto-imported Vue components that are shared in popup and options page.
    • styles - styles shared in popup and options page
    • assets - assets used in Vue components
    • manifest.ts - manifest for the extension.
  • extension - extension package root.
    • assets - static assets (mainly for manifest.json).
    • dist - built files, also serve stub entry for Vite on development.
  • scripts - development and bundling helper scripts.

Development

pnpm dev

Then load extension in browser with the extension/ folder.

For Firefox developers, you can run the following command instead:

pnpm start:firefox

web-ext auto reload the extension when extension/ files changed.

While Vite handles HMR automatically in the most of the case, Extensions Reloader is still recommanded for cleaner hard reloading.

Using Gitpod

If you have a web browser, you can get a fully pre-configured development environment with one click:

Open in Gitpod

Build

To build the extension, run

pnpm build

And then pack files under extension, you can upload extension.crx or extension.xpi to appropriate extension store.

Credits

Volta

This template is originally made for the volta.net browser extension.

Variations

This is a variant of Vitesse, check out the full variations list.

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Generated from antfu-collective/vitesse-webext
You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.