@makerkit/env-inspector weekly downloads statistics
By makerkit (4 listings) · npm · MCP servers
Shows coding agents which .env file each variable comes from, and which variables are missing or invalid for each mode, without exposing secret values.
@makerkit/env-inspector has 9,299 recorded weekly downloads on npm, an increase of 29.7% over the past 30 days, ranking #1293 of 3,247 tracked listings.
About @makerkit/env-inspector
@makerkit/env-inspector
Lets coding agents check a project's environment variables without seeing secret values. For each mode (development, production, test) an agent gets every variable, the .env file its value comes from, the files it is overridden in, and which variables are missing or invalid.
- Precedence: resolves the value of each variable the way Next.js (default) or Vite loads
.envfiles. - Validation: checks values against a variable model you pass in (required, format, rules that depend on other variables). Without a model, every variable is still listed with its source file.
- Redaction: values of secret variables are returned as
[REDACTED]by default. - Editing: sets one variable in the right file, or reads and writes a whole
.envfile. Only the configured.envfile names can be read or written.
Works with single-app projects and monorepos. Apps are not detected automatically: without the apps setting the project root is read as one app, and monorepos list their apps.
Tools
| Tool | Does |
|---|---|
env_schema | Lists the variables of the model by group: description, type, required, secret, dependencies. Contains no values. |
env_read | Returns every variable of an app for a mode: value, source file, override chain, validation errors, dependency status. Required variables that no file sets are listed with source MISSING. |
env_update | Sets one variable in one .env file, replacing its line or appending it. Without file, secrets go to the mode's .local file and other variables to the mode's committed file. |
env_raw_read | Returns the content of one .env file. |
env_raw_write | Replaces the content of one .env file. |
registerEnvInspectorTools(server, service, { prefix, omit }): prefix is prepended to every name ('kit_' gives kit_env_read); omit leaves tools out by unprefixed name, e.g. ['env_raw_write'] when agents must change env files one key at a time.
mode accepts the configured modes (default development). file accepts only the configured .env file names. app selects the app when more than one is configured (default: the first).
Precedence
Files are listed from lowest to highest precedence. A file later in the list overrides the ones before it.
| Mode | Next.js (NEXTJS_ENV_FILES, default) | Vite (VITE_ENV_FILES) |
|---|---|---|
| development | .env, .env.development, .env.local, .env.development.local | .env, .env.local, .env.development, .env.development.local |
| production | .env, .env.production, .env.local, .env.production.local | .env, .env.local, .env.production, .env.production.local |
| test | .env, .env.test, .env.test.local | .env, .env.local, .env.test, .env.test.local |
Variables set in the shell or by the hosting platform are not read; only the files are.
In env_read:
sourceis the file the effective value comes from.isOverriddenis true when more than one definition exists, andoverrideChainlists all of them, lowest precedence first.- When one file defines a variable twice, the last definition in that file wins and validation fails with the line numbers.
sourceends with(conflict)only when the duplicates are in the file the effective value comes from (the highest-precedence file that sets it).
Parsing follows dotenv:
#comment lines and blank lines are skipped, andexport KEY=valueis accepted. A key is letters, digits,_,.and-; other lines are not assignments. LF and CRLF files read the same.- An unquoted value is trimmed and ends at the first
#, soKEY=a#breadsa. - A value in
",'or`is read whole, up to its closing quote, keeping spaces. A comment may follow it. Only double quotes unescape\"and\\. Single quotes, backticks and unquoted values are literal. - A quoted value that does not close on its line continues until a line ending with the closing quote (for example a PEM key).
Writing (env_update, setEnvValue): a plain value is written unquoted. A value with #, quotes, a newline or leading or trailing spaces is written in the first of ', " and ` that reads it back exactly. Carriage returns, and values containing all three quotes, are refused: no dotenv loader would read them back. A file that would not read back as written (every other variable unchanged, the new value exact) is not written: for example, an unclosed quote a person left on another line would otherwise pull the lines below it into one value.
Variable model
The model is an array of variables. Only name is required.
import type { EnvVariableModel } from '@makerkit/env-inspector';
import { z } from 'zod';
export const model: EnvVariableModel[] = [
{
name: 'DATABASE_URL',
description: 'Postgres connection string',
category: 'Database',
required: true,
secret: true,
type: 'url',
validate: ({ value }) => z.string().startsWith('postgres://').safeParse(value),
},
{
name: 'STRIPE_SECRET_KEY',
category: 'Billing',
secret: true,
contextualValidation: {
dependencies: [
{
variable: 'BILLING_PROVIDER',
condition: (value) => value === 'stripe',
message: 'STRIPE_SECRET_KEY is required when BILLING_PROVIDER is "stripe"',
},
],
validate: ({ value }) => z.string().startsWith('sk_').safeParse(value),
},
},
];
```…
Description from the npm listing.
- ai-agents
- dotenv
- env
- mcp
- nextjs
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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.
Each band is one page of 20. Weekly downloads on a linear 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.
Recent observations
Full history (121)Similar npm MCP servers plugins
All 20 @makerkit/env-inspector alternativesData 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/@makerkit/env-inspector. First seen Dec 4, 2026; last successful collection Dec 4, 2026. See the methodology.