Get full package detail
Changed onReturns data for the drawer's Overview, Security, and Provenance tabs. Pass the canonical purl as a query parameter — no URL-encoding needed. Example: ?purl=pkg:npm/lodash@4.17.21.
Request
- Base URLhttps://cm.lfx.dev/api/v1
- URLhttps://cm.lfx.dev/api/v1/packages/detail
- AuthHTTP bearer
Query parameters
Response
Package found.
Example response
{
"purl": "pkg:npm/lodash",
"name": "lodash",
"ecosystem": "npm",
"general": {
"healthScore": 18,
"healthScoreDetails": {
"total": 18,
"label": "Good",
"maintainerHealth": 4,
"securitySupplyChain": 8,
"developmentActivity": 6
},
"healthBand": "concerning",
"impact": {
"impactScore": 71,
"downloadsLastMonth": 52142891,
"dependentPackages": 142312,
"dependentRepos": 39104,
"transitiveReach": "Top 0.4%"
},
"riskSignals": {
"maintainerBusFactor": 1,
"openSSFScorecard": 5.2
}
},
"security": {
"advisories": [
{
"osvId": "CVE-2021-44906"
}
]
},
"provenance": {
"repositoryMapping": {
"declaredRepo": "https://github.com/lodash/lodash",
"mappingConfidence": 0.98
}
},
"stewardship": {
"id": "42",
"stewards": [
{
"userId": "abc123",
"username": "jrodriguez",
"displayName": "Jonathan R."
}
]
}
}Changes
- warning
added the new
archivedenum value to the//response property for the response status - warning
added the new
excellentenum value to the/response property for the response status
- warning
- breaking
the
/response's property type changed fromobjectnulltointegernullfor status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - warning
removed the optional property
//from the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
to the response with the status
- breaking