A GitHub CLI extension to generate a 3D model of your GitHub contribution history
A GitHub CLI extension to generate a 3D model of your GitHub contribution history
A GitHub CLI extension that generates 3D-printable STL files of your GitHub contribution graph.
| 3D Print | ASCII Art |
|---|---|
The extension requires the gh CLI to be installed and in the PATH. The extension also requires the user to have authenticated via gh auth.
This project is a GitHub CLI extension. After installing the gh CLI, from a command-line run:
gh extension install github/gh-skylineYou can run the gh skyline command with the following flags:
-d, --debug: Enable debug logging for more detailed output.gh skyline --debug-h, --help: Show help for the command.gh skyline --help-f, --full: Generate the contribution graph from the user's join year to the current year.gh skyline --full-o, --output: Specify the output filename. If not provided, the default is {username}-{year}-github-skyline.stl.gh skyline --output my-skyline.stl-u, --user: Specify the GitHub username. If not provided, the authenticated user is used.gh skyline --user mona-y, --year: Specify the year or range of years for the skyline. Must be between 2008 and the current year.gh skyline --year 2020, gh skyline --year 2014-2024-w, --web: Open the GitHub profile for the authenticated or specified user.gh skyline --web, gh skyline --user mona --web-a, --art-only: Show the ASCII art preview without generating an STL file.Generate a skyline STL file that defaults to the current year for the authenticated user:
gh skylineGenerate a skyline for a specific year for the authenticated user:
gh skyline --year 2023Generate a skyline for a specific user and year:
gh skyline --user mona --year 2023Generate a skyline for a range of years for the authenticated user:
gh skyline --year 2014-2024Generate a skyline from the user's join year to the current year:
gh skyline --fullGenerate only the ASCII preview for a skyline:
gh skyline --art-onlyEnable debug logging:
gh skyline --debugBy default, the CLI will create a {username}-{year}-github-skyline.stl file in your current directory. You can specify a different filename using the --output flag.
gh skyline --output my-skyline.stlOpen the GitHub profile for the authenticated user:
gh skyline --webOpen the GitHub profile for a specific user:
gh skyline --user mona --webThe extension generates ASCII art in terminal while loading, a unique and fun way to visualise your contribution data while you wait! Each column represents one week. Days within each week are reordered vertically to create a "building" effect, with empty spaces (no contributions) at the top.
' ' Empty/Sky: No contributions'.' Future dates: What contributions could you make?'░' Low level: Light contribution activity'▒' Medium level: Moderate contribution activity'▓' High level: Heavy contribution activity'╻┃╽' Top level: Last block with contributions in the week (Low, Medium, High)Once you have generated your STL file, you can visualize it using 3D modeling or 3D printing software. But did you know that you can upload your STL file to a GitHub repository and view your Skyline there? For example, take a look at @chrisreddington's GitHub Skyline from 2011 - 2024.
…To contribute to the project, please read the instructions and contributing guidelines in CONTRIBUTING.md.
This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.
Mona Sans is licensed under the SIL Open Font License v1.1. Find more details at github/mona-sans.
golang/freetype is used as a dependency. Portions of this software are copyright © 2024 The FreeType Project (www.freetype.org). All rights reserved.
No open issues yet, or sync has not completed.