{"id":13586950,"url":"https://github.com/aantn/smag","last_synced_at":"2025-08-21T15:32:56.706Z","repository":{"id":139105774,"uuid":"314779951","full_name":"aantn/smag","owner":"aantn","description":"Show Me A Graph - Command Line Graphing","archived":false,"fork":false,"pushed_at":"2024-05-22T15:51:52.000Z","size":6017,"stargazers_count":139,"open_issues_count":2,"forks_count":9,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-12T06:49:40.910Z","etag":null,"topics":["chart","cli","command-line","console","cpu","graph","kubernetes","pipeline","plot","realtime","stdout"],"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/aantn.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-11-21T09:51:28.000Z","updated_at":"2024-12-09T12:55:15.000Z","dependencies_parsed_at":"2024-01-04T21:27:38.697Z","dependency_job_id":"9905b2d1-c499-4e3b-87e8-2231e74ee77d","html_url":"https://github.com/aantn/smag","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aantn%2Fsmag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aantn%2Fsmag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aantn%2Fsmag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aantn%2Fsmag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aantn","download_url":"https://codeload.github.com/aantn/smag/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520394,"owners_count":18238948,"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":["chart","cli","command-line","console","cpu","graph","kubernetes","pipeline","plot","realtime","stdout"],"created_at":"2024-08-01T15:05:55.711Z","updated_at":"2024-12-20T01:16:04.961Z","avatar_url":"https://github.com/aantn.png","language":"Rust","funding_links":[],"categories":["Rust","Projects by main language"],"sub_categories":["rust"],"readme":"# smag - show me a graph!\n\nEasily create graphs from cli commands and view them in the terminal. Like the `watch` command but with a graph of the output.\n\n# Demo\n\n![](./images/readme-example.gif)\n\nTable of Contents\n=================\n\n   * [Install :cd:](#install-cd)\n   * [Usage ](#usage)\n\n# Install :cd:\n\n## Install from source\n```bash\ngit clone https://github.com/aantn/smag.git\ncargo install --path .\n```\n## Install from binaries\nBinaries for Mac, Windows, and Linux are available under Releases.\n\n# Usage\n\nJust run `smag [shell_cmd]` or `smag [cmd1] [cmd2]` if you want to graph multiple commands at once.\nYou can control how often the graph updates with the `-n` flag. You can also graph a derivative of the command's output using `-d`.\n\n`smag` can graph any command which outputs an integer or float. Any whitespace before/after the number is trimmed automatically.\n\nPull requests for more features or fixes are welcome.\n\n## Examples\n* Graph number of processes: `smag \"ps aux | wc -l\"`\n* Graph number of bash processes and ssh processes as two separate lines: `smag \"ps aux | grep ssh | wc -l\" \"ps aux | grep bash | wc -l\"`\n* Graph number of running Kubernetes pods: `smag \"kubectl get pods -A | grep Running | wc -l\"`\n* Graph CPU temperature on Raspberry Pi 5: `sudo -v \u0026\u0026 smag -n 0.5 -y °C \"sudo vcgencmd measure_temp | tr -d -c 0-9.\"`\n\n## Full Usage\n\n```bash\n$ smag --help\nsmag 0.6.0\nShow Me A Graph - Like the `watch` command but with a graph of previous values.\n\nUSAGE:\n    smag [FLAGS] [OPTIONS] \u003ccmds\u003e...\n\nFLAGS:\n    -d, --diff       Graph the diff of subsequent command outputs\n        --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -h, --history \u003cbuffer-size\u003e          Specify number of points to 'remember' and graph at once for each commands\n                                         [default: 100]\n    -n, --interval \u003cpolling-interval\u003e    Specify update interval in seconds. [default: 1.0]\n    -y, --y-label \u003cy-label\u003e              Label/units for y-axis (e.g. 'MB', 'Seconds') [default: ]\n\nARGS:\n    \u003ccmds\u003e...    Command(s) to run\n```\n\n## Inspiration\n**smag was inspired and based on code from the wonderful [gping](https://github.com/orf/gping) tool by Tom Forbes**\n\n# Other tools\n\nI also work on [Robusta](https://github.com/robusta-dev/robusta) - better Prometheus based alerts for Kubernetes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faantn%2Fsmag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faantn%2Fsmag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faantn%2Fsmag/lists"}