{"id":42818405,"url":"https://github.com/samyakbardiya/trex","last_synced_at":"2026-01-30T06:46:37.383Z","repository":{"id":278635112,"uuid":"931764780","full_name":"samyakbardiya/trex","owner":"samyakbardiya","description":"A Terminal app for RegEx visualization","archived":false,"fork":false,"pushed_at":"2025-02-27T20:18:09.000Z","size":91,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T03:29:54.290Z","etag":null,"topics":["bubbletea","cli","cli-app","cobra-cli","golang","lipgloss","regex","regex-util","regexp","regular-expression","terminal","tui"],"latest_commit_sha":null,"homepage":"","language":"Go","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/samyakbardiya.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-02-12T20:21:30.000Z","updated_at":"2025-02-27T20:48:33.000Z","dependencies_parsed_at":"2025-02-20T21:24:22.559Z","dependency_job_id":"4f4a5998-3657-4c1e-ab96-a8b28f74dedf","html_url":"https://github.com/samyakbardiya/trex","commit_stats":null,"previous_names":["samyakbardiya/trex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samyakbardiya/trex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyakbardiya%2Ftrex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyakbardiya%2Ftrex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyakbardiya%2Ftrex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyakbardiya%2Ftrex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyakbardiya","download_url":"https://codeload.github.com/samyakbardiya/trex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyakbardiya%2Ftrex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28906914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T06:42:00.998Z","status":"ssl_error","status_checked_at":"2026-01-30T06:41:58.659Z","response_time":66,"last_error":"SSL_read: 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":["bubbletea","cli","cli-app","cobra-cli","golang","lipgloss","regex","regex-util","regexp","regular-expression","terminal","tui"],"created_at":"2026-01-30T06:46:36.801Z","updated_at":"2026-01-30T06:46:37.372Z","avatar_url":"https://github.com/samyakbardiya.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- markdownlint-disable MD033 --\u003e\n\u003c!-- marksman:disable MD033 --\u003e\n\n# TReX :t-rex:\n\n\u003c!-- markdownlint-disable MD013 --\u003e\n\u003cp\u003e\n  \u003ca href=\"https://github.com/samyakbardiya/trex/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/v/release/samyakbardiya/trex\" alt=\"GitHub Release\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://pkg.go.dev/github.com/samyakbardiya/trex\"\u003e\u003cimg src=\"https://pkg.go.dev/badge/github.com/samyakbardiya/trex.svg\" alt=\"Go Reference\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://goreportcard.com/report/github.com/samyakbardiya/trex\"\u003e\u003cimg src=\"https://goreportcard.com/badge/github.com/samyakbardiya/trex\" alt=\"Go Report Card\"\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003c!-- markdownlint-enable MD013 --\u003e\n\n**TReX** is a terminal-based tool for writing, visualizing, and testing Regular\nExpressions. Designed for efficiency, it provides a keyboard-driven interface\nfor rapid feedback on your regex experiments—all within your terminal.\n\n[![asciicast](https://asciinema.org/a/704948.svg)](https://asciinema.org/a/704948)\n\n\u003c!-- markdownlint-disable MD004 --\u003e\n\u003c!-- markdownlint-disable MD007 --\u003e\n\n\u003c!-- toc --\u003e\n\n- [Why TReX?](#why-trex)\n  * [Okay, but why \"TReX\"?](#okay-but-why-trex)\n- [Features](#features)\n- [Installation](#installation)\n  * [From the source](#from-the-source)\n- [Usage](#usage)\n- [Roadmap](#roadmap)\n- [Contributing](#contributing)\n- [Implementation](#implementation)\n\n\u003c!-- tocstop --\u003e\n\n\u003c!-- markdownlint-enable MD004 --\u003e\n\u003c!-- markdownlint-enable MD007 --\u003e\n\n## Why TReX?\n\n[![xkcd comic about Regular Expressions](https://imgs.xkcd.com/comics/regular_expressions.png)](https://xkcd.com/208)\n\nSometimes you just want to quickly test out a regex without switching between\nmultiple browser tabs or online tools. TReX lets you see how your regex\ninteracts with your text in real time—all within your terminal.\n\n- **Quick feedback:** Validate and debug regex patterns instantly.\n- **Integrated testing:** Load files and experiment with regex combinations.\n- **Efficient workflow:** Stay in your terminal and keep your focus on writing code.\n\n### Okay, but why \"TReX\"?\n\nTReX, is a playful fusion of TUI and RegEx. The `T` comes from **T**UI,\nwhile `ReX` from **R**eg**Ex**, hence **_TReX_** :t-rex:. Roar!\n\n## Features\n\n- **Written in Go:** Fast and portable.\n- **External file loading:** Test regex patterns against real-world data.\n- **Keyboard-driven interface:** Navigate without the need for a mouse.\n- **Mouse support:** For users who prefer it or need it.\n\n## Installation\n\n- **Install from Go Package Reference**:\n\n  ```sh\n  go install github.com/samyakbardiya/trex@latest\n  ```\n\n\u003cdetails\u003e\n  \u003csummary\u003eOR from the source\u003c/summary\u003e\n\n### From the source\n\n- **Clone the repository:**\n\n  ```sh\n  git clone https://github.com/samyakbardiya/trex.git\n  cd trex\n  ```\n\n- **Build the application:**\n\n  ```sh\n  go install\n  go build\n  ```\n\n  - **_Optionally_, you can copy the binary to your `PATH`:**\n\n    ```sh\n    cp ./trex ~/.local/bin\n    ```\n\n- **Verify the installation:**\n\n  ```sh\n  ./trex --version\n  ```\n\n\u003c/details\u003e\n\n## Usage\n\n- **Start TReX:**\n\n  ```sh\n  trex\n  ```\n\n- **Load a file into TReX:**\n\n  ```sh\n  trex file.txt\n  ```\n\n- **Advanced usage:** Check out the help flag for more commands:\n\n  ```sh\n  trex --help\n  ```\n\n## Roadmap\n\n- [ ] **Editable Text Area**: Replace the read-only view with an editable interface.\n- [ ] **Local History**: Implement local history similar to shell history,\n      navigable with arrow keys.\n- [ ] **Syntax Highlighting**: Add syntax highlighting for the RegEx input.\n- [ ] **Toggleable Flags**: Implement quick toggling for RegEx flags, such as:\n  - `g` (global)\n  - `m` (multi-line)\n  - `i` (case-insensitive)\n  - `U` (ungreedy)\n\n## Contributing\n\nContributions are welcome! Feel free to open issues or submit pull requests.\nFor major changes, please open an issue first to discuss what you'd like to\nchange.\n\n## Implementation\n\nDeveloped in Go, **TReX** leverages:\n\n- [Bubble Tea](https://github.com/charmbracelet/bubbletea) for building the TUI.\n- [Cobra](https://github.com/spf13/cobra) for command-line functionality.\n- [Lip Gloss](https://github.com/charmbracelet/lipgloss) for styling.\n- [Bubbles](https://github.com/charmbracelet/bubbles) for additional utilities\n\n---\n\n\u003cp align=\"center\"\u003e\n  Made during\n  \u003ca href=\"https://fossunited.org/fosshack/2025\"\u003eFOSS HACK 2025\u003c/a\u003e\n  in India :india:\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003csup\u003e\n    By\n    \u003ca href=\"https://links.samyakbardiya.dev\"\u003eSamyak Bardiya\u003c/a\u003e\n    \u0026amp;\n    \u003ca href=\"https://github.com/mitalrs\"\u003eMital Sapkale\u003c/a\u003e\n  \u003c/sup\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyakbardiya%2Ftrex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyakbardiya%2Ftrex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyakbardiya%2Ftrex/lists"}