Crates.io Package Intelligence — Rust Crate Health (AI)
Pricing
from $44.00 / 1,000 package analyzeds
Crates.io Package Intelligence — Rust Crate Health (AI)
Analyze any Rust crate on crates.io: download totals and recent trend, dependencies, maintenance recency, MSRV/edition, license and an AI risk read (unmaintained, yanked, heavy deps, pre-1.0). For dependency due diligence and supply-chain risk.
Pricing
from $44.00 / 1,000 package analyzeds
Rating
0.0
(0)
Developer
Fredrik Hansson
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 hours ago
Last modified
Categories
Share
Crates.io Package Intelligence — Rust Crate Health & Downloads (AI)
Before you add a Rust dependency, know what you're pulling in. Give this Actor a list of crate names and it turns each one into a clear intelligence record: how often it's downloaded, how many dependencies it drags in, when it was last released, its minimum Rust version and license — and an AI risk read that tells you plainly whether a crate is active, stale, or effectively abandoned.
You bring the crate names. It hands back a dependency due-diligence sheet.
The flow
1. Paste crate names 2. The Actor gathers facts 3. Get an AI risk read(serde, tokio, clap, → crates.io API → downloads · deps · age ·time, ...) (public, no API key) license · maintenance · flags
- Paste Rust crate names into the
cratesfield — one per line. - The Actor pulls public data for each: the crates.io API for metadata, versions, downloads, categories, keywords, license and dependencies. No API key, no scraping of login-walled pages.
- The AI layer reads the facts and returns a maintenance signal, a popularity tier, concrete risk flags and a two-sentence summary — grounded only in the data, never invented.
Note: crates.io requires a descriptive
User-Agentheader on every request (or it returns403). This Actor sends one automatically.
What you get per crate
For every crate, the Actor returns:
- Identity & release —
latestVersion,summary,versionCount,lastRelease(ISO timestamp) andlastReleaseAgeDays(how long since the newest release). - Reach —
totalDownloads(all-time) andrecentDownloads(last ~90 days) from crates.io, so you can tell a ubiquitous library from a weekend experiment. - Footprint —
dependenciesCount(runtime + build deps of the latest version),rustVersion(declared MSRV),edition,categories,keywords, andlicense. - Maintenance signals —
yanked, and therepository,documentationandhomepageURLs.
Then the AI layer (OpenAI gpt-4o-mini, a fast and low-cost model) adds:
maintenanceSignal—active,maintained,stale, orabandoned, from release recency.popularityTier—niche,growing,popular, orubiquitous, from download volume.riskFlags— short, data-backed phrases:"unmaintained (last release >18mo)","yanked release","no license declared","heavy dependency tree","pre-1.0 (unstable API)".aiSummary— two factual sentences on the crate and its risk posture.suggestedAlternatives— only well-known, widely-trusted substitutes for the same job, else[].
Three ways people use it
- Rust dependency due diligence — before a new crate lands in
Cargo.toml, run a crate analysis to see downloads, license, dependency count and whether it's still maintained. Catch a yanked release, a missing license or a pre-1.0 unstable API before it's in your build. - Supply-chain risk — audit an existing dependency list for Rust dependency risk: surface unmaintained crates, stale projects and heavy dependency trees across your whole stack in one run. A standing input for your supply chain security reviews.
- Library selection — comparing candidates for the same job? Line them up and let download tier, maintenance signal and
suggestedAlternativesmake the call obvious.
Keywords: crates.io analysis, Rust dependency risk, supply chain, unmaintained crates.
Input
| Field | Type | Notes |
|---|---|---|
crates | array | Required. crates.io crate names, one per line (e.g. serde, tokio). Version pins and crates.io/crates/... URLs are tolerated and normalised. |
maxResults | integer | Cap how many crates to analyze. Default 200. |
maxConcurrency | integer | Crates processed in parallel. Default 6. |
model | string | OpenAI model override. Default gpt-4o-mini. |
Minimal input example
{"crates": ["serde", "tokio", "clap"]}
Output example
{"crate": "serde","latestVersion": "1.0.229","summary": "A generic serialization/deserialization framework","license": "MIT OR Apache-2.0","rustVersion": "1.56","edition": "2015","categories": ["No standard library", "Encoding"],"keywords": ["no_std", "serde", "serialization"],"totalDownloads": 1515377748,"recentDownloads": 354264210,"lastRelease": "2026-07-18T23:05:13.266456Z","lastReleaseAgeDays": 86,"versionCount": 316,"dependenciesCount": 2,"yanked": false,"documentation": "https://docs.rs/serde","repository": "https://github.com/serde-rs/serde","homepage": "https://serde.rs","maintenanceSignal": "active","popularityTier": "ubiquitous","riskFlags": [],"suggestedAlternatives": ["serde_json", "rkyv"],"aiSummary": "serde is a ubiquitous, permissively licensed serialization framework with over a billion all-time downloads and an actively maintained release line. It carries a light dependency tree and shows no significant supply-chain risk."}
A crate that is not found on crates.io comes back with the same shape plus an error field (and is not charged).
Pay-per-event pricing
This Actor uses pay-per-event billing with a single event:
| Event | Price | Charged when |
|---|---|---|
package-analyzed | $0.10 | Once per crate successfully analyzed (facts gathered + AI risk read produced). |
The Actor logs its OpenAI token usage and the estimated AI cost per crate at the end of every run, so the event price always stays safely above the model cost.
Data source
Everything comes from public, key-less sources: the crates.io API (https://crates.io/api/v1/crates/<crate>) for metadata, versions, downloads, categories, keywords and license, and the dependencies endpoint (https://crates.io/api/v1/crates/<crate>/<version>/dependencies) for the latest version's dependency list. A descriptive User-Agent header is sent on every request as crates.io requires. A missing dependency list is handled gracefully — the record still ships.
Setup
The AI layer calls the OpenAI API. Set the environment variable / secret OPENAI_API_KEY on the Actor. The fact-gathering step (downloads, dependencies, license, maintenance) needs no key.
Use it from an AI agent (Apify MCP server)
This Actor is available through the Apify MCP server, so AI agents (Claude, ChatGPT, or anything that speaks MCP) can call it as a tool — hand it a list of crates and read back the intelligence records — with no custom integration code.
Run it locally
npm install# put your input in storage/key_value_stores/default/INPUT.jsonexport OPENAI_API_KEY=sk-...apify run -p
Related actors
- PyPI Package Intelligence — The Python twin of this Actor: downloads, dependencies, maintenance and AI risk for any PyPI package.
- npm Package Intelligence — The Node.js twin: downloads, dependencies, maintenance and AI risk for any npm package.
- GitHub Repo Analyzer — Health, activity and maintenance signals for any GitHub repository.
- CVE Vulnerability Lookup — Look up known vulnerabilities and severity for packages and software.
Part of the No Niner toolkit — no-code web scraping, enrichment & AI data tools, all pay-per-use. Browse the full set at noniner.io.