How can I trigger a validator for SVG icons without watching the whole repository?
watchexec/watchexec
Watchexec monitors file changes and launches a command you already maintain. A team packaging public design assets can use it to re-run a filename and dimension check when a designer saves a source image.
Public GitHub facts reviewed Nov 25, 2026. Independent editorial profile; not a sponsored entry.
How is the score calculated?
Calculated on 25.11.2026. Missing public information receives no points. The index does not establish code quality, security, fitness, or future visibility.
What can watchexec help with?
Trigger a local image check
Create a scratch icons folder and confirm that node validate-icons.mjs checks it without writing output there. Run watchexec -w icons -e svg -- node validate-icons.mjs and save an SVG with a test change.
Make sure an update during validation gets picked up
Start a slower validation script, save another icon while it runs, and observe the default behavior. Repeat with --on-busy-update queue and verify that a second run sees the new file.
Questions people ask before using watchexec
How can I trigger a validator for SVG icons without watching the whole repository?
Point -w at the icons folder and add -e svg. Keep the validator command after --. Save an icon and then an unrelated Markdown file to verify that only the intended change triggers the check.
What happens when I add PNGs to the same package?
Include both extensions, such as -e svg,png, after confirming the validator understands both file types. Save one known-good fixture of each type and check that the validator announces the expected input.
How do I watch source artwork and a separate manifest?
Use repeated -w options for the desired paths. When the manifest editor saves by replacing the file, watch its containing folder and filter for the manifest name. Test a manifest-only edit to check that the command runs and loads the new content.
Why does an export from my design app launch the checker several times?
The app may write a temporary file, rename it, and update attributes during one save. Restrict the paths and matching names, then tune debounce. Check that a final renamed file still triggers validation.
How do I get readable validator feedback while troubleshooting?
Run the validator by hand first to understand its messages and exit behavior. Use a terminal session with prior output visible and omit clearing the screen. Add distinct output for each fixture so you can tell which change the watcher observed.
How should I deal with a validator that also generates a report?
Place the report in a build or scratch directory outside the watched input tree. Then save an icon once and confirm the validator runs once. Include the report destination in your team's local setup so people keep the boundary when moving directories.
Can I share my local watch command with designers on different operating systems?
Use a validator executable available to each collaborator and avoid shell-specific pipes or quoting in the shared example. Write down the tested tool versions. Ask each platform owner to make one local edit and confirm the expected command ran.
How can I trigger the check only after the first actual edit?
Use --postpone to suppress the initial execution. Start the watcher with a known-good folder, save an intentionally invalid scratch icon, and confirm the first terminal message reflects that edit.
Should I restart a packaging script every time a designer saves?
If the script produces a package, interrupting it can leave a partial staging output. Prefer queue for a command that should finish before another run. Use a dedicated output folder and inspect its final contents before distribution.
Can the watch session replace a validation job for the published asset bundle?
The watch session gives fast feedback during editing. In CI, run the validator directly against the complete staged bundle and gate publication on its result. This also covers files modified while nobody was running the watcher.
What to check before adoption
- Primary language
- Rust
- GitHub license field
- Apache-2.0
- License according to repository file
- Apache-2.0 · LICENSE ↗
- Stars / forks in this snapshot
- 7,339 / 215
- Last code push
- 21.11.2026
- Self-hostable
- Potentially, verify operating requirements
Feedback depends on local filesystem notifications and the validator's coverage. Run the validator on the final package separately before distributing it.
Comparison and original sources
Compared with zola Zola provides a development server for a Zola site. Watchexec can trigger a project-specific asset validator independently of the site's generator.
Documentation and repository data
Compare related projects
lighthouse
GoogleChrome/lighthouse
An automated audit tool for web performance, accessibility, SEO checks, and best practices.
GitHub snapshot 11.11.2026 · Score method on profile
A visual low-code environment for event-driven automations and integrations.
GitHub snapshot 11.11.2026 · Score method on profile
wordpress-develop
WordPress/wordpress-develop
A GitHub mirror of the WordPress core development project.
GitHub snapshot 11.11.2026 · Score method on profile
Back to Open Source Radar
Explore more projects by job, technology, and license.