RepoPilot

anuraghazra / github-readme-stats

Search anuraghazra/github-readme-stats

GitHub

Code

How anuraghazra/github-readme-stats is laid out, and where to start for common changes.

There is no import map for this report yet.

Where to start reading

  1. Repository root
  2. Repository root
  3. Declared package entry
  4. Suggested starting pointAI
  5. Suggested starting pointAI
  6. Suggested starting pointAI
  7. Suggested starting pointAI
  8. Suggested starting pointAI

Find files for a task

AI

Add a new card type

  • Export card in `src/cards/index.js` for import by main routing logic
  • Register route in `api/index.js` to map URL path to new card handler

Add support for a new theme

  • Define theme color palette as JSON object in `themes/index.js` with CSS variable names
  • Apply theme colors in `src/common/color.js` by adding conditional logic matching theme name parameter
  • Add theme documentation snippet to `themes/README.md` showing usage example

Add a new query parameter or customization option

  • Add internationalization key if text is displayed in `src/translations.js`

Optimize cache behavior for a card type

  • Examine cache hit/miss patterns in `src/common/cache.js` key generation logic
  • Update vercel.json Cache-Control headers for the endpoint if server-side caching is needed

Change the public API

  • Declared by package.json (main). Follow its exports or calls to find the implementation.

Add or update tests

Change build or automation

RepoPilot lists up to 500 files, so a file missing here may still exist.

Code quality and hotspots

Largest source files

  • Branch points20 per file on average
  • Code issues0 errors, 27 warnings
  • Largest file1,106 lines
  • Hotspot load0 high-risk files

Static checks on the 15 largest source files.

Tests, CI and tooling

  • CIGitHub Actions14 workflows
  • Tests34 test filesJest/Vitest · 0.65 test files per source file (file count, not coverage)
  • Dependency updatesCodeQL · Dependabot

Test folders: tests · tests/bench · tests/__snapshots__

Hotspots

Files that change often and branch heavily, highest first. Branch points count if, loop, case, catch, ternary, && and || in the file.