{"id":38650186,"url":"https://github.com/root-hunter/zig-search","last_synced_at":"2026-01-17T09:19:09.012Z","repository":{"id":241839396,"uuid":"807862824","full_name":"root-hunter/zig-search","owner":"root-hunter","description":"High-performance search utility written entirely in Zig","archived":false,"fork":false,"pushed_at":"2024-06-09T15:57:48.000Z","size":717,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-10T16:33:30.140Z","etag":null,"topics":["cross-platform","search","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","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/root-hunter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-05-29T23:26:27.000Z","updated_at":"2024-06-10T16:33:30.141Z","dependencies_parsed_at":"2024-05-30T09:26:38.795Z","dependency_job_id":"1e5fb720-5f8f-4e85-9f9c-dd891fe2c0ec","html_url":"https://github.com/root-hunter/zig-search","commit_stats":null,"previous_names":["root-hunter/zig-search"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/root-hunter/zig-search","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-hunter%2Fzig-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-hunter%2Fzig-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-hunter%2Fzig-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-hunter%2Fzig-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/root-hunter","download_url":"https://codeload.github.com/root-hunter/zig-search/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root-hunter%2Fzig-search/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"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":["cross-platform","search","zig"],"created_at":"2026-01-17T09:19:06.636Z","updated_at":"2026-01-17T09:19:07.764Z","avatar_url":"https://github.com/root-hunter.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n\u003c!-- README Template by: https://github.com/othneildrew/Best-README-Template --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/root-hunter/zig-search/\"\u003e\n    \u003cimg src=\"images/zig-logo.png\" alt=\"Logo\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003ezig-search\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    High-performance search utility written entirely in Zig\n    \u003cbr /\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\nThis is my first project written in Zig. I've been fascinated by Zig and its features, which offer a unique blend of performance, simplicity, and control. Zig-Search is a testament to the power and efficiency that Zig brings to the table, and it has been an exciting journey exploring what this language can do. I hope this tool showcases the potential of Zig and inspires others to explore it as well.\n\n## Features\n- 100% Zig implementation\n- Only std lib\n- Fast and efficient directory scanning\n- Recursive search in nested directories\n- Simple command-line interface\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n\nThis is an example of how you may give instructions on setting up your project locally.\nTo get a local copy up and running follow these simple example steps.\n\n### Build Prerequisites\n\nThese are the prerequisites needed only to build the project, if you only want to use zig-search you can go to the \u003cb\u003eUsage\u003c/b\u003e section\n* [Install zig](https://ziglang.org/learn/getting-started/)\n\n### Build \n1. Clone the repo\n```sh\ngit clone https://github.com/root-hunter/zig-search\n```\n2. Move to zig-search dir\n```sh\ncd zig-search\n```\n3. Build executable\n```sh\nmake build-exe\n```\n   or\n```sh\nzig build-exe src/main.zig --name zig-search -static\n```\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Examples\n\nSearch and export into file all path of files (with extension .txt) that contains the word \"password\" at least one time.\n```sh\nzig-search /start/path \"password\" -f txt -e ${HOME}/Documents/zig-search_result.txt\n```\n\nSearch and export into file all path of files (with extension .txt, .js, .html) that contains the word \"password\" at least one time.\n```sh\nzig-search /start/path \"password\" -f txt,js,html -e ${HOME}/Documents/zig-search_result.txt\n```\n\nSearch and export into file all path of files (with extension .txt) that contains the word \"password\" at least one time using 16 threads.\n```sh\nzig-search /start/path \"password\" -f txt -t 16 -e ${HOME}/Documents/zig-search_result.txt\n```\n\nSearch and export into file all path of files (with extension .txt) that contains the word \"password\" at least one time using all possible threads.\n```sh\nzig-search /start/path \"password\" -f txt -t 0 -e ${HOME}/Documents/zig-search_result.txt\n```\n\nOnly print paths to console without export result file (using all cpu core).\n```sh\nzig-search /start/path \"password\" -f txt -t 0\n```\n\nActive case sensitive search.\n```sh\nzig-search /start/path \"Password\" -f txt -t 0 -c\n```\n\nHelp command.\n```sh\nzig-search --help\n\nUsage: zig-search START_PATH SEARCH_STRING [OPTIONS]...\n\nOptions:\n  --help                           Help command\n  -f, --file-extensions            File extensions, in this form: txt,js | js,c,cpp\n  -t, --thread-count               Scan thread count (Default: 1)\n  -a, --all-match                  Match all the occurence in the file (Default: false)\n  -c, --case-sensitive             Case sensitive search (Default: false)\nExport options:\n  -e, --export-path                File export path (ABSOLUTE)\n  --export-no-info                 Disable info header in the export file\n  --export-match-position          Add match position info for each path in the export file\n```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Roadmap\n\n- [X] Help command\n- [X] Multihreading\n- [X] Advance text search\n- [X] Export results to file\n- [X] Scan file by list file paths\n\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n## License\nDistributed under the MIT License. See `LICENSE` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n[license-shield]: https://img.shields.io/github/license/othneildrew/Best-README-Template.svg?style=for-the-badge\n[license-url]: https://github.com/root-hunter/zig-search/blob/main/LICENSE\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/antonio-ricciardi-279118210\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot-hunter%2Fzig-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froot-hunter%2Fzig-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot-hunter%2Fzig-search/lists"}