Skip to content

zhravan/foss-vital

Repository files navigation

FOSS Vital

Made with love with Open Source

Deploy with Vercel

Get comprehensive health reports for your FOSS projects with detailed metrics and scoring.

FOSS Vital Sample Card

Features

  • GitHub API integration for live project data
  • Comprehensive health scoring algorithm
  • Clone-based repository analysis for deeper insights
  • Smart caching system to minimize API calls
  • REST API with multiple endpoints
  • One-click Vercel deployment

Quick Start

Deploy in seconds or run locally:

# Clone and run locally
git clone https://github.com/shravan20/foss-vital.git
cd foss-vital
npm install
npm run dev

API will be available at http://localhost:3000

Health Scoring

Projects are scored across four key areas:

  • Activity (30%) - Commit frequency, issue resolution, PR merge time
  • Community (25%) - Contributors, contribution distribution
  • Maintenance (25%) - Issue close rate, PR merge rate
  • Documentation (20%) - README, LICENSE, contributing guides

Overall score is a weighted average of these dimensions (0-100).

What We Analyze

Feature Support Matrix

Category Supported Tools / Languages
Language Support JavaScript, Python, Ruby, Go, Rust, PHP, Java, and more
CI/CD Detection GitHub Actions, Travis CI, CircleCI, Jenkins
Testing Frameworks Jest, Mocha, PyTest, RSpec, PHPUnit, etc.
Linting Tools ESLint, Pylint, Prettier, RuboCop, golangci-lint
Dependency Analysis package.json, requirements.txt, Gemfile, go.mod, Cargo.toml, etc.
Security & Coverage - Vulnerability estimation based on dependencies
- Test coverage via heuristics
- Live data from GitHub API

Performance Features

Clone-Based Analysis - For detailed metrics, we use optimized repository cloning:

  • Shallow clone (--depth 1) to temporary directory
  • Local file analysis for configs and dependencies
  • Comprehensive dependency file parsing
  • 7-day caching to minimize repeated clones
  • Automatic cleanup after analysis
  • Significantly reduces API calls

Example Usage

# Basic project info
curl "https://your-deployment.vercel.app/api/projects/owner/repo"

# Health score
curl "https://your-deployment.vercel.app/api/health/owner/repo"

# Complete analysis
curl "https://your-deployment.vercel.app/api/projects/owner/repo/complete"

Configuration / Env Variables

Variable Default Description
GITHUB_TOKEN - GitHub token for higher rate limits
NODE_ENV development Environment mode
CORS_ORIGINS * Allowed CORS origins
PORT 3000 Server port (local only)

Rate Limits

  • Without token: 60 requests/hour per IP
  • With token: 5,000 requests/hour
  • Recommendation: Use GitHub token for production

Contributing

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/name)
  3. Commit changes (git commit -m 'Add feature')
  4. Push to branch (git push origin feature/name)
  5. Open Pull Request

Read CONTRIBUTING.md for detailed guidelines.

License

MIT License

About

Your FOSS project’s health report

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published