{"id":30049243,"url":"https://github.com/shan-shaji/litcat","last_synced_at":"2026-01-20T17:35:05.094Z","repository":{"id":305949853,"uuid":"1018228000","full_name":"shan-shaji/litcat","owner":"shan-shaji","description":"Simple Rust CLI tool for viewing patch and diff files with highlighting.","archived":false,"fork":false,"pushed_at":"2025-07-22T19:42:03.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-22T21:20:59.253Z","etag":null,"topics":["cat","developer-tools","development","git-email","git-patch","linux","patch","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/litcat","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shan-shaji.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}},"created_at":"2025-07-11T20:47:16.000Z","updated_at":"2025-07-22T19:42:06.000Z","dependencies_parsed_at":"2025-07-22T21:21:02.342Z","dependency_job_id":"487afdb8-8ddf-445a-8c4c-e88d64337863","html_url":"https://github.com/shan-shaji/litcat","commit_stats":null,"previous_names":["shan-shaji/litcat"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/shan-shaji/litcat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shan-shaji%2Flitcat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shan-shaji%2Flitcat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shan-shaji%2Flitcat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shan-shaji%2Flitcat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shan-shaji","download_url":"https://codeload.github.com/shan-shaji/litcat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shan-shaji%2Flitcat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269247731,"owners_count":24385209,"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-08-07T02:00:09.698Z","response_time":73,"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":["cat","developer-tools","development","git-email","git-patch","linux","patch","rust"],"created_at":"2025-08-07T11:27:11.806Z","updated_at":"2026-01-20T17:35:05.079Z","avatar_url":"https://github.com/shan-shaji.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# litcat\n\n**litcat** is a simple Rust CLI tool for viewing patch and diff files with  highlighting. It colors added (`+`), removed (`-`), and context lines to make git diffs easier to read in your terminal.\n\n\n## Features\n\n- Colors added lines in **green**\n- Colors removed lines in **red**\n- Colors diff headers and hunk markers\n- Reads from a file or standard input (pipe)\n\n\n## Usage\n\n### From a patch file\n\n```sh\nlitcat xxx.patch\n```\n\n### Accepting stdin \n\n```sh\ncat diff.patch | litcat\n```\n\n## Example Output\n\n- Lines starting with `+` (but not `+++`) are **green**\n- Lines starting with `-` (but not `---`) are **red**\n- Diff headers (`+++`, `---`) are **cyan**\n- Hunk markers (`@@ ... @@`) are **yellow**\n- All other lines are default color\n\n\n## Installation\n\n### 1. Build from Source\n\n1. Clone the repo:\n    ```sh\n    git clone https://github.com/shan-shaji/litcat.git\n    cd litcat\n    ```\n2. Build:\n    ```sh\n    cargo build --release\n    ```\n3. Copy the build to `~/.cargo/bin`.\n4. Run as shown above.\n\n### 2. Install from crates.io\n\nyou can install directly using cargo:\n\n```sh\ncargo install litcat\n```\n\n## Dependencies\n\n- [clap](https://crates.io/crates/clap) for CLI argument parsing\n- [colored](https://crates.io/crates/colored) for colored terminal output\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshan-shaji%2Flitcat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshan-shaji%2Flitcat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshan-shaji%2Flitcat/lists"}