{"id":17036750,"url":"https://github.com/bast/gitink","last_synced_at":"2025-04-12T12:32:18.107Z","repository":{"id":57434659,"uuid":"36559924","full_name":"bast/gitink","owner":"bast","description":"ASCII to SVG Git log graph visualizer.","archived":false,"fork":false,"pushed_at":"2024-02-23T13:30:25.000Z","size":341,"stargazers_count":31,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-24T08:29:46.830Z","etag":null,"topics":["git","graph","svg"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-05-30T13:49:54.000Z","updated_at":"2024-02-23T13:27:45.000Z","dependencies_parsed_at":"2024-10-14T08:52:08.779Z","dependency_job_id":"b012bf23-2aa1-4797-a18b-79974431be7c","html_url":"https://github.com/bast/gitink","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":"0.017857142857142905","last_synced_commit":"fbc848b2c4fa750524339cb033233fc6f34f319d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fgitink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fgitink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fgitink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Fgitink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bast","download_url":"https://codeload.github.com/bast/gitink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248566597,"owners_count":21125693,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","graph","svg"],"created_at":"2024-10-14T08:51:50.861Z","updated_at":"2025-04-12T12:32:18.101Z","avatar_url":"https://github.com/bast.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![image](https://github.com/bast/gitink/workflows/Test/badge.svg)](https://github.com/bast/gitink/actions)\n[![image](https://img.shields.io/badge/license-%20MPL--v2.0-blue.svg)](LICENSE)\n[![PyPI badge](https://badge.fury.io/py/gitink.svg)](https://badge.fury.io/py/gitink)\n\n\n# gitink\n\nASCII to SVG Git log graph visualizer. Useful for teaching Git.\nUnder the hood it uses https://github.com/bast/ascii2graph.\n\n\n## Example\n\n```console\n$ cat example.txt\n\n                     [feature]\n                      |\n                      v\n               x1-----x2\n              /\nc1----c2----m1----c3----c4\n  \\        /            ^\n   b1----b2----b3       |\n   ^           ^       [main,HEAD]\n   |           |\n  [_branch]   [branch]\n```\n\n```bash\n$ gitink --in-file=example.txt | display\n```\n\nThis produces (display command requires\n[imagemagick](https://www.imagemagick.org)):\n\n![git log graph example](img/example.jpg)\n\n\n## Available options\n\n```console\n$ gitink --help\n\nUsage: gitink [OPTIONS]\n\nOptions:\n  --scale FLOAT             Scale sizes by this factor.\n  --in-file TEXT            ASCII file to convert.\n  --time-direction INTEGER  Direction of the time arrow (0, 90, 180, or 270).\n                            Default: 90 (right).\n  --help                    Show this message and exit.\n```\n\n\n## Installation\n\n```bash\n$ pip install gitink\n```\n\n\n## How do the colors work?\n\nColoring is done according to the first character of the commit hash.  Other\nsuggestions welcome.\n\n\n## Other projects that are interesting\n\n- [Asciio](https://nkh.github.io/P5-App-Asciio/): this project has a [Git\n  mode](https://nkh.github.io/P5-App-Asciio/modes/git.html) and can be\n  scripted [using the\n  API](https://nkh.github.io/P5-App-Asciio/for_developers/scripting.html) to\n  generate graphs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbast%2Fgitink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbast%2Fgitink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbast%2Fgitink/lists"}