{"id":31655488,"url":"https://github.com/im-ng/asciigraph","last_synced_at":"2025-10-07T13:14:41.185Z","repository":{"id":316879633,"uuid":"1065200124","full_name":"im-ng/asciigraph","owner":"im-ng","description":"Zig module to flush console ascii line graphs ╭┈╯","archived":false,"fork":false,"pushed_at":"2025-10-06T02:22:41.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-06T04:25:51.402Z","etag":null,"topics":["zig","zig-package","ziglang"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/im-ng.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-27T08:46:57.000Z","updated_at":"2025-10-06T02:22:45.000Z","dependencies_parsed_at":"2025-09-28T15:01:35.207Z","dependency_job_id":null,"html_url":"https://github.com/im-ng/asciigraph","commit_stats":null,"previous_names":["im-ng/asciigraph"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/im-ng/asciigraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-ng%2Fasciigraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-ng%2Fasciigraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-ng%2Fasciigraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-ng%2Fasciigraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/im-ng","download_url":"https://codeload.github.com/im-ng/asciigraph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/im-ng%2Fasciigraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278780059,"owners_count":26044492,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["zig","zig-package","ziglang"],"created_at":"2025-10-07T13:14:39.834Z","updated_at":"2025-10-07T13:14:41.180Z","avatar_url":"https://github.com/im-ng.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# asciigraph\n\nZig module to flush console ascii line graphs ╭┈╯\n\nCrude derivation of the [asciichart](https://github.com/kroitor/asciichart) implementations in zig\n\n## Installation\n\nAdd asciigraph to your build.zig.zon:\n\n```\nzig fetch --save https://github.com/im-ng/asciigraph/archive/refs/heads/main.zip\n```\n\n## Usage\n\n```zig\nconst std = @import(\"std\");\nconst asciigraph = @import(\"asciigraph\");\nconst configs = asciigraph.options;\nconst colors = asciigraph.colors;\n\npub fn main() !void {\n    var gpa = std.heap.GeneralPurposeAllocator(.{}){};\n    const allocator = gpa.allocator();\n\n    const c = configs.config{\n        .rows = 1,\n        .columns = 50,\n        .height = 5,\n        .offset = 0,\n        .legendColor = colors.White,\n        .legends = \"X Axis\",\n        .caption = \"Y Axis\",\n    };\n\n    const matrix = try asciigraph.prepareMatrix(c.rows, c.columns, allocator);\n    asciigraph.fillRandom(matrix);\n\n    try asciigraph.PlotGraph(allocator, matrix, c);\n}\n```\n\n#### Output \n\n```bash\nasciigraph/examples on  main [?] via ↯ v0.15.1 \n❯ zig build basic\n  ┤         ╭╮  ╭╮        ╭─╮      ╭╮                \n  ┤ ╭╮     ╭╯│  │╰╮  ╭╮   │ │   ╭╮ ││ ╭╮  ╭─╮   ╭╮ ╭ \n  ┼╮││    ╭╯ │ ╭╯ ╰──╯╰╮  │ │   ││ ││ ││  │ ╰╮╭─╯╰╮│ \n  ┤│││╭─╮╭╯  ╰╮│       │  │ │ ╭╮│╰╮││ ││ ╭╯  ││   ││ \n  ┤╰╯╰╯ ╰╯    ││       │╭─╯ │ │╰╯ ╰╯╰╮│╰╮│   ╰╯   ││ \n  ┤           ╰╯       ╰╯   ╰─╯      ╰╯ ╰╯        ╰╯ \n\nY Axis                      X Axis\n```\n\n## Examples\n\nThis repository contains a number of ready-to-run examples demonstrates the use of the `asciigraph`.\n\n\n- [x] Basic\n- [x] Sine Wave \n- [x] Stream - Real time data\n- [ ] Rainbow\n\n```\ngit clone https://github.com/im-ng/asciigraph.git\ncd asciigraph/examples\nzig build\n```\n\nRun one of the sample use command `zig build {sample_name}` from examples folder.\n\n```\nzig build basic\nzig build sine\nping -i1 google.com | grep -oP \"time=\\K\\d+\\.?\\d*\" --line-buffered | zig build stream\n```\n\n## Real time plot\n\n![Real-time](./docs/ascii-graph.png)\n\n\n## Todos\n\nWhatever options shown in [asciichart](https://github.com/kroitor/asciichart)\n\n## 🤝 Attribution\n\nThe idea of this zig module taken from this [asciigraph](https://github.com/guptarohit/asciigraph) including the Plot logic.\n\n## 📄 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-ng%2Fasciigraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fim-ng%2Fasciigraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fim-ng%2Fasciigraph/lists"}