{"id":20726023,"url":"https://github.com/logotip4ik/nrz","last_synced_at":"2025-04-23T18:28:23.381Z","repository":{"id":246700096,"uuid":"821896937","full_name":"logotip4ik/nrz","owner":"logotip4ik","description":"Supa-Fast™ cross package manager scripts runner. Fastest `npm run dev` on wild west.","archived":false,"fork":false,"pushed_at":"2025-03-23T13:37:04.000Z","size":130,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T10:14:22.454Z","etag":null,"topics":["nodejs","runner","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logotip4ik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-29T18:46:28.000Z","updated_at":"2025-03-23T13:37:07.000Z","dependencies_parsed_at":"2025-03-08T13:27:26.065Z","dependency_job_id":"90302b53-fc1a-4165-9d11-d2e4d72e3b1c","html_url":"https://github.com/logotip4ik/nrz","commit_stats":null,"previous_names":["logotip4ik/nrz"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logotip4ik%2Fnrz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logotip4ik%2Fnrz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logotip4ik%2Fnrz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logotip4ik%2Fnrz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logotip4ik","download_url":"https://codeload.github.com/logotip4ik/nrz/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250489438,"owners_count":21438964,"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":["nodejs","runner","zig"],"created_at":"2024-11-17T04:22:48.309Z","updated_at":"2025-04-23T18:28:23.369Z","avatar_url":"https://github.com/logotip4ik.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nrz\n\nSame as [nrr](https://github.com/ryanccn/nrr) or [nrn](https://github.com/logotip4ik/nrn), but even faster.\n\n## Want to try out ?\n\nDownload latest build artifact from [build ci](https://github.com/logotip4ik/nrz/actions/workflows/build.yml).\n\n\u003cdetails\u003e\n\u003csummary\u003eTo build `nrz` localy\u003c/summary\u003e\n\n1. Clone this repo\n\n2. Build `nrz` with (you will need zig installed):\n\n    ```sh\n    zig build --release=fast --summary all -Doptimize=ReleaseFast\n    ```\n\n3. Add `\u003crepo dir\u003e/zig-out/bin` to `PATH`\n\u003c/details\u003e\n\n## Usage\n\n```sh\nnrz dev --host\n```\n\nThis will run `dev` command from closest `package.json` and pass `--host` and option (it will forward\neverything you handle it).\n\n```sh\nnrz eslint ./src\n```\n\nThis will run `eslint` from closest `node_modeules/.bin/` folder and pass `./src` as arg.\n\n## Completions\n\nNrz can also autocomplete scripts for you, to enable autocomplete, add to your shell config file:\n\n```bash\n# For zsh\nsource \u003c(nrz --cmp=Zsh)\n\n# Bash\nsource \u003c(nrz --cmp=Bash)\n\n# Fish\nsource (nrz --cmp=Fish | psub)\n```\n\n\u003e Note: i can't verify if Bash and Fish autocompletes are working, please let me know if they aren't\n\u003e by creating an issue\n\n## Benchmark\n\n\u003cdetails\u003e\n\u003csummary\u003epackage.json\u003c/summary\u003e\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"node index.js\",\n    \"log\": \"echo $PATH\",\n    \"empty\": \"\"\n  }\n}\n```\n\u003c/details\u003e\n\n\n```sh\n$ hyperfine \"./nrr empty\" \"./nrz empty\" \"npm run empty\" \"node --run empty\" --shell=none --output=pipe\nBenchmark 1: ./nrr empty\n  Time (mean ± σ):       5.2 ms ±   0.5 ms    [User: 1.3 ms, System: 1.6 ms]\n  Range (min … max):     4.5 ms …  11.3 ms    264 runs\n\nBenchmark 2: ./nrz empty\n  Time (mean ± σ):       3.6 ms ±   0.2 ms    [User: 0.7 ms, System: 1.1 ms]\n  Range (min … max):     2.6 ms …   4.5 ms    828 runs\n\nBenchmark 4: npm run empty\n  Time (mean ± σ):     108.3 ms ±   1.1 ms    [User: 73.6 ms, System: 12.5 ms]\n  Range (min … max):   105.3 ms … 110.2 ms    27 runs\n\nBenchmark 5: node --run empty\n  Time (mean ± σ):      32.8 ms ±   0.4 ms    [User: 22.3 ms, System: 2.7 ms]\n  Range (min … max):    32.0 ms …  34.3 ms    87 runs\n\nSummary\n  ./nrz empty ran\n    1.42 ± 0.15 times faster than ./nrr empty\n    8.98 ± 0.46 times faster than node --run empty\n   29.68 ± 1.52 times faster than npm run empty\n\n$ ./nrr --version\nnrr 0.9.2\n$ nrz --version\nnrz 1.0.4\n$ node --version\nv22.11.0\n$ npm --version\n10.9.0\n```\n\n\u003e Benched on MacBook M3 Pro, Sequoia 15.2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogotip4ik%2Fnrz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogotip4ik%2Fnrz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogotip4ik%2Fnrz/lists"}