Skip to content
PluginStats

vite-plugin-json5 weekly downloads statistics

By sneakylenny · npm · Vite plugins

Plugin for allowing .json5 and .jsonc files to be loaded.

View on npm Fresh · Oct 17, 2026

vite-plugin-json5 has 26,383 recorded weekly downloads on npm, a decrease of 48.1% over the past 30 days.

It ranks #689 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by -15.3%.

PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.

Weekly downloads
26,383
Official API · Oct 17, 2026
7-day growth
-54.0%
-31K weekly downloads
30-day growth
-48.1%
-24.5K weekly downloads
90-day growth
-15.3%
-4.8K weekly downloads
Rank
#689
Among tracked npm listings

About vite-plugin-json5

Vite JSON5 (and JSONC) plugin

A Vite plugin that wraps json5 to allow .json5 and .jsonc files to be loaded.

Installation

1. Install the package

2. Add it to your Vite config

3. Done

.json5 and .jsonc files can now be imported directly. They are parsed by the json5 package and transformed into standard JavaScript modules.

Options

This plugin accepts the same options as the default JSON parser, plus a dts option for automatic TypeScript type generation:

TypeScript types

[!NOTE] In Vite's dev server, type declarations are generated lazily — the file is written the first time a JSON5/JSONC module is actually requested. Open the page once and the file persists on disk across server restarts. Running vite build always generates types upfront.

Enable the dts option to have the plugin automatically generate TypeScript declarations for every JSON5/JSONC file you import. No more any — you get full type safety and autocompletion, inferred directly from the file's contents.

There are two modes:

Aggregated mode (default) — all declarations are collected into a single file at node_modules/@types/vite-plugin-json5/index.d.ts.

For auto-generated types to work, add "vite-plugin-json5" to your tsconfig.json "types" array:

If you already have a "types" array (e.g. "types": ["vite/client"]), append "vite-plugin-json5" to it.

Sidecar mode — writes a .d.ts file next to each source file (e.g. config.json5.d.ts beside config.json5). TypeScript picks these up automatically via module resolution — no tsconfig.json changes needed.

Example:

Enable it with sidecar: true and add the generated files to your .gitignore:

Add the signature of the generated files to the git ignore to prevent them from being pushed to your repository:

Literal types — by default, values are widened to their primitive type (string, number, boolean). Pass literals: true to use exact literal types instead:

Custom output path (aggregated mode only) — change where the aggregated file is written using outFile, relative to the Vite root:

Contributing

A guide for setting up the development environment to allow for easy contributions.

This repo uses proto for toolchain management and moon as the task runner.

1. Install proto by following the proto install guide. Then install the required tools (Node.js, pnpm, and moon) from the repo root:

1. Install dependencies:

1. Make changes 1. If the change is user-facing, add a changeset:

Commit the generated file under .changeset/ with your PR. 1. Run tests

1. Build when successful

1. Run the playground to test the build

Releases are automated with changesets. Development lands on dev; merging dev → main (or committing directly to main) runs the release workflow, which opens a Version Packages PR — merge that to publish. See .changeset/README.md.

Description from the npm listing.

  • vite
  • vite-plugin
  • json5
  • jsonc
  • json

Where vite-plugin-json5 sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 35, #9 (overall #689)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 6, #12 (overall #112)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

vite-plugin-json5 weekly downloads on npm, last 90 days: 26,383 weekly downloads as of Oct 17, 2026, -15.3% over 90 days.vite-plugin-json5Weekly downloads on npm · Last 90 days26,383downloads / week-15.3% over 90 days20K30K40K50K60K70K80KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
vite-plugin-json5 weekly downloads on npm, last 90 days: 26,383 weekly downloads as of Oct 17, 2026, -15.3% over 90 days.
PNG SVG

7/30/90-day growth

vite-plugin-json5 weekly downloads growth on npm: -54.0% over 7 days, -48.1% over 30 days, -15.3% over 90 days.vite-plugin-json5Weekly downloads growth on npm26,383downloads / week now7-day growth-30,950 weekly downloads-54.0%30-day growth-24,494 weekly downloads-48.1%90-day growth-4,783 weekly downloads-15.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
vite-plugin-json5 weekly downloads growth on npm: -54.0% over 7 days, -48.1% over 30 days, -15.3% over 90 days.
PNG SVG

Ranking history

vite-plugin-json5 npm ranking history: currently #689 (by weekly downloads).vite-plugin-json5npm ranking · by weekly downloads · Last 90 days#689current rank#200#300#400#500#600#700Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
vite-plugin-json5 npm ranking history: currently #689 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (543)
Recent weekly downloads observations for vite-plugin-json5
Date (UTC)Weekly downloadsChange vs. previous
26,383-1.7K
28,036-1.4K
29,427-16.1K
45,499-15.1K
60,5820
60,582+4K
56,578-755
57,333-173
57,506+3K
54,478+7.9K
46,617+4.2K
42,399-9.1K
51,454+1.7K
49,705—

Similar npm Vite plugins plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/vite-plugin-json5. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.