# richardtallent/vite-plugin-singlefile

Vite plugin for inlining JavaScript and CSS resources

Repository: https://github.com/richardtallent/vite-plugin-singlefile
Canonical: https://ross.abutalabs.com/products/vite-plugin-singlefile
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-04-17T22:28:44+00:00

## Health v2 (maintenance only)
Score: 64/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 77, release rhythm 28, longevity 100
- inputs: {"age_days": 2062, "days_push": 138, "days_rel": 427, "gap_med": 35, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1229, forks 67 (observed 2026-08-28T04:04:03.691741+00:00)

## What it is
A Vite build plugin that inlines all JavaScript and CSS resources into a single dist/index.html file, allowing an entire web app to be distributed as one HTML file. It is aimed at offline web applications that can be opened directly from the filesystem without a server.

## Use cases
- bundle a web app into a single html file
- build an offline web app that runs from file://
- inline javascript and css into index.html
- distribute a demo or utility as one portable html file
- package documentation or expert tools without a server or electron wrapper

## When to choose
- you need a fully self-contained single HTML file for offline use
- your app has a single entry point and no server-side requirements
- you want to avoid Electron/Cordova wrappers for simple utilities or demos

## When to avoid
- hosting a normal multi-page website on a web server where performance matters
- apps requiring multiple HTML entry points
- apps relying on cookies, History API routing, sourcemaps, or worklets

## Facets
- artifact type: plugin
- maturity: active
- function: build-tool, plugin-system, developer-tools
- domain: web-development, frontend, developer-tools, cross-platform
- platform: cross-platform
- tags: vite, single-file, inline-assets, offline-apps, html-bundling, nodejs, web-server

## Member repositories
- richardtallent/vite-plugin-singlefile (main) score 64

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:03.691741+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-30T06:15:08.164685+00:00, confidence not recorded.
  - readme: https://github.com/richardtallent/vite-plugin-singlefile (fetched 2026-08-28T04:04:03.691741+00:00, sha fcb72d3cf647)
  - registry_npm: https://registry.npmjs.org/vite-plugin-singlefile (fetched 2026-08-29T12:22:35.898070+00:00, sha f464b55d5393)
- Data as of 2026-08-30T08:39:29.467469+00:00.
