Kavyr

Kavyr Documentation

Pre-install security scanner for npm packages

What is Kavyr?

Kavyr is a security tool that scans npm packages before you install them. It wraps your package manager (npm, pnpm, yarn, bun) and checks every package against known threats, malicious patterns, and suspicious behavior.

Think of it as a security checkpoint that runs automatically every time you install a package.

Installation

macOS / Linux

curl -fsSL https://kavyr.dev/install.sh | bash

Windows

irm https://kavyr.dev/install.ps1 | iex

After installation, restart your terminal. Kavyr will automatically protect all future package installations.

How It Works

  1. 1

    Intercept

    Kavyr wraps your package manager. When you run npm install lodash, Kavyr catches it first.

  2. 2

    Scan

    The package is checked against our threat database, analyzed for malicious patterns, and scored for risk.

  3. 3

    Decide

    Safe packages are installed normally. Risky packages show a warning. Malicious packages are blocked.

CLI Commands

CommandDescription
kavyr statusShow current protection status
kavyr scan <package>Manually scan a package without installing
kavyr loginLink device to your account
kavyr syncSync Pro status and features
kavyr toggleEnable/disable protection
kavyr trust <package>Whitelist a package you trust
kavyr updateUpdate Kavyr to latest version
kavyr uninstallRemove Kavyr from your system

Pro CommandsPRO

CommandDescription
kavyr monitor statusShow runtime monitoring status
kavyr monitor enableEnable runtime monitoring
kavyr monitor disableDisable runtime monitoring
kavyr monitor threatsShow detected runtime threats

What We Detect

🚫 Known Malware

Packages flagged in security advisories and CVE databases

🔤 Typosquatting

Fake packages mimicking popular libraries (lodahs, reacct)

⚡ Malicious Scripts

Suspicious postinstall, preinstall scripts

📊 Anomaly Detection

Sudden changes in package behavior or ownership

🔒 Credential Access

Code accessing ~/.ssh, ~/.aws, or environment variables

🌐 Network Exfiltration

Suspicious outbound connections during install

Free vs Pro

FeatureFreePro
Blocklist Scanning
Typosquat Detection
CVE Database
ML Anomaly Detection
Behavioral Sandbox
Runtime Monitoring
Dashboard & Analytics

View pricing →

FAQ

Does Kavyr slow down my installations?

Scans typically take 100-500ms. If the API is slow or unreachable, Kavyr falls back to allow the installation.

What data do you collect?

We collect an anonymous device ID and the names of scanned packages. No source code, no personal data, no tracking. See our Privacy Policy.

Can I use Kavyr in CI/CD?

Yes! Kavyr works in any environment. For CI, you can use the install script in your pipeline and it will protect all package installations.

What if Kavyr blocks a legitimate package?

Use kavyr trust <package> to whitelist it. If you think it's a false positive, let us know!

Need Help?

Have questions or found a bug? Reach out at hello@kavyr.dev or open an issue on GitHub.