Turn Your GitHub Contribution Graph Into an ASCII City
说明与用途
使用 GitHub Actions 每晚生成动态 SVG 天际线,并将其嵌入 README,以展示您的 GitHub 贡献图。
问题
GitHub users want a more engaging visual representation of their contribution history for their profile README.
结果
A dynamic, animated SVG skyline that updates nightly, providing a personalized and visually appealing representation of a user's GitHub activity.
工作流
- Install Skyline CLI via
go install github.com/pinkpixel-dev/skyline@latest - Create a GitHub Actions workflow file
.github/workflows/skyline.ymlin the profile repo - Configure the workflow to run nightly and on demand, using
go run github.com/pinkpixel-dev/skyline@latest -theme neon -svg skyline.svg "${{ github.repository_owner }}" - Publish the generated
skyline.svgto a dedicatedoutputbranch using a temporary git repository - Add an image link to the README pointing to the SVG on the
outputbranch
证据
I made **[Skyline](https://github.com/pinkpixel-dev/skyline)**, a small Go CLI that takes your GitHub contribution history and turns it into an ASCII city.
Skyline needs access to the GitHub API, but it tries to make authentication fairly painless. It checks: GITHUB_TOKEN, GH_TOKEN, gh auth token
To create the version you can use on a website or GitHub profile: skyline -svg skyline.svg your-username
Inside that repository, create: .github/workflows/skyline.yml
That generates the animated SVG version instead of printing the city to the terminal.
- 记录日期: 2026-10-03T23:40:56.301Z