whatisgithub

What is safer-dependencies?

robert-auger/safer-dependencies — explained in plain English

Analysis updated 2026-05-18

26PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

A Claude Code security add-on that checks new dependencies for vulnerabilities, typosquats, and abandonment before or right after they land in your project.

Mindmap

mindmap
  root((safer-dependencies))
    What it does
      Checks new packages
      Blocks typosquats
      Fixes vulnerable versions
    Tech stack
      Python
      Claude Code
      OSV API
    Use cases
      Catch a vulnerable dependency
      Block a typosquatted package
      Audit install commands
      Log every check
    Audience
      Developers using Claude Code

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Automatically catch a vulnerable package version before it ships in your project.

USE CASE 2

Block a typosquatted or abandoned package from being installed.

USE CASE 3

Audit package manager install commands before they run.

USE CASE 4

Keep a monthly log of every dependency check the tool performed.

What is it built with?

PythonClaude CodeOSV API

How does it compare?

robert-auger/safer-dependencies95ge/cfquantaevella/sky-pc-mcp-companion
Stars262626
LanguagePythonPythonPython
Setup difficultymoderatemoderatemoderate
Complexity3/53/53/5
Audiencedeveloperdevelopervibe coder

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Claude Code with hooks configured in .claude/settings.json, plus Python for the bundled checking scripts.

Free to use and modify, including commercially, but you cannot resell the tool itself or offer it as a paid hosted service without a separate commercial license.

So what is it?

Safer-dependencies is a security add-on for Claude Code that checks any software package the AI tries to add to your project before it becomes a real risk. When an AI coding assistant adds a dependency, it often picks a version without checking whether that version has known vulnerabilities, whether the package name is a near copy of a popular one set up to trick people, or whether the package has been abandoned by its maintainers. This tool sits between Claude and your project files and runs those checks automatically. When Claude is about to add a package, the tool runs five checks: it confirms the package comes from the official registry and is not a typo based lookalike, it picks the newest stable version that has been out for at least seven days rather than something just published, it scans for known vulnerabilities using the OSV database plus tools native to each ecosystem, it verifies file hashes for pinned Python packages where possible, and it flags or blocks packages that are known to be abandoned or have had no stable release in over two years. Every check gets written to a monthly audit log on your machine. It works across npm, PyPI, RubyGems, Maven, Go, Rust, and PHP's Composer. There are several operating modes: a manual mode that runs the checks inline as Claude writes code, an automatic intercept mode that corrects a manifest file right after Claude writes it using a hook, and a pre install mode that checks package manager commands like npm install before they run and can block the install outright if a pinned version is known to be vulnerable. The project is source available rather than open source under a standard license. You can use and modify it freely, including inside a company or a product you sell, but a separate paid license is required if you want to sell the tool itself, bundle it into a paid product, or offer its functionality to others as a hosted service. It requires Claude Code and Python to run its checking scripts.

Copy-paste prompts

Prompt 1
Explain how safer-dependencies' intercept mode corrects a manifest file after Claude writes it.
Prompt 2
Walk me through setting up the pre install Bash hook so npm install commands get checked first.
Prompt 3
What is the difference between a hard blocked package and a package flagged as stale in safer-dependencies?
Prompt 4
How does safer-dependencies decide which package version to auto select when adding a new dependency?

Frequently asked questions

What is safer-dependencies?

A Claude Code security add-on that checks new dependencies for vulnerabilities, typosquats, and abandonment before or right after they land in your project.

What language is safer-dependencies written in?

Mainly Python. The stack also includes Python, Claude Code, OSV API.

What license does safer-dependencies use?

Free to use and modify, including commercially, but you cannot resell the tool itself or offer it as a paid hosted service without a separate commercial license.

How hard is safer-dependencies to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is safer-dependencies for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.