Skip to content
PluginStats

@julr/vite-plugin-validate-env weekly downloads statistics

By julr · npm · Vite plugins

✅ Vite plugin for validating your environment variables

View on npm Fresh · Oct 17, 2026

@julr/vite-plugin-validate-env has 18,002 recorded weekly downloads on npm, a decrease of 54.6% over the past 30 days.

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

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

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

Weekly downloads
18,002
Official API · Oct 17, 2026
7-day growth
-55.5%
-22.4K weekly downloads
30-day growth
-54.6%
-21.7K weekly downloads
90-day growth
-36.7%
-10.5K weekly downloads
Rank
#779
Among tracked npm listings

About @julr/vite-plugin-validate-env

vite-plugin-validate-env

A Vite plugin that validates your environment variables at build or dev time. This helps you catch misconfigurations early by failing fast. No more broken builds or 10 minutes of debugging just to realize you forgot a variable 🥲

✅ Features

• Validate environment variables at build time only, zero runtime overhead • Fully type-safe • Supports standard-schema — works with Zod, Valibot, ArkType, and more • Built-in parsing, validation, and transformation • Custom rules and error messages

Installation

Basic Usage

You can use the plugin with the built-in validator for simple use cases, or with libraries like Zod for more advanced schemas.

[!TIP] I would recommend using a dedicated env.ts file to keep your Vite config clean and separate from your environment variable definitions. See the Using a Dedicated env.ts Config File section for more details.

Built-in Validator

Standard Schema Validators

If you want to use Zod or another validator compatible with standard-schema, pass the validator and schema manually:

Built-in Validator Examples

Using Standard Schema

standard-schema provides a common interface for multiple validation libraries.

Here’s how to use it with Zod, Valibot, or ArkType, or any other library that supports it.

Using a Dedicated env.ts Config File

You can move your env definitions to a separate file like this:

Typing import.meta.env

In order to have a type-safe import.meta.env, the ideal is to use the dedicated configuration file env.ts. Once this is done, you would only need to add an vite-env.d.ts in src/ folder to augment ImportMetaEnv (as suggested here ) with the following content:

Validation without Vite

In some cases, you might want to validate environment variables outside of Vite and reuse the same schema. You can do so by using the loadAndValidateEnv function directly. This function will validate and also load the environment variables inside the process.env object.

[!WARNING] process.env only accept string values, so don't be surprised if a number or boolean variable comes back as a string when accessing it after validation.

💖 Sponsors

If you find this useful, consider sponsoring me! It helps support and maintain the project 🙏

License

MIT © Julien Ripouteau

Description from the npm listing.

  • env
  • env-var
  • validation
  • vite
  • vite-plugin
  • zod

Where @julr/vite-plugin-validate-env 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 39, #19 (overall #779)
All npm: every listing in weekly downloads order
PNG SVG
Vite plugins250 listings · 13 pages · page 7, #8 (overall #128)
Vite plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

@julr/vite-plugin-validate-env weekly downloads on npm, last 90 days: 18,002 weekly downloads as of Oct 17, 2026, -36.7% over 90 days.@julr/vite-plugin-validate-envWeekly downloads on npm · Last 90 days18,002downloads / week-36.7% over 90 days010K20K30K40K50K60KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@julr/vite-plugin-validate-env weekly downloads on npm, last 90 days: 18,002 weekly downloads as of Oct 17, 2026, -36.7% over 90 days.
PNG SVG

7/30/90-day growth

@julr/vite-plugin-validate-env weekly downloads growth on npm: -55.5% over 7 days, -54.6% over 30 days, -36.7% over 90 days.@julr/vite-plugin-validate-envWeekly downloads growth on npm18,002downloads / week now7-day growth-22,414 weekly downloads-55.5%30-day growth-21,691 weekly downloads-54.6%90-day growth-10,458 weekly downloads-36.7%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@julr/vite-plugin-validate-env weekly downloads growth on npm: -55.5% over 7 days, -54.6% over 30 days, -36.7% over 90 days.
PNG SVG

Ranking history

@julr/vite-plugin-validate-env npm ranking history: currently #779 (by weekly downloads).@julr/vite-plugin-validate-envnpm ranking · by weekly downloads · Last 90 days#779current rank#200#300#400#500#600#700#800Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 17, 2026 – Oct 18, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
@julr/vite-plugin-validate-env npm ranking history: currently #779 (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 @julr/vite-plugin-validate-env
Date (UTC)Weekly downloadsChange vs. previous
18,002-2.4K
20,355+228
20,127-10.1K
30,232-8.7K
38,9400
38,940-1.3K
40,240-176
40,416+355
40,061+970
39,091+1.3K
37,836-1.1K
38,955-10.5K
49,475-1.5K
50,985—

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/@julr/vite-plugin-validate-env. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.