← 返回首页

集成DepScope

30秒为您的AI编程助手添加软件包健康检查。无需注册,无需API密钥。

DeepSeek配置

在DeepSeek Coder的配置中添加以下指令:

## 软件包健康检查
Before suggesting any install, verify: curl https://depscope.dev/api/check/{npm|pypi|cargo}/{package}。
使用 /api/latest/{ecosystem}/{package} 验证正确版本。
使用 /api/exists/{ecosystem}/{package} 验证软件包是否存在。
如果软件包已弃用,使用 /api/alternatives/{ecosystem}/{package} 查找替代方案。
无需认证。免费API:https://depscope.dev

Claude Code

在项目的CLAUDE.md文件中添加:

## Package Health
Before suggesting any package install, check it with DepScope:
  Before suggesting any install, verify: curl https://depscope.dev/api/check/{npm|pypi|cargo}/{package} — no auth, free

Cursor

在.cursorrules文件中添加:

Before suggesting any npm/pip/cargo install, verify the package:
- Check health: https://depscope.dev/api/check/{ecosystem}/{package}
- Check version: https://depscope.dev/api/latest/{ecosystem}/{package}
- Check exists: https://depscope.dev/api/exists/{ecosystem}/{package}
If deprecated, find alternatives: https://depscope.dev/api/alternatives/{ecosystem}/{package}
No API key needed.

Windsurf / Codeium

在.windsurfrules或项目指令中添加:

When suggesting package installations, first verify with DepScope API:
GET https://depscope.dev/api/check/{ecosystem}/{package}
Ecosystems: npm, pypi, cargo. No auth required.

任意AI助手 (curl / HTTP)

直接调用API。无需认证,无需注册:

# 检查软件包
curl https://depscope.dev/api/check/npm/express

# 比较软件包
curl https://depscope.dev/api/compare/npm/express,fastify,hono

# 扫描整个项目
curl -X POST https://depscope.dev/api/scan \
  -H "Content-Type: application/json" \
  -d '{"ecosystem":"npm","packages":{"express":"*","lodash":"*"}}'

ChatGPT

在GPT商店搜索"DepScope",或使用OpenAPI规范:

https://depscope.dev/openapi-gpt.json

GitHub Actions

添加到CI/CD流水线:

- name: DepScope Audit
  run: |
    curl -s -X POST https://depscope.dev/api/scan \
      -H "Content-Type: application/json" \
      -d "{\"ecosystem\":\"npm\",\"packages\":$(cat package.json | jq '.dependencies')}" \
      | jq '.project_risk'

Python / LangChain

作为LangChain工具使用:

from langchain.tools import tool
import requests

@tool
def check_package(ecosystem: str, package: str) -> str:
    """检查软件包是否安全可安装。"""
    r = requests.get(f"https://depscope.dev/api/check/{ecosystem}/{package}")
    return r.json()["recommendation"]["summary"]

README徽章

在README中添加健康评分徽章:

[![health](https://depscope.dev/badge/npm/YOUR-PACKAGE)](https://depscope.dev/pkg/npm/YOUR-PACKAGE)