{"id":21442091,"url":"https://github.com/norskeld/rsx","last_synced_at":"2025-06-23T08:33:57.110Z","repository":{"id":47035057,"uuid":"337985860","full_name":"norskeld/rsx","owner":"norskeld","description":"Micro CLI for interactive execution of npm \u0026 yarn scripts.","archived":false,"fork":false,"pushed_at":"2024-04-17T22:12:11.000Z","size":60,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T12:22:57.020Z","etag":null,"topics":["cli","npm","npm-scripts","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/norskeld.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}},"created_at":"2021-02-11T09:43:26.000Z","updated_at":"2023-06-14T00:15:21.000Z","dependencies_parsed_at":"2024-04-17T23:27:29.189Z","dependency_job_id":null,"html_url":"https://github.com/norskeld/rsx","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/norskeld/rsx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Frsx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Frsx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Frsx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Frsx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/norskeld","download_url":"https://codeload.github.com/norskeld/rsx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/norskeld%2Frsx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261445551,"owners_count":23159295,"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":["cli","npm","npm-scripts","rust"],"created_at":"2024-11-23T01:48:34.761Z","updated_at":"2025-06-23T08:33:52.090Z","avatar_url":"https://github.com/norskeld.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `»` rsx\n\n[![Checks](https://img.shields.io/github/actions/workflow/status/norskeld/rsx/check.yml?style=flat-square\u0026colorA=22272d\u0026colorB=22272d\u0026label=checks)](https://github.com/norskeld/rsx/actions)\n\n\u003e `R`usty `S`cripts E`x`ecutor\n\nMicro CLI for interactive execution of npm \u0026 yarn scripts.\n\n## Preview\n\n[![asciicast](https://asciinema.org/a/566078.svg)](https://asciinema.org/a/566078)\n\n## Motivation\n\n**First**, I wanted to practise creating Rust command-line apps.\n\n**Secondly**, I'm lazy. Like, _really lazy_. I don't even like to type much. And sometimes I'm perplexed by amount of steps required to run an npm or yarn script. Especially if you can't remember what scripts a project even has without diving into an IDE or `cat`ing (`less`ing, `bat`ing, whatever) a `package.json`.\n\n**Thirdly**, if you seek for autocompletion, I would suggest you to use [this zsh enhancement](https://github.com/lukechilds/zsh-better-npm-completion).\n\nIf you are like me—read on.\n\n## Installation\n\n### macOS Intel (Homebrew)\n\n```shell\nbrew tap norskeld/tap\nbrew install norskeld/tap/rsx\n```\n\n### macOS / Linux / Windows (Cargo)\n\nMake sure to [install Rust toolchain][rust-toolchain] first. After that you can install rsx via **Cargo**:\n\n```shell\ncargo install --locked --git https://github.com/norskeld/rsx\n```\n\n## Features\n\n### Implemented\n\nYou can:\n\n- [x] Interactively select and run scripts from `package.json` in the current working directory:\n  - [x] Use arrows _or_ \u003ckbd\u003eJ\u003c/kbd\u003e / \u003ckbd\u003eK\u003c/kbd\u003e keys to select a script.\n  - [x] Press \u003ckbd\u003eCtrl+A\u003c/kbd\u003e / \u003ckbd\u003eHome\u003c/kbd\u003e to jump to the beginning.\n  - [x] Press \u003ckbd\u003eCtrl+E\u003c/kbd\u003e / \u003ckbd\u003eEnd\u003c/kbd\u003e to jump to the end.\n  - [x] Press \u003ckbd\u003eCtrl+C\u003c/kbd\u003e / \u003ckbd\u003eEsc\u003c/kbd\u003e to abort selection.\n- [x] Use different package managers: **npm**, **pnpm**, or **yarn**.\n- [x] Override default package manager (**npm**) through env variable.\n- [x] Pass a script name directly as argument and run via the selected package manager.\n- [x] Pass additional arguments after `--` to a selected script.\n\n### Planned\n\n- [ ] Determine package manager automatically. This can be done using simple heuristics like:\n  - Checking the lock files, they all differ between different package managers.\n  - Check the `packageManager` field in `package.json`.\n  - Briefly check contents of the `node_modules`.\n- [ ] Prettify output.\n  - [x] Display current package manager.\n  - [x] Dim script command.\n  - [ ] Properly wrap too long script commands.\n  - [ ] Refactor status and \"Executing...\" message handling and styling.\n- [ ] Quickly find scripts by simply typing their name.\n- [ ] Select multiple scripts and run them in order.\n\n### Maybe\n\n- [ ] Maybe support monorepos.\n\n## License\n\n[MIT](LICENSE).\n\n\u003c!-- Links --\u003e\n\n[cargo]: https://doc.rust-lang.org/cargo/\n[rust-toolchain]: https://www.rust-lang.org/tools/install\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorskeld%2Frsx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorskeld%2Frsx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorskeld%2Frsx/lists"}