How lukilme/dynamic-gif-generator-terminal-style works
This repository collects a GitHub user’s repository and language statistics, writes a JSON snapshot, then turns that snapshot into animated dashboard GIFs for a profile README. The main flow is documented in the README and visible in the collector and plotter excerpts. The plotter dispatches to several chart implementations, which use shared canvas and GIF utilities. The tree and excerpts also show a separate terminal-style rendering set of modules; their runtime relationship to the main GIF workflow is not established, so it is shown as a distinct internal branch. Some chart calls are unsampled; relationships are limited to those evidenced by the plotter excerpt or source index.
Main entry points: plotter.py Dashboard plotter · gif_canvas.py GIF canvas · util.py GIF and font utilities · frame_builder.py Terminal frame builder
Components 28
Data collection
- Repository collector
github_profile_gif/collector.py - Profile JSON
data/github_profile.json - Collection entry
main.py
Dashboard generation
- Plot entry
plot.py - Dashboard plotter
github_profile_gif/plotter.py - Generated GIFs
assets/gifs
Chart implementations
- Repository bar chart
plots/bar_chart_gif.py - Alternate bar chart
plots/bar_gif_v2.py - Donut chart
plots/donut_gif.py - Gauge chart
plots/gauge_gif.py - Line chart
plots/line_chart_gif.py - Alternate line chart
plots/line_gif.py - Merged donut chart
plots/merged_donut_gif.py - Radar chart
plots/radar_gif.py - Stacked bar chart
plots/stacked_bar_gif.py - Progress race chart
plots/progress_race_gif.py - Donut variant
plots/donut.py
Rendering internals
- GIF canvas
plots/gif_canvas.py - GIF and font utilities
plots/util.py - Chart palette
plots/constants.py
Terminal renderer
- Data helpers
data.py - Terminal configuration
config.py - Terminal drawing helpers
draw_utils.py - Image effects
effects.py - Terminal frame builder
frame_builder.py
Other components
- GitHub user
- GitHub API
- Profile README reader
Connections 35
- GitHub user → Collection entry: requests collection
README.md - Collection entry → Repository collector: runs
main.py - Repository collector → GitHub API: fetches repositories and languages
github_profile_gif/collector.py - Repository collector → Profile JSON: writes statistics
github_profile_gif/collector.py - Profile JSON → Dashboard plotter: provides statistics
README.md - Plot entry → Dashboard plotter: runs
plot.py - Dashboard plotter → Repository bar chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Alternate bar chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Donut chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Gauge chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Line chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Alternate line chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Merged donut chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Radar chart: generates chart
github_profile_gif/plotter.py - Dashboard plotter → Stacked bar chart: generates chart
github_profile_gif/plotter.py - Repository bar chart → GIF canvas: uses canvas
plots/bar_chart_gif.py - Repository bar chart → GIF and font utilities: saves GIF
plots/bar_chart_gif.py - Alternate bar chart → GIF canvas: uses canvas
plots/bar_gif_v2.py - Alternate bar chart → GIF and font utilities: saves GIF
plots/bar_gif_v2.py - Donut chart → GIF canvas: uses canvas
plots/donut_gif.py - Donut chart → GIF and font utilities: saves GIF
plots/donut_gif.py - Gauge chart → GIF canvas: uses canvas
plots/gauge_gif.py - Gauge chart → GIF and font utilities: saves GIF
plots/gauge_gif.py - Line chart → GIF canvas: uses canvas
plots/line_chart_gif.py - Line chart → GIF and font utilities: saves GIF
plots/line_chart_gif.py - Radar chart → GIF canvas: uses canvas
plots/radar_gif.py - Radar chart → GIF and font utilities: saves GIF
plots/radar_gif.py - Stacked bar chart → GIF canvas: uses canvas
plots/stacked_bar_gif.py - Stacked bar chart → GIF and font utilities: saves GIF
plots/stacked_bar_gif.py - Dashboard plotter → Chart palette: uses colors
github_profile_gif/plotter.py - Dashboard plotter → Generated GIFs: writes GIFs
README.md - Profile README reader → Generated GIFs: displays GIFs
README.md - Terminal frame builder → Terminal configuration: uses settings
frame_builder.py - Terminal frame builder → Terminal drawing helpers: uses drawing helpers
frame_builder.py - Terminal frame builder → Image effects: uses effects
frame_builder.py