depsdotdev
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesedeps.dev API
deps.dev API
Use this skill to map package coordinates () to high-signal dependency intelligence from Open Source Insights.
system/name/version使用此技能将包坐标()映射到来自Open Source Insights的高价值依赖情报。
system/name/versionStart Here
入门指南
- Prefer stable API base:
https://api.deps.dev/v3 - Use only when you need purl and batch endpoints
v3alpha - Percent-encode all path/query values before sending requests
- Use canonical values returned in responses (,
packageKey,versionKey) for follow-up callsprojectKey
- 优先使用稳定API基础地址:
https://api.deps.dev/v3 - 仅当需要purl和批量端点时才使用
v3alpha - 在发送请求前,对所有路径/查询值进行百分号编码
- 在后续调用中使用响应中返回的标准值(,
packageKey,versionKey)projectKey
Fast Routing
快速路由
| If you need to... | Use | Read |
|---|---|---|
| List versions for a package | | |
| Inspect one version (licenses, advisories, links) | | |
| Get declared constraints | | |
| Get resolved dependency graph | | |
| Map project repo to package versions | | |
| Query by file hash or exact version key | | |
| Avoid encoding mistakes | URL/purl rules | |
| Handle limits and error cases | batch/query limits | |
| Use purl/batch/dependents | | |
| 如果你需要... | 使用 | 参考文档 |
|---|---|---|
| 列出某个包的版本 | | |
| 查看单个版本信息(许可证、安全公告、链接) | | |
| 获取声明的约束条件 | | |
| 获取已解析的依赖关系图 | | |
| 将项目仓库映射到包版本 | | |
| 通过文件哈希或确切版本键进行查询 | | |
| 避免编码错误 | URL/purl规则 | |
| 处理限制和错误情况 | 批量/查询限制 | |
| 使用purl/批量/依赖项 | | |
Minimal Workflow
最简工作流程
- Normalize user input into .
{system, name, version?} - Call if version is missing; prefer
GetPackageor newest published version.isDefault - Call for license/advisory/provenance metadata.
GetVersion - Add and
GetRequirementswhen user asks "declared" vs "resolved" dependency questions.GetDependencies - If input is a hash or purl, use or
Querypurl endpoints.v3alpha
- 将用户输入标准化为。
{system, name, version?} - 如果缺少版本信息,调用;优先使用
GetPackage版本或最新发布的版本。isDefault - 调用获取许可证/安全公告/来源元数据。
GetVersion - 当用户询问“声明的”与“已解析的”依赖问题时,添加和
GetRequirements调用。GetDependencies - 如果输入是哈希或purl,使用或
Query的purl端点。v3alpha
Examples
示例
- Curl patterns and jq snippets:
examples/curl-cheatsheet.md
- Curl示例和jq代码片段:
examples/curl-cheatsheet.md
External Docs
外部文档
- API overview and versions: https://docs.deps.dev/api/
- Stable REST schema: https://docs.deps.dev/api/v3/
- Experimental REST schema: https://docs.deps.dev/api/v3alpha/
- API概述和版本:https://docs.deps.dev/api/
- 稳定REST架构:https://docs.deps.dev/api/v3/
- 实验性REST架构:https://docs.deps.dev/api/v3alpha/