# lisonge/vite-plugin-monkey

A vite plugin server and build your.user.js for userscript engine like Tampermonkey, Violentmonkey, Greasemonkey, ScriptCat

Repository: https://github.com/lisonge/vite-plugin-monkey
Canonical: https://ross.abutalabs.com/products/vite-plugin-monkey
Language: TypeScript
License: MIT
License Family: permissive
Topics: vite, vite-plugin, tampermonkey, violentmonkey, greasemonkey, rollupjs, userscript, scriptcat
Last push: 2026-07-20T16:14:14+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 93, release rhythm 93, longevity 100
- inputs: {"age_days": 1646, "days_push": 44, "days_rel": 44, "gap_med": 6.5, "n_releases_24m": 33}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2031, forks 104 (observed 2026-08-28T04:06:07.305260+00:00)

## What it is
A Vite plugin that lets you develop and build userscripts (.user.js) for engines like Tampermonkey, Violentmonkey, Greasemonkey, and ScriptCat. It injects userscript metadata comments, auto-configures @grant for GM APIs, supports CDN externals, and provides hot module replacement during development.

## Use cases
- develop userscripts with vite hot reload
- build a tampermonkey script from typescript
- bundle a userscript with react or vue
- auto-generate @grant comments for GM APIs
- inject cdn externals into userscript @require
- create a userscript project scaffold
- serve and install .user.js during development

## When to choose
- you want modern tooling (vite, HMR, TypeScript, frameworks) for userscript development
- you target Tampermonkey, Violentmonkey, Greasemonkey, or ScriptCat
- you want automatic userscript metadata and GM API grant handling

## When to avoid
- you are building browser extensions rather than userscripts
- you need a build system other than vite
- you write simple one-file scripts without a build step

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, developer-tools, cli
- domain: web-development, frontend, developer-tools, browser-extensions
- platform: cli, cross-platform
- tags: vite-plugin, userscript, tampermonkey, violentmonkey, greasemonkey, scriptcat, greasyfork, hmr, typescript, nodejs

## Member repositories
- lisonge/vite-plugin-monkey (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:07.305260+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:59:33.214518+00:00, confidence not recorded.
  - readme: https://github.com/lisonge/vite-plugin-monkey (fetched 2026-08-28T04:06:07.305260+00:00, sha 49cae5d6b93e)
  - registry_npm: https://registry.npmjs.org/vite-plugin-monkey (fetched 2026-08-29T10:39:32.936670+00:00, sha c6099d204e25)
- Data as of 2026-08-30T08:39:29.467469+00:00.
