Github Repository Scanner
The GitHub Repository Scanner provides detailed analysis of repositories, including commit patterns, contributor statistics, and potential security concerns.
Last updated
The GitHub Repository Scanner provides detailed analysis of repositories, including commit patterns, contributor statistics, and potential security concerns.
Last updated
// Request
const scanGitHubRepo = async (repoUrl: string): Promise<GitHubScanResponse> => {
const response = await fetch(`${endpoints.socialMetrics}/github-scan`, {
method: 'POST',
body: JSON.stringify({ repoUrl })
});
return response.json();
};
interface GitHubScanResponse extends APIResponse<{
repoInfo: {
name: string;
owner: string;
description: string;
stars: number;
forks: number;
open_issues: number;
created_at: string;
last_push: string;
size: number;
language: string;
languages: { [key: string]: number };
commits_count: number;
commits_per_day: number;
contributors_count: number;
days_since_creation: number;
};
warnings: string[];
red_flags: string[];
}> {}