New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

depfix-ai

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depfix-ai

[![npm version](https://img.shields.io/npm/v/depfix-ai.svg)](https://www.npmjs.com/package/depfix-ai) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

latest
Source
npmnpm
Version
0.2.20
Version published
Maintainers
1
Created
Source

depfix-ai

npm version License: MIT

CLI for dependency audit, env file generation, and contributor onboarding. Fix your deps, generate .env.example, and get projects ready in one command.

Requires Node.js ≥ 18.

Install

Global (npm or pnpm):

npm install -g depfix-ai
# or
pnpm add -g depfix-ai

Run without installing (npx / pnpm dlx):

npx depfix-ai@latest         # Recommended: always runs latest (bypasses cache)
npx depfix-ai-latest         # Same as above (alias)
npx depfix-ai                # May use cached version
npx depfix-ai --help
pnpm dlx depfix-ai@latest

Quick start

Running npx depfix-ai or depfix-ai with no args launches the interactive menu. Or run commands directly:

depfix-ai audit              # Security audit + human summary
depfix-ai env generate       # Scan source → .env.example
depfix-ai onboard            # Install deps + env + tests
depfix-ai fix                # Preview fixes (dry-run); use --apply to apply

One-off (no install):

npx depfix-ai@latest         # Interactive menu (recommended – always latest)
npx depfix-ai audit
pnpm dlx depfix-ai@latest env generate

Commands

depfix-ai audit

Run a security audit and get a human-readable summary (npm and pnpm).

FlagDescription
--jsonPrint raw npm audit JSON
--severity <level>low | moderate | high | critical (default: low)
--failExit 1 if vulnerabilities ≥ severity
depfix-ai audit
depfix-ai audit --severity high --fail
depfix-ai audit --json

depfix-ai env generate

Scan source for process.env.* and import.meta.env.*; generate grouped .env.example (and optionally a blank .env).

FlagDescription
--out <path>Output file (default: .env.example)
--createCreate .env with blank values if missing
--forceOverwrite .env when used with --create
--checkVerify .env.example has all vars; exit 1 if not
depfix-ai env generate
depfix-ai env generate --create
depfix-ai env generate --check

depfix-ai fix

Preview dependency fixes (dry-run by default). Use --apply to write changes.

FlagDescription
--applyApply changes
--forcePass --force to npm audit fix
--stashAuto-stash if git dirty
--commitAuto-commit with chore(deps): audit fix
--dry-runPreview only (default)
depfix-ai fix
depfix-ai fix --apply

depfix-ai onboard

One-command setup: backup (git stash), install deps, env generate, run tests.

FlagDescription
--skip-installSkip npm install
--skip-envSkip env generate
--skip-testSkip test script
depfix-ai onboard
depfix-ai onboard --skip-test

Development

git clone https://github.com/hesxo/depfix-ai.git
cd depfix-ai
npm ci
# or: pnpm install
npm run build
npm test

Scripts: build · test · lint · version:patch

License

MIT

FAQs

Package last updated on 13 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts