Skip to main content

CLI tool that scans project dependencies for health issues

Project description

dep-detective ๐Ÿ”

A CLI tool that scans your project dependencies for health issues. Works with npm and Python projects.

Installation

pip install dep-detective

Or from source:

git clone https://github.com/hiren-thakore/dep-detective.git
cd dep-detective
pip install -e .

Usage

# Scan current project
dep-detective scan

# JSON output
dep-detective scan --json

# Skip security checks (faster)
dep-detective scan --no-security

# Skip size checks
dep-detective scan --no-size

# Scan a specific directory
dep-detective scan --dir /path/to/project

# Full markdown report
dep-detective report

# HTML report
dep-detective report --format html

# Ignore a package
dep-detective ignore lodash

# Watch mode (re-scan on file changes)
dep-detective monitor

# CI mode (exit 1 if critical issues)
dep-detective ci

What it checks

  • โš ๏ธ Abandoned deps โ€” No commits in 12+ months on GitHub
  • ๐Ÿ”ด Security โ€” Known CVEs via OSV API
  • ๐Ÿ“ฆ Size โ€” Oversized packages via Bundlephobia/PyPI
  • ๐ŸŸก Duplicates โ€” Overlapping functionality (lodash + underscore, etc.)
  • ๐Ÿ“œ License โ€” GPL in MIT project, etc.
  • ๐Ÿ“… Outdated โ€” Major versions behind
  • ๐Ÿ”“ Missing lockfiles โ€” No package-lock.json, Pipfile.lock, etc.

Supported Ecosystems

Ecosystem Files
npm package.json, package-lock.json
Python requirements.txt, pyproject.toml

More coming soon: Rust (Cargo.toml), Go (go.mod), Ruby (Gemfile).

Configuration

Create a .dep-detective-ignore file in your project root:

# Ignore these packages
lodash
moment

Example Output

๐Ÿ” Scanning project...

โ•ญโ”€โ”€ Dependencies (47 found) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚                                                                    โ”‚
โ”‚ โš ๏ธ  ABANDONED (1)                                                 โ”‚
โ”‚ โ””โ”€ request@2.88.2           Last commit: 1.3 years ago            โ”‚
โ”‚                                                                    โ”‚
โ”‚ ๐Ÿ”ด SECURITY (1)                                                   โ”‚
โ”‚ โ””โ”€ axios@0.21.1             CVE-2023-XXXX (medium)                โ”‚
โ”‚                                                                    โ”‚
โ”‚ ๐Ÿ“ฆ SIZE (1)                                                      โ”‚
โ”‚ โ””โ”€ moment@2.29.4            4.6MB (consider date-fns: 13KB)       โ”‚
โ”‚                                                                    โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Score: C+ (72/100) โ€” 3 issues found, 1 critical

License

MIT ยฉ Hiren Thakore

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dep_detective-0.1.0.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dep_detective-0.1.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file dep_detective-0.1.0.tar.gz.

File metadata

  • Download URL: dep_detective-0.1.0.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dep_detective-0.1.0.tar.gz
Algorithm Hash digest
SHA256 32b2fa29fb971f2cba58c9cf2fc7dabb6bebd2ce4e1f271899185223110bc980
MD5 d4bdeb88838e55e42470e4e5f80c2398
BLAKE2b-256 d498a73db275a3a94cd07dfb12107d4ff6fb202bf0a8625d4ebfca5f78f6af76

See more details on using hashes here.

File details

Details for the file dep_detective-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dep_detective-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for dep_detective-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 80e2171d970fdbf746dedb3cfcae4a230c8e7dfad4a15906c7ec8be0e705a635
MD5 d833f87262b3b156545a2fd848b09468
BLAKE2b-256 fb8038461e09097b343cb1d45e09d387756d7c176354c777431d1910a7d63e24

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page