Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-vuln-analyzer

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.

Setup

npm install
copy .env.example .env
npm run dev

On macOS or Linux, copy the environment file with:

cp .env.example .env

The API listens on the port configured by PORT in .env, defaulting to 3000.

API Usage

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"]
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages