{"id":14155141,"url":"https://github.com/saschagrunert/rain","last_synced_at":"2025-04-09T16:20:14.020Z","repository":{"id":52382077,"uuid":"78010502","full_name":"saschagrunert/rain","owner":"saschagrunert","description":"Visualize vertical data inside your terminal 💦","archived":false,"fork":false,"pushed_at":"2024-05-07T12:25:57.000Z","size":1589,"stargazers_count":90,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-11T23:43:20.877Z","etag":null,"topics":["data","log","logger","rain","rust","terminal"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/saschagrunert.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":"2017-01-04T11:39:52.000Z","updated_at":"2024-08-16T06:20:17.000Z","dependencies_parsed_at":"2024-01-13T11:51:45.285Z","dependency_job_id":"ea872d2e-0e10-45a8-af38-ec5024927f40","html_url":"https://github.com/saschagrunert/rain","commit_stats":{"total_commits":28,"total_committers":6,"mean_commits":4.666666666666667,"dds":0.6071428571428572,"last_synced_commit":"f25ce33a4004353a5d31ffbb7d049d11f67b9aa7"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Frain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Frain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Frain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saschagrunert%2Frain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saschagrunert","download_url":"https://codeload.github.com/saschagrunert/rain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065281,"owners_count":21041872,"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":["data","log","logger","rain","rust","terminal"],"created_at":"2024-08-17T08:02:15.055Z","updated_at":"2025-04-09T16:20:13.997Z","avatar_url":"https://github.com/saschagrunert.png","language":"Rust","funding_links":[],"categories":["terminal"],"sub_categories":[],"readme":"# rain\n\n[![Build Status](https://travis-ci.org/saschagrunert/rain.svg)](https://travis-ci.org/saschagrunert/rain) [![Coverage Status](https://coveralls.io/repos/github/saschagrunert/rain/badge.svg)](https://coveralls.io/github/saschagrunert/rain?branch=master) [![master doc rain](https://img.shields.io/badge/master_doc-rain-blue.svg)](https://saschagrunert.github.io/rain) [![dependency status](https://deps.rs/repo/github/saschagrunert/rain/status.svg)](https://deps.rs/repo/github/saschagrunert/rain) [![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/saschagrunert/rain/blob/master/LICENSE) [![Crates.io](https://img.shields.io/crates/v/rain.svg)](https://crates.io/crates/rain) [![doc.rs](https://docs.rs/rain/badge.svg)](https://docs.rs/rain)\n\n## Visualize vertical data inside your terminal :sweat_drops:\n\nThis library helps you to display line based data vertically within your terminal. The color of the actual graph\nrepresents its value, whereas blue is low and red is high. These color bounds will be calculated automatically during\nruntime. Beside this, the terminal dimensions are adapted during runtime, too. If no data was added to a line, their\nterminal line is dashed.\n\n![Example](https://github.com/saschagrunert/rain/raw/master/.github/example.gif)\n\n## Example usage\n\n```rust\nuse rain::Graph;\n\n// Get a drawing area\nlet mut graph = Graph::new();\n\n// Get some line identifiers\nlet l1 = \"Line 1\";\nlet l2 = \"Line 1\";\nlet l3 = \"Line 1\";\n\n// Add some values and print\nassert!(graph.add(l1, 0).is_ok());\nassert!(graph.add(l2, 0).is_ok());\ngraph.print();\n\n// Add more values and print\nassert!(graph.add(l2, 5).is_ok());\nassert!(graph.add(l3, 10).is_ok());\ngraph.print();\n\n// Remove a line and print\nassert!(graph.remove(l1).is_ok());\ngraph.print();\n```\n\n## Contributing\n\nYou want to contribute to this project? Wow, thanks! So please just fork it and send me a pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschagrunert%2Frain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaschagrunert%2Frain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaschagrunert%2Frain/lists"}