{"id":33185836,"url":"https://github.com/solidiquis/grits","last_synced_at":"2026-04-02T16:03:01.786Z","repository":{"id":272052709,"uuid":"915386403","full_name":"solidiquis/grits","owner":"solidiquis","description":"A simple line-text formatter that makes it simple to parse, filter, and format live logs turning noise into meaningful insights.","archived":false,"fork":false,"pushed_at":"2025-01-21T07:25:51.000Z","size":46074,"stargazers_count":57,"open_issues_count":5,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-28T10:17:26.699Z","etag":null,"topics":["cli","command-line","command-line-interface","command-line-tool","commandline","regex","regexp","rust"],"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/solidiquis.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":"2025-01-11T17:58:56.000Z","updated_at":"2025-07-30T23:48:31.000Z","dependencies_parsed_at":"2025-01-11T19:18:25.170Z","dependency_job_id":"949ddfd3-e7a3-4faa-972d-8bfa2957b821","html_url":"https://github.com/solidiquis/grits","commit_stats":null,"previous_names":["solidiquis/grits"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/solidiquis/grits","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fgrits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fgrits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fgrits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fgrits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/solidiquis","download_url":"https://codeload.github.com/solidiquis/grits/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/solidiquis%2Fgrits/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31309586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cli","command-line","command-line-interface","command-line-tool","commandline","regex","regexp","rust"],"created_at":"2025-11-16T05:00:20.102Z","updated_at":"2026-04-02T16:03:01.773Z","avatar_url":"https://github.com/solidiquis.png","language":"Rust","funding_links":["https://buymeacoffee.com/O3nsHqb7A9"],"categories":["\u003ca name=\"text-processing\"\u003e\u003c/a\u003eText processing"],"sub_categories":[],"readme":"# Grits\n\n[![Build status](https://github.com/solidiquis/grits/actions/workflows/rust_ci.yml/badge.svg)](https://github.com/solidiquis/grits/actions)\n[![Crates.io](https://img.shields.io/crates/v/grits.svg)](https://crates.io/crates/grits)\n[![Crates.io](https://img.shields.io/crates/d/grits)](https://crates.io/crates/grits)\n\nA simple line-text formatter that makes it simple to parse, filter, and format live logs turning noise into meaningful insights.\n\n![demo gif](images/log.gif)\n\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eAn example of Grits in action: the left pane shows Grits being applied, and the right pane displays the raw logs.\u003c/em\u003e\n\u003c/p\u003e\n\n\n* [Installation](#installation)\n* [Documentation](#documentation)\n* [Contributing](#contributing)\n* [Donating](#donating)\n* [FAQ](#faq)\n\nAt its core, `grits` applies regular expressions with named captures to input lines. These captures are then available as variables\n(a.k.a. anchors) which can then be used in a `grits` template string. The template string supports text-alignment, colorization,\nas well as other attributes you'd expect using ANSI escape sequences.\n\nThe following example demonstrates how to apply `grits` to `tcpdump` to extract an output line's timestamp (`ts`) and\na packet's source (`src`) and destination (`dst`) IP address:\n\n```bash\ntcpdump -nn | grits -- \\\n  -p '^(?\u003cts\u003e[^ ]+)' \\\n  -p 'IP\\w? (?\u003csrc\u003e[^ ]+)' \\\n  -p '\u003e (?\u003cdst\u003e[^ ]+):' \\\n  -t '[{(cyan|bold):ts}] {(green|underlined):\"src\"}={(lalign(45)):src} {(yellow|underlined):\"dst\"}={dst}'\n```\n\n![demo image](images/demo.png)\n\u003cp align=\"center\"\u003e\n  \u003cem\u003eThe top pane in the above screenshot is the raw output of tcpdump while the bottom pane shows the output being piped into grits.\u003c/em\u003e\n\u003c/p\u003e\n\n## Installation\n\n### crates.io\n\n```bash\ncargo install grits\n```\n\n### cURL\n\n```bash\ncurl --proto '=https' --tlsv1.2 -LsSf https://github.com/solidiquis/grits/releases/download/v0.3.0/grits-installer.sh | sh\n```\n\n### Powershell\n\n```bash\npowershell -ExecutionPolicy Bypass -c \"irm https://github.com/solidiquis/grits/releases/download/v0.3.0/grits-installer.ps1 | iex\"\n```\n\n### Manual installation\n\nCheck the [releases page](https://github.com/solidiquis/grits/releases) for prebuilt binaries.\n\n\n## Documentation\n\nThe documentation for `grits` can be found [here](./docs/help.md). It is also available in the CLI via `--help`.\n\n## Contributing\n\nAll well-intentioned forms of contributions are welcome.\n\n## Donating\n\nIf you like this tool, please consider [buying me a coffee](https://buymeacoffee.com/O3nsHqb7A9). Much appreciated!\n\n## FAQ\n\n- Q: **Have you heard of lnav? Why should I use grits over lnav?**\n- A: I have heard of [lnav](https://github.com/tstack/lnav) but I haven't used it. Users are encouraged to use both to see what best fits their needs.\n\n- Q: **Why is this called grits?**\n- A: I was really craving shrimp \u0026 grits while writing this on a plane going to South Korea. Also, checkout my Spotify playlist called [Melancholy with a side of Grits](https://open.spotify.com/playlist/2bsBVlDXS1yWwUjxuSRtd2?si=44122d2dc11b4a90).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Fgrits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsolidiquis%2Fgrits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsolidiquis%2Fgrits/lists"}