GitHub dependency vulnerability analyzer API scaffold built with Node.js and Express. The current implementation wires the API shape end to end with placeholder service functions for fetching a GitHub package.json, reading npm package metadata, checking OSV vulnerabilities, and producing a risk summary.
npm install
copy .env.example .env
npm run devOn macOS or Linux, copy the environment file with:
cp .env.example .envThe API listens on the port configured by PORT in .env, defaulting to 3000.
Analyze a GitHub repository:
curl -X POST http://localhost:3000/analyze ^
-H "Content-Type: application/json" ^
-d "{\"repoUrl\":\"https://github.com/octocat/hello-world\"}"On macOS or Linux:
curl -X POST http://localhost:3000/analyze \
-H "Content-Type: application/json" \
-d '{"repoUrl":"https://github.com/octocat/hello-world"}'Example placeholder response:
{
"ecosystem": "npm",
"files": ["README.md", "package.json"]
}