watchexec/watchexec
Executes commands in response to file modifications observed · 2026-08-28
Health v2 · maintenance only
99/100
- Activity 99
- Release rhythm 99
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 17.5
- age_days: 3636
- days_rel: 9
- days_push: 9
- n_releases_24m: 15
Adoption not part of the score
7140 stars · 202 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Watchexec is a standalone command-line tool written in Rust that watches files and directories and runs a command whenever modifications are detected. It also ships as a Rust library for building custom file-watching tools.
Use cases
- automatically rerun tests when source files change
- restart a dev server on file save
- rebuild artifacts when code is modified
- run linters or syntax checkers on every edit
- trigger a build when js, css, or html files change
When to choose
- you repeatedly run the same command during development and want it automated
- you need a language-agnostic, standalone binary with no runtime dependency
- you want gitignore-aware watching across macOS, Linux, and Windows
- you need to restart long-running processes like dev servers on change
When to avoid
- you need a full task runner or build system rather than a change-triggered command executor
- you need in-process file watching inside a non-Rust application
- you need complex event pipelines or distributed file watching
Facets
cli-tool · maturity active
developer-tools cli workflow-automation developer-tools windows rust cli file-watcher hot-reload build-automation rust-library command-line automation linux macos
3 sources
- readme: https://github.com/watchexec/watchexec · fetched 2026-08-28 · 152401daed6e
- homepage: https://watchexec.github.io · fetched 2026-08-29 · 15aec845a7e0
- registry_crates: https://crates.io/api/v1/crates/watchexec · fetched 2026-08-29 · 8b4118da7d64
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| watchexec/watchexec | main | 99 |
For agents
markdown · JSON · MCP: product_card(name="watchexec/watchexec")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem