How ashutosh00710/github-readme-activity-graph works
File structure
• Top-level static assets:
– index.html, script.js, styles.css: a simple landing page or demo client
– asset/: logos and theme preview images
• Core application code in src/:
– main.ts: entry point / HTTP server or serverless handler
– handlers.ts: request routing and orchestration
– fetcher.ts: GitHub API integration (fetch commits/activity)
– createChart.ts + GraphCards.ts: chart data preparation and card assembly
– svgs.ts: SVG template generation
– styles/: theme definitions, graph styles, animations
– utils.ts + interfaces/interface.ts: helper functions and TypeScript types
• Configuration and deployment:
– tsconfig.json, package.json, vercel.json, Replit config (replit.nix, .replit, replit.sh)
• Tests in __test__/: unit-tests and snapshot tests for fetcher, chart logic, utilities, SVG outputs
Key insights from the README
• Core feature: dynamic SVG graph generation via URL parameters
• Supported by JetBrains; deployable on Vercel or Replit
• Uses Chartist.js under the hood for chart construction