{"id":20858755,"url":"https://github.com/thesephist/codeliner","last_synced_at":"2026-04-04T00:02:42.759Z","repository":{"id":97276835,"uuid":"245024168","full_name":"thesephist/codeliner","owner":"thesephist","description":"Generate codelines: like silhouette outlines, but for your source code","archived":false,"fork":false,"pushed_at":"2020-07-15T19:34:34.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-30T08:55:25.988Z","etag":null,"topics":["image","ink-programming-language","minimap"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thesephist.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":"2020-03-04T23:17:47.000Z","updated_at":"2022-04-06T01:00:46.000Z","dependencies_parsed_at":"2023-06-26T02:30:15.649Z","dependency_job_id":null,"html_url":"https://github.com/thesephist/codeliner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/thesephist/codeliner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodeliner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodeliner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodeliner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodeliner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thesephist","download_url":"https://codeload.github.com/thesephist/codeliner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thesephist%2Fcodeliner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31382355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-03T23:20:52.058Z","status":"ssl_error","status_checked_at":"2026-04-03T23:20:51.675Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["image","ink-programming-language","minimap"],"created_at":"2024-11-18T04:47:16.074Z","updated_at":"2026-04-04T00:02:42.682Z","avatar_url":"https://github.com/thesephist.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codeliner 💻\n\nCodeliner is a command-line utility to generate _codelines_, a bird's eye view image of your source code files. Like an **outline**, but for your **code**, hence the name. A codeline looks like a [minimap](https://code.visualstudio.com/docs/getstarted/userinterface#_minimap), and is a rough picture of the shape of your source code, once the literal characters are abstracted into lines and shapes. I've also chosen to mark delimiters (`() {} []`) with colored blocks, for some extra fun.\n\nAs an example, here's the codeline image of [`src/generate.ink`](src/generate.ink), the main file of the Codeliner program itself. You can see some patterns in indentation, scoping, and line spacing in this rough view of the source code.\n\n![Codeline of src/generate.ink](assets/ex.bmp)\n\nCodeliner is written in [Ink](https://github.com/thesephist/ink), a minimal toy functional programming language I made, and outputs `*.bmp` bitmap image files, which can be converted into more efficient formats like PNG with other utilities.\n\n## Usage\n\nCodeliner is intended to be used as a command line tool, and has one syntax.\n\n```sh\n# syntax\n./codeliner.ink \u003cinput file\u003e [\u003coutput file\u003e]\n\n# for example\n./codeliner.ink input-file.txt output-path.bmp\n```\n\nThis will create a codeline image of `input-file.txt` and place it at `output-path.bmp` as an image file. The output path is optional -- if you omit it, the output defaults to `out.bmp` in the current directory, and overwrites any existing file with that name.\n\n## Examples\n\nOutlines of code revealed by Codeliner can show interesting patterns and differences between languages. To that end, we've compiled a few examples here to complement the Ink program codeline above.\n\n### Go\n\nsource: [etcd source snippet](https://github.com/etcd-io/etcd/blob/master/raft/status.go)\n\n![Codeline of status.go](assets/go.bmp)\n\n### JavaScript\n\nsource: [Preact source snippet](https://github.com/preactjs/preact/blob/master/src/diff/props.js)\n\n![Codeline of props.js](assets/js.bmp)\n\n### CSS\n\nsource: [Blocks.css source](https://github.com/thesephist/blocks.css/blob/master/src/blocks.css)\n\n![Codeline of blocks.css](assets/css.bmp)\n\n### Lisp ([Xin](https://github.com/thesephist/xin))\n\nsource: [Xin standard library snippet](https://github.com/thesephist/xin/blob/master/lib/std.xin)\n\n![Codeline of std.xin](assets/xin.bmp)\n\n### Haskell\n\nsource: [Rosetta Code - 99 Bottles solution](https://rosettacode.org/wiki/99_Bottles_of_Beer#Haskell)\n\n![Codeline of Haskell code](assets/haskell.bmp)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephist%2Fcodeliner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthesephist%2Fcodeliner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthesephist%2Fcodeliner/lists"}