
Security News
Federal Government Rescinds Software Supply Chain Mandates, Makes SBOMs Optional
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.
github-package-analyzer
Advanced tools
A powerful tool to analyze GitHub repositories for package implementation and code quality using the GitHub API and OpenAI's GPT models.
npm install github-package-analyzer
You'll need to set up authentication tokens for both GitHub and OpenAI:
Basic usage example:
const PackageAnalyzer = require('github-package-analyzer');
const analyzer = new PackageAnalyzer({
githubToken: 'your-github-token',
openaiKey: 'your-openai-key'
});
const result = await analyzer.analyze('owner', 'repo', ['react', 'express']);
console.log(JSON.stringify(result, null, 2));
The analyzer performs several types of analysis:
The analyzer generates a comprehensive report including:
Example report structure:
{
"passed": true,
"summary": {
"totalScore": 85,
"averageScore": 85,
"grade": "B"
},
"details": {
"dependencies": [],
"implementation": [],
"codeQuality": [],
"suggestions": []
}
}
Currently supports analysis patterns for:
More package patterns can be added by extending the patterns object in the checkImplementation method.
Reference to patterns implementation:
const patterns = {
'react': {
filePatterns: ['.jsx', '.tsx', '.js', '.ts'],
codePatterns: ['import { useState }', 'from "react"']
},
'express': {
filePatterns: ['.js'],
codePatterns: ['require("express")', 'import express']
}
// Add more package patterns as needed
};
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.
Tom Tarpey
⚠️ Never commit your API keys or tokens to version control. Use environment variables or secure configuration management for sensitive credentials.
FAQs
Analyze GitHub repositories for package implementation and code quality
We found that github-package-analyzer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.