Third-party package adoption risk
Check one open-source package a developer wants to add as a new dependency and decide whether it is safe to adopt, fine with safeguards like pinning and a wrapper, better replaced by an alternative or a few lines of own code, or blocked by its license or security record.
F@fLimits to keep in mind
Download counts and stars can be inflated and do not prove quality.
License compatibility can depend on how the code is linked and distributed; legal has the final word.
Maintenance signals change; re-check packages on critical paths at least once a year.
Problem
New dependencies are added in a minute and removed in months. Developers pick the first package that solves the problem without checking whether anyone still maintains it, whether one person can publish a breaking or malicious release, whether its license fits how the product is shipped, or whether it pulls in dozens of transitive packages for a job that needs ten lines of code. The cost shows up later as security alerts, license questions and painful migrations.
Goal
Label each proposed package so healthy, well-maintained packages are added without friction, packages with manageable risk are added with pinning, a thin wrapper and monitoring, abandoned or oversized packages are replaced by a better option or own code, license or security blockers stop the change, and a person decides when the signals are incomplete or conflicting.
Input / state
One proposed new dependency: what it is and does, its maintenance signals, its license and security record, and how our project would use and ship it.
- package_summary
- Package name, ecosystem (npm, PyPI, crates.io, Maven and so on), version to add, and what it does for us.
- maintenance_signals
- Last release date, recent commit activity, number of active maintainers, weekly downloads or dependents, and how open issues and pull requests are handled.
- license_and_security
- The package license, known security advisories and whether they are fixed, install scripts, and how many transitive dependencies it adds.
- project_context
- How our product is licensed and shipped (internal service, SaaS, distributed app or library), how critical the code path is, and how much code the package replaces.
Decision question
adoption_riskShould we add this package as a new dependency? Weigh maintenance, license fit with how we ship, security record, size and how much code it replaces. Use safe_to_adopt for healthy, well-maintained packages with a compatible license. Use adopt_with_safeguards when the risk is manageable with pinning, a wrapper or monitoring. Use choose_alternative when it is abandoned or far too big for the job. Use blocked when the license or security record rules it out. Use needs_review when key facts are missing or conflict.
Options
safe_to_adoptActively maintained by several people, regular releases, a permissive or otherwise compatible license, no open critical advisories, a reasonable dependency footprint, and it replaces real work.adopt_with_safeguardsUseful and compatible but with manageable risk: a single maintainer, pre-1.0 versions with breaking changes, slow issue handling, or a fixed past advisory; add it pinned, behind a thin wrapper, with update alerts.choose_alternativeAbandoned (no release or maintainer response for a long time), deprecated in favor of another package or a built-in feature, or far too large for a small job that a few lines of our own code or the standard library can do.blockedThe license conflicts with how we ship (for example AGPL or no license in a distributed product), there is an unpatched critical advisory, or signs of a malicious or typosquatted package such as suspicious install scripts.
Allowed outcomes
Decided in your code from the answer and its confidence. Thresholds are yours to set and test.
- Ask a tech leadImportant facts such as the license, maintainers or advisories are missing or conflict, or the code path is critical enough that a tech lead or security should decide.
- Add the dependencyMaintenance, license and security look healthy and the package replaces real work; add it with a normal version range and lockfile.
- Add pinned with a wrapperThe package is useful but carries maintainer or stability risk; pin the exact version, wrap its API in one module and turn on update and advisory alerts.
- Pick another optionThe package is abandoned, deprecated or oversized for the need; use the suggested replacement, a built-in feature or a small piece of own code instead.
- Do not addThe license conflicts with how we ship, a critical advisory is unpatched, or the package looks malicious; do not merge and tell security or legal if it is already installed.
Example scenarios
Predefined demonstrations. No model is called; the outcome shown is an illustrative judgment.
Example state
{
"package_summary": "date-fns 4.1 (npm) to format and compare dates in our web dashboard",
"project_context": "Closed-source SaaS web app; replaces about 300 lines of our own date helpers",
"maintenance_signals": "Release 3 weeks ago, 10+ active maintainers, 20 million weekly downloads, issues answered within days",
"license_and_security": "MIT license, no open advisories, no install scripts, zero transitive dependencies"
}Outcome
IllustrativeMaintenance, license and security look healthy and the package replaces real work; add it with a normal version range and lockfile.
Why
Well maintained, MIT, no footprint, and it replaces real code.
Using it well
- Judge the package against how our product is shipped: a license that is fine for an internal service can block a distributed app or library.
- Count real maintainers and recent releases, not stars; a popular package with one maintainer and no release in two years is a risk.
- Compare the size of the package and its transitive dependencies with the amount of code it replaces.
- A fixed past advisory with a fast response is a good sign; an open critical advisory without a fix blocks adoption.
- Treat install or postinstall scripts that download or run code, and names one letter away from popular packages, as security warnings.
- Prefer built-in language or platform features when they now cover the need.
- When key facts are missing, ask for them through needs_review instead of guessing.
Request definition
POST https://api.typesafe.ai/v1/systemone{
"model": "jev-latest",
"state": {
"package_summary": "<package_summary>",
"maintenance_signals": "<maintenance_signals>",
"license_and_security": "<license_and_security>",
"project_context": "<project_context>"
},
"questions": {
"adoption_risk": {
"type": "choice",
"instructions": "Should we add this package as a new dependency? Weigh maintenance, license fit with how we ship, security record, size and how much code it replaces. Use safe_to_adopt for healthy, well-maintained packages with a compatible license. Use adopt_with_safeguards when the risk is manageable with pinning, a wrapper or monitoring. Use choose_alternative when it is abandoned or far too big for the job. Use blocked when the license or security record rules it out. Use needs_review when key facts are missing or conflict.",
"criteria": {
"safe_to_adopt": "Actively maintained by several people, regular releases, a permissive or otherwise compatible license, no open critical advisories, a reasonable dependency footprint, and it replaces real work.",
"adopt_with_safeguards": "Useful and compatible but with manageable risk: a single maintainer, pre-1.0 versions with breaking changes, slow issue handling, or a fixed past advisory; add it pinned, behind a thin wrapper, with update alerts.",
"choose_alternative": "Abandoned (no release or maintainer response for a long time), deprecated in favor of another package or a built-in feature, or far too large for a small job that a few lines of our own code or the standard library can do.",
"blocked": "The license conflicts with how we ship (for example AGPL or no license in a distributed product), there is an unpatched critical advisory, or signs of a malicious or typosquatted package such as suspicious install scripts."
}
}
}
}Request shape from the System One API reference; a Kev server accepts the same body. Replace the placeholder state with your data. Requests need your own API key or server.
Version History
Initial version