API Documentation
Integrate TrustStar into your CI/CD pipeline, scripts, or applications. No authentication required.
/api/analyzeAnalyze a GitHub repository's trust signals — fake star detection, account quality, temporal behavior, and project health.
{
"owner": "expressjs",
"repo": "express"
}{
"repo": "express",
"owner": "expressjs",
"score": 78,
"label": "SAFE",
"dimensions": {
"accounts": 99,
"temporal": 87,
"health": 70,
"authenticity": 82
},
"signals": {
"newAccountsRatio": 0.02,
"velocityScore": 0.04,
"recentStarsRatio": 0.08,
"forkStarRatio": 0.34,
"lockstepScore": 0.01,
"zScorePeak": 1.2,
"noRepoRatio": 0.06,
"noFollowersRatio": 0.09,
"noAvatarRatio": 0.04,
"activeContributorsRatio": 0.68,
"commitFrequency": 3.4,
"issueResolutionRatio": 0.72
},
"sampleSize": 200,
"analyzedAt": "2026-05-26T10:00:00.000Z"
}/api/npm-checkCross-reference npm download counts with GitHub stars and metadata to detect inconsistencies.
{
"package": "express"
}{
"package": "express",
"signals": [
{ "type": "positive", "label": "High download volume", "detail": "25M+ weekly downloads" },
{ "type": "positive", "label": "GitHub stars align", "detail": "65k stars, consistent with usage" }
],
"analyzedAt": "2026-05-26T10:00:00.000Z"
}/api/skill-auditStatic security analysis of a GitHub repository's code — network calls, filesystem access, execution, obfuscation, and suspicious dependencies.
{
"repoUrl": "https://github.com/owner/repo"
}{
"repo": "express",
"owner": "expressjs",
"score": 92,
"label": "SAFE",
"findings": [
{
"severity": "LOW",
"category": "network",
"message": "HTTP request detected",
"file": "lib/router/index.js",
"line": 12
}
],
"analyzedAt": "2026-05-26T10:00:00.000Z"
}/api/recent-audits?limit=20&type=trust-scoreRetrieve the most recent analyses run by the community.
{
"audits": [
{
"id": "abc123",
"type": "trust-score",
"slug": "expressjs/express",
"score": 78,
"label": "SAFE",
"analyzedAt": "2026-05-26T10:00:00.000Z"
}
],
"total": 42
}/api/badge/{owner}/{repo}Dynamic SVG badge showing the trust score. Embed in your README to display live results.
<!-- Content-Type: image/svg+xml -->
<!-- Example Markdown -->
Rate Limits
TrustStar API is free and does not require authentication. Please use responsibly — excessive requests may be throttled. Results are cached for 10 minutes per repository.