Skip to content

Type to search extensions

Depsy

v2.1.2

Dependency management for Zed - version hints, updates, and vulnerability detection

Updated 3 weeks ago
3.9k downloads 41 stars Repository ↗

Depsy for Zed

License: MIT Documentation GitHub CI CodSpeed GitHub release Issues Pull Requests Contributor Covenant

Dependency management extension for the Zed editor.

Version: 2.2.1

Demo

📚 Documentation: Full documentation available here

Features

  • Inlay Hints: See latest versions inline next to your dependencies
    • ✓ - Version is up to date
    • -> X.Y.Z - Update available
    • ⚠ N vulns - Vulnerabilities detected
    • ⚠ Deprecated - Package is deprecated
    • ⊘ Yanked - Version has been yanked
    • → Local - Local/path dependency
    • ? Unknown - Could not fetch version info
  • Vulnerability Scanning: Real-time security scanning via OSV.dev
    • CVE details in hover tooltips
    • Severity indicators: ⚠ CRITICAL, ▲ HIGH, ● MEDIUM, ○ LOW
    • Severity-based diagnostics (Critical/High → ERROR, Medium → WARNING, Low → HINT)
    • Generate JSON/Markdown vulnerability reports
  • Diagnostics: Outdated dependencies are highlighted with hints
  • Code Actions: Quick fix to update dependencies with semver-aware labels
    • ⚠ MAJOR: Breaking changes (not auto-preferred)
    • + minor: New features
    • · patch: Bug fixes
    • * prerelease: Experimental versions
  • Hover Info: Package descriptions, licenses, and links
  • Autocompletion: Version suggestions when editing dependencies
  • Persistent Cache: SQLite cache for faster startup across sessions
  • Configurable: Enable/disable features, ignore packages, adjust TTL

Supported Languages

Language File Registry Status
Rust Cargo.toml crates.io + alternative registries ✅
JavaScript/TypeScript package.json, pnpm-workspace.yaml npm (+ pnpm workspace catalogs) ✅
Python requirements.txt, constraints.txt, pyproject.toml, hatch.toml PyPI ✅
Go go.mod proxy.golang.org ✅
PHP composer.json Packagist ✅
Dart/Flutter pubspec.yaml pub.dev ✅
C#/.NET *.csproj, Directory.Build.props, Directory.Packages.props NuGet ✅
Ruby Gemfile RubyGems.org ✅
Java pom.xml Maven Central ✅

Installation

From Zed Extensions

  1. Open Zed editor
  2. Press Cmd+Shift+P (Mac) or Ctrl+Shift+P (Linux/Windows)
  3. Type "extensions" and select zed: extensions
  4. Search for "Depsy"
  5. Click Install

The extension will automatically download and install the language server.

The download happens once per extension version, from https://github.com/mpiton/zed-depsy/releases: the extension installs the language-server release that matches its own version. Later start-ups use the binary already on disk and make no network request.

Offline / Air-Gapped Installation

When Zed cannot reach github.com (corporate proxy, air-gapped machine), two options:

  • Keep an earlier download. If an earlier extension version already downloaded a language server, the extension starts that one and prints a line on stderr (zed --foreground) saying which. Nothing to configure.

  • Provide the binary yourself. Download the archive for your platform from the releases page, or build it with cargo build --release in depsy-lsp/, copy the binary onto the machine and point Zed at it in settings.json:

    {
      "lsp": {
        "depsy": {
          "binary": {
            "path": "/opt/depsy/depsy-lsp"
          }
        }
      }
    }

    Zed then starts that binary directly and never asks the extension to download anything. Keeping it in step with the extension version is up to you.

Downloaded binaries live in Zed's extension work directory: ~/.local/share/zed/extensions/work/depsy-lsp/ on Linux, ~/Library/Application Support/Zed/extensions/work/depsy-lsp/ on macOS, %LOCALAPPDATA%\Zed\extensions\work\depsy-lsp\ on Windows.

Manual Installation (Development)

  1. Clone this repository
  2. Build the LSP and extension:
# Build the LSP
cd depsy-lsp
cargo build --release

# Build the extension
cd ../depsy-zed
cargo build --release --target wasm32-wasip1
  1. In Zed, run zed: install dev extension and select the depsy-zed directory

Project Structure

zed-depsy/
├── depsy-lsp/           # Language Server (Rust binary)
│   ├── src/
│   │   ├── main.rs        # Entry point
│   │   ├── lib.rs         # Library exports
│   │   ├── backend.rs     # LSP implementation
│   │   ├── config.rs      # Configuration management
│   │   ├── document.rs    # Document/text utilities
│   │   ├── file_types.rs  # File type detection
│   │   ├── reports.rs     # Vulnerability report generation
│   │   ├── utils.rs       # Shared utilities
│   │   ├── auth/          # Registry authentication
│   │   ├── parsers/       # Dependency file parsers
│   │   │   ├── cargo.rs   # Cargo.toml parser
│   │   │   ├── cargo_lock.rs # Cargo.lock lockfile
│   │   │   ├── npm.rs     # package.json parser
│   │   │   ├── npm_lock.rs # package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lock
│   │   │   ├── pnpm_workspace.rs # pnpm-workspace.yaml catalog resolution
│   │   │   ├── python.rs  # requirements.txt, constraints.txt, pyproject.toml, hatch.toml
│   │   │   ├── python_lock.rs # poetry.lock, uv.lock, pdm.lock, Pipfile.lock
│   │   │   ├── go.rs      # go.mod parser
│   │   │   ├── go_sum.rs  # go.sum lockfile
│   │   │   ├── php.rs     # composer.json parser
│   │   │   ├── composer_lock.rs # composer.lock lockfile
│   │   │   ├── ruby.rs    # Gemfile parser
│   │   │   ├── gemfile_lock.rs # Gemfile.lock lockfile
│   │   │   ├── dart.rs    # pubspec.yaml parser
│   │   │   ├── pubspec_lock.rs # pubspec.lock lockfile
│   │   │   ├── csharp.rs  # .NET/NuGet MSBuild manifest parser
│   │   │   ├── packages_lock_json.rs # packages.lock.json lockfile
│   │   │   ├── maven.rs   # pom.xml parser
│   │   │   ├── json_spans.rs # Shared JSON span tracking
│   │   │   ├── lockfile_graph.rs # Transitive dependency graph
│   │   │   └── lockfile_resolver.rs # Manifest ↔ lockfile resolution
│   │   ├── registries/    # Package registry clients
│   │   │   ├── crates_io.rs    # crates.io API
│   │   │   ├── cargo_sparse.rs # Cargo alternative registries (sparse index)
│   │   │   ├── npm.rs          # npm registry
│   │   │   ├── pypi.rs         # PyPI registry
│   │   │   ├── go_proxy.rs     # Go module proxy
│   │   │   ├── packagist.rs    # Packagist (PHP)
│   │   │   ├── pub_dev.rs      # pub.dev (Dart)
│   │   │   ├── nuget.rs        # NuGet (.NET)
│   │   │   ├── rubygems.rs     # RubyGems
│   │   │   ├── maven_central.rs # Maven Central (Java)
│   │   │   ├── http_client.rs  # Shared HTTP client
│   │   │   ├── url_sanitizer.rs # Registry URL hardening
│   │   │   └── version_utils.rs # Shared version utilities
│   │   ├── providers/     # LSP feature providers
│   │   │   ├── inlay_hints.rs
│   │   │   ├── diagnostics.rs
│   │   │   ├── code_actions.rs
│   │   │   ├── completion.rs
│   │   │   └── document_links.rs # Clickable dependency links
│   │   ├── cache/         # Caching layer
│   │   │   ├── mod.rs     # Memory + hybrid cache
│   │   │   └── sqlite.rs  # SQLite persistent cache
│   │   └── vulnerabilities/ # Security scanning via OSV
│   └── tests/             # Integration tests
├── depsy-zed/           # Zed Extension (WASM)
│   ├── extension.toml
│   └── src/lib.rs
└── .github/workflows/     # CI/CD
    ├── ci.yml             # Build & test
    └── release.yml        # Release binaries

Development

Prerequisites

  • Rust 1.94+ (edition 2024)
  • wasm32-wasip1 target: rustup target add wasm32-wasip1

Building

# Build LSP (release)
cd depsy-lsp
cargo build --release

# Run tests
cargo test

# Build extension
cd ../depsy-zed
cargo build --release --target wasm32-wasip1

Testing

# Run all tests
cd depsy-lsp
cargo test

# Run specific test modules
cargo test parsers::cargo
cargo test parsers::python
cargo test parsers::go
cargo test registries
cargo test providers

Debugging

# Run LSP with debug logs
cd depsy-lsp
RUST_LOG=debug cargo run

# View Zed logs
zed --foreground

Configuration

Configure Depsy in your Zed settings.json:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "inlay_hints": {
          "enabled": true,
          "show_up_to_date": true
        },
        "diagnostics": {
          "enabled": true
        },
        "cache": {
          "ttl_secs": 3600
        },
        "security": {
          "enabled": true,
          "show_in_hints": true,
          "show_diagnostics": true,
          "min_severity": "low"
        },
        "deprecated": {
          "show_in_hints": true,
          "show_diagnostics": true,
          "allow": ["fxhash", "@types/*"]
        },
        "ignore": ["internal-*", "test-pkg"]
      }
    }
  }
}

Configuration Options

Option Type Default Description
inlay_hints.enabled bool true Enable/disable inlay hints
inlay_hints.show_up_to_date bool true Show hints for up-to-date packages
diagnostics.enabled bool true Enable/disable diagnostics
cache.ttl_secs number 3600 Version cache TTL in seconds (1 hour), clamped to 60–315360000
cache.debounce_ms number 200 Debounce delay for file change notifications (ms)
ignore string[] [] Package names/patterns to ignore
security.enabled bool true Enable/disable vulnerability scanning
security.show_in_hints bool true Show vulnerability count in inlay hints
security.show_diagnostics bool true Show vulnerability diagnostics
security.min_severity string "low" Minimum severity to report (low/medium/high/critical)
security.cache_ttl_secs number 21600 Vulnerability cache TTL in seconds (6 hours)
deprecated.show_in_hints bool true Show the deprecated marker in inlay hints
deprecated.show_diagnostics bool true Show the deprecated diagnostic
deprecated.allow string[] [] Package names/patterns whose deprecation is hidden on both surfaces; still checked for versions and other vulnerabilities

allow patterns match the declared name and, for an npm alias, the aliased package. A hidden deprecation also drops the RustSec "unmaintained" advisory that reported it, including when it comes from a transitive package. The inlay hint then falls back to the remaining vulnerabilities, then to the outdated or up-to-date status; the diagnostic shows the remaining vulnerabilities or the outdated warning, and nothing otherwise. Hover still lists the advisory, and the vulnerability report lists it for direct dependencies. Yanked versions are still flagged.

Private Registries

Depsy supports custom registries for enterprise environments.

Cargo Alternative Registries

Query private Cargo registries (Kellnr, Cloudsmith, Artifactory, etc.) alongside crates.io:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "registries": {
          "cargo": {
            "registries": {
              "my-registry": {
                "index_url": "https://my-registry.example.com/api/v1/crates",
                "auth": {
                  "type": "env",
                  "variable": "MY_REGISTRY_TOKEN"
                }
              }
            }
          }
        }
      }
    }
  }
}

Then in your Cargo.toml, use the registry field:

[dependencies]
my-crate = { version = "0.1.0", registry = "my-registry" }
serde = "1.0"  # still fetched from crates.io

Key points:

  • The index_url is the sparse index URL (without the sparse+ prefix)
  • Authentication can be configured via LSP settings or falls back to ~/.cargo/credentials.toml
  • Dependencies without a registry field are fetched from crates.io as usual
npm Scoped Registries

Configure scoped registries to use private npm packages alongside public ones:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "registries": {
          "npm": {
            "url": "https://registry.npmjs.org",
            "scoped": {
              "company": {
                "url": "https://npm.company.com",
                "auth": {
                  "type": "env",
                  "variable": "COMPANY_NPM_TOKEN"
                }
              }
            }
          }
        }
      }
    }
  }
}

Key points:

  • Scope names don't include the @ prefix (use "company" not "@company")
  • Authentication tokens are read from environment variables (never hardcoded)
  • Auth headers are only sent over HTTPS

For detailed configuration including supported registry types, authentication setup, and troubleshooting, see the Private Registries Guide.

CI/CD Integration

The depsy-lsp provides a standalone CLI scan command for integrating vulnerability scanning into your CI/CD pipelines.

CLI Scan Command

depsy-lsp scan --file <path> [options]
Options
Option Short Default Description
--file <path> -f required Path to dependency file to scan
--output <format> -o summary Output format: summary, json, markdown, html
--min-severity <level> -m low Minimum severity to report: low, medium, high, critical
--fail-on-vulns true Exit with code 1 if vulnerabilities are found
--no-use-lockfile (off) Disable lockfile-based scanning. By default, when a sibling lockfile from one of the wired ecosystems is present, the scanner walks the full dependency graph; this flag restricts it to direct dependencies only. Lockfiles with full graph support today: Cargo.lock, package-lock.json, yarn.lock, pnpm-lock.yaml, poetry.lock, uv.lock, composer.lock, Gemfile.lock. Limits for npm: a Yarn Berry yarn.lock drops workspace:, portal:, link:, file: and exec: entries along with their edges, a package-lock.json lists an alias under its local name, so the real package behind it is not scanned as transitive, and only one locked version is checked per direct dependency. A version that is a local path, URL or protocol source, such as file:packages/x or https://host/x.tgz, is never sent to OSV, so that package gets no advisory; with pnpm-lock.yaml, what it depends on is still scanned. A typical Pipfile.lock records no edges between its packages, so transitive dependencies are not scanned from it. Lockfiles detected but currently treated as empty graphs: bun.lock, pdm.lock. Go (go.sum), Dart (pubspec.lock), .NET (packages.lock.json), and Maven have no lockfile graph parser yet.
Supported Files
  • Rust: Cargo.toml
  • JavaScript/TypeScript: package.json, pnpm-workspace.yaml
  • Python: requirements.txt, pyproject.toml
  • Go: go.mod
  • PHP: composer.json
  • Dart/Flutter: pubspec.yaml
  • C#/.NET: *.csproj
  • Ruby: Gemfile
  • Java: pom.xml

Note: The CLI scan subcommand only routes the files listed above. Inside the LSP (when editing in Zed), constraints.txt, hatch.toml, Directory.Build.props, and Directory.Packages.props are also recognised; the standalone CLI scanner does not currently route them.

Exit Codes
Code Meaning
0 Success - no vulnerabilities found (or --fail-on-vulns=false)
1 Failure - vulnerabilities found, file error, or network error

Output Examples

Summary Output (default)
depsy-lsp scan --file Cargo.toml
Vulnerability Scan Results for Cargo.toml

  ⚠ Critical: 0
  ▲ High:     1
  ● Medium:   2
  ○ Low:      0
  ─────────────
  Total:      3

⚠ 3 vulnerabilities found!
JSON Output
depsy-lsp scan --file Cargo.toml --output json
{
  "file": "Cargo.toml",
  "summary": {
    "total": 3,
    "critical": 0,
    "high": 1,
    "medium": 2,
    "low": 0
  },
  "vulnerabilities": [
    {
      "package": "tokio",
      "version": "1.35.0",
      "id": "RUSTSEC-2024-0001",
      "severity": "high",
      "description": "Race condition in tokio::time",
      "url": "https://rustsec.org/advisories/RUSTSEC-2024-0001"
    }
  ]
}
Markdown Output
depsy-lsp scan --file Cargo.toml --output markdown

Generates a formatted report with severity table and detailed vulnerability listings.

CI/CD Pipeline Examples

GitHub Actions

Create .github/workflows/security-scan.yml:

name: Security Scan

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  scan:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable

      - name: Install depsy-lsp
        run: cargo install --git https://github.com/mpiton/zed-depsy --bin depsy-lsp

      - name: Scan dependencies
        run: depsy-lsp scan --file Cargo.toml --min-severity high

      - name: Generate report
        if: always()
        run: |
          depsy-lsp scan --file Cargo.toml --output markdown > security-report.md

      - name: Upload report
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: security-report
          path: security-report.md
GitLab CI

Add to .gitlab-ci.yml:

security-scan:
  stage: test
  image: rust:latest
  script:
    - cargo install --git https://github.com/mpiton/zed-depsy --bin depsy-lsp
    - depsy-lsp scan --file Cargo.toml --min-severity high
  artifacts:
    when: always
    paths:
      - security-report.md
    reports:
      sast: security-report.json
  allow_failure: false

Best Practices

  1. Block on High/Critical: Use --min-severity high to fail builds only on serious vulnerabilities
  2. Generate Reports: Use --output markdown or --output json for audit trails
  3. Scheduled Scans: Run daily scans to catch newly disclosed vulnerabilities
  4. Multiple Files: Scan all dependency files in monorepos

How It Works

  1. When you open a dependency file, the LSP parses it to extract dependencies
  2. For each dependency, it queries the appropriate registry
  3. Version information is cached (memory + SQLite) to avoid repeated network requests
  4. Inlay hints show whether each dependency is up-to-date or has updates available
  5. Diagnostics highlight outdated dependencies
  6. Code actions allow quick updates to the latest version
  7. Hovering over a dependency shows detailed package information

Architecture

┌─────────────────────────────────────────────────────────────┐
│                         Zed Editor                          │
├─────────────────────────────────────────────────────────────┤
│                    depsy-zed (WASM)                         │
│  - Downloads and launches the LSP binary                    │
└─────────────────────────────────────────────────────────────┘
                              │ stdio (JSON-RPC)
                              ▼
┌─────────────────────────────────────────────────────────────┐
│                   depsy-lsp (Binary)                        │
├─────────────────────────────────────────────────────────────┤
│  ┌──────────────┐  ┌──────────────┐  ┌──────────────┐      │
│  │   Parsers    │  │  Providers   │  │  Registries  │      │
│  ├──────────────┤  ├──────────────┤  ├──────────────┤      │
│  │ • Cargo.toml │  │ • Inlay Hints│  │ • crates.io  │      │
│  │ • package.json│ │ • Diagnostics│  │ • Cargo alt  │      │
│  │ • pnpm-workspace│ • Code Action│  │ • npm        │      │
│  │ • requirements│ │ • Completion │  │ • PyPI       │      │
│  │ • constraints│  │ • Hover      │  │ • Go Proxy   │      │
│  │ • pyproject  │  │ • Doc Links  │  │ • Packagist  │      │
│  │ • go.mod     │  └──────────────┘  │ • pub.dev    │      │
│  │ • composer   │                    │ • NuGet      │      │
│  │ • pubspec    │                    │ • RubyGems   │      │
│  │ • .NET files │                    │ • Maven Cent.│      │
│  │ • Gemfile    │                    └──────────────┘      │
│  │ • pom.xml    │                                           │
│  └──────────────┘                                           │
│                                                             │
│  ┌──────────────────────────────────────────────────────┐  │
│  │                    Cache Layer                        │  │
│  │  • Memory cache (fast access)                        │  │
│  │  • SQLite cache (persistent, ~/.cache/depsy/)        │  │
│  └──────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────┘

Troubleshooting

LSP Server Not Starting

Symptoms:

  • No inlay hints or diagnostics appear
  • No completions for dependency versions
  • Extension seems inactive

Solutions:

  1. Check Zed's extension panel to verify Depsy is installed and enabled
  2. View Zed logs for errors: run zed --foreground from terminal
  3. Reinstall the extension from Zed Extensions marketplace
  4. Check if firewall/proxy is blocking network requests to package registries
  5. If github.com is blocked on your network, point Zed at a binary you provide with lsp.depsy.binary.path (see Offline / Air-Gapped Installation)

LSP Server Crashes or Freezes

Symptoms:

  • Editor becomes unresponsive when opening dependency files
  • LSP process repeatedly restarts
  • High memory usage

Solutions:

  1. Clear the cache directory and restart Zed:
    # Linux
    rm -rf ~/.cache/depsy/
    
    # macOS
    rm -rf ~/Library/Caches/depsy/
    
    # Windows
    rmdir /s %LOCALAPPDATA%\depsy
  2. Update to the latest Depsy version
  3. Check if the issue occurs with a specific dependency file
  4. File a bug report with reproduction steps

Outdated Cache Data

Symptoms:

  • Recently published packages not showing as latest
  • Old version information displayed
  • Known updates not appearing

Solutions:

  1. While a manifest is open, data past its cache lifetime (cache.ttl_secs, 1 hour by default) is fetched again in the background, and the hints update by themselves. Refresh checks run every 10 seconds
  2. Clear cache manually to force refresh:
    rm -rf ~/.cache/depsy/
  3. Restart Zed after clearing cache
  4. Verify the registry is accessible (try visiting crates.io, npmjs.com, etc.)

Registry Rate Limiting

Symptoms:

  • Intermittent failures fetching package info
  • ? Unknown hints appearing temporarily
  • Slow responses when opening files

Solutions:

  1. Wait a few minutes for rate limits to reset
  2. The cache reduces API calls - avoid clearing cache unnecessarily
  3. For npm, consider setting up authentication (see registry documentation)
  4. Large monorepos may trigger rate limits - be patient on first load

Network/Proxy Issues

Symptoms:

  • All package lookups failing
  • Timeout errors in logs
  • Works on some networks but not others

Solutions:

  1. Configure system proxy settings (Depsy uses system proxy)
  2. Ensure registry URLs are allowed through corporate firewall:
    • https://crates.io
    • https://registry.npmjs.org
    • https://pypi.org
    • https://proxy.golang.org
    • https://packagist.org
    • https://pub.dev
    • https://api.nuget.org
    • https://rubygems.org
    • https://api.osv.dev (vulnerability scanning)
    • https://github.com and https://release-assets.githubusercontent.com (language server download, once per extension version)
  3. Check DNS resolution for registry domains
  4. Try temporarily disabling VPN if using one

Configuration Not Applying

Symptoms:

  • Custom settings in settings.json are ignored
  • Default behavior despite configuration changes

Solutions:

  1. Verify JSON syntax is valid in settings.json
  2. Ensure settings are under the correct path:
    {
      "lsp": {
        "depsy": {
          "initialization_options": {
            // your settings here
          }
        }
      }
    }
  3. Restart Zed after configuration changes
  4. Check for typos in setting names (see Configuration Options table above)

FAQ

How does the cache work?

Depsy uses a hybrid caching system:

  • Memory cache: Fast access during the current session
  • SQLite cache: Persistent storage in the system cache directory:
    • Linux: ~/.cache/depsy/cache.db
    • macOS: ~/Library/Caches/depsy/cache.db
    • Windows: %LOCALAPPDATA%\depsy\cache.db

Cache entries expire after 1 hour by default, then stay available for 7 days as a fallback. cache.ttl_secs sets the lifetime of entries written after the change; an existing entry lasts for the shorter of the lifetime it was written with and the current one. Vulnerability data is cached for 6 hours. While a dependency file is open, cached data is shown immediately and expired data is fetched again in the background.

How do I clear the cache?

Delete the cache directory:

# Linux
rm -rf ~/.cache/depsy/

# macOS
rm -rf ~/Library/Caches/depsy/

# Windows
rmdir /s %LOCALAPPDATA%\depsy

Then restart Zed. The cache will rebuild as you open dependency files.

Can I use this offline?

Yes, with limitations. Cached packages stay available offline for 7 days after their cache lifetime ends (cache.ttl_secs, 1 hour by default), shown as they were last fetched. That window is not configurable. New packages or those not in cache won't have version information, and update code actions need data within that lifetime.

Which package registries are supported?

Language Registry URL
Rust crates.io (+ alternative registries) https://crates.io
JavaScript/TypeScript npm https://registry.npmjs.org
Python PyPI https://pypi.org
Go Go Proxy https://proxy.golang.org
PHP Packagist https://packagist.org
Dart/Flutter pub.dev https://pub.dev
C#/.NET NuGet https://api.nuget.org
Ruby RubyGems https://rubygems.org
Java Maven Central https://repo.maven.apache.org/maven2

What data does the extension collect?

Depsy:

  • Fetches package metadata from public registries
  • Queries OSV.dev API for vulnerability information
  • Caches all data locally on your machine
  • Does NOT send your code, file contents, or personal data anywhere
  • Only makes requests to official package registries and OSV.dev

How does vulnerability scanning work?

Depsy queries the OSV.dev API (Google's Open Source Vulnerability database) for each of your dependencies. The results show:

  • Severity levels: Critical, High, Medium, Low
  • CVE/Advisory IDs in hover tooltips
  • Diagnostic markers in the editor

Configure minimum severity level with security.min_severity:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "security": {
          "min_severity": "high"
        }
      }
    }
  }
}

How do I disable specific features?

Use initialization_options in your Zed settings:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "inlay_hints": { "enabled": false },
        "diagnostics": { "enabled": false },
        "security": { "enabled": false }
      }
    }
  }
}

How do I ignore certain packages?

Use the ignore setting with glob patterns:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "ignore": ["internal-*", "my-private-pkg", "@company/*"]
      }
    }
  }
}

Ignored packages are never looked up on their registry and get no inlay hint or diagnostic; their hover says they are ignored. When vulnerability scanning is enabled, their names are still sent to OSV.dev, and their hover lists what OSV found.

Why do some packages show "? Unknown"?

This can happen when:

  • The package doesn't exist on the registry
  • Network request failed or timed out
  • Registry is temporarily unavailable
  • Package name has a typo

Check your network connection and verify the package exists on its registry.

While a manifest is open, the language server periodically retries every failed lookup in the background, including packages the registry reports as missing. Refresh checks run every 10 seconds; repeated failures then back off from 10 seconds up to 30 minutes. The hint updates by itself once a lookup succeeds; closing and reopening the file is not needed. To stop the background retries for a package that will never resolve, such as a private one, add it to ignore. A Cargo dependency declared with path or git is never looked up and shows → Local, so it needs no ignore entry.

Can I see outdated packages without inlay hints?

Yes! Even with inlay hints disabled, diagnostics will highlight outdated dependencies. Enable diagnostics in settings:

{
  "lsp": {
    "depsy": {
      "initialization_options": {
        "diagnostics": { "enabled": true }
      }
    }
  }
}

How do I report a bug or request a feature?

  1. Check existing issues first
  2. Open a new issue with:
    • Depsy version
    • Zed version
    • Operating system
    • Steps to reproduce
    • Expected vs actual behavior
    • Relevant logs (zed --foreground)

How do I contribute?

See CONTRIBUTING.md for guidelines. Briefly:

  1. Fork the repository
  2. Create a feature branch
  3. Make changes and add tests
  4. Run cargo test and cargo clippy
  5. Submit a pull request

Roadmap

  • v0.1.0 (MVP): Cargo.toml + package.json support with inlay hints
  • v0.2.0: Python/Go/PHP support, diagnostics, code actions, SQLite cache, configuration
  • v0.3.0: Vulnerability detection (OSV.dev), Dart/Flutter and C#/.NET support
  • v1.0.0: Published to Zed Extensions marketplace ✨

Contributing

Contributions are welcome! See CONTRIBUTING.md for detailed guidelines on:

  • Setting up your development environment
  • Code style and standards
  • Adding support for new languages
  • Submitting pull requests

License

MIT - See LICENSE

Acknowledgments