Publish `fswatch` Go package
Author: emersionCreated Sep 26, 2026Updated Sep 28, 2026
Search Terms
fswatch
✅ Viability Checklist
- This wouldn't be a breaking change in existing TypeScript/JavaScript code
- This wouldn't change the runtime behavior of existing JavaScript code
- This could be implemented without emitting different JS based on the types of the expressions
- This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
- This isn't a request to add a new utility type: https://github.com/microsoft/TypeScript/wiki/No-New-Utility-Types
- This feature would agree with the rest of our Design Goals: https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals
⭐ Suggestion
TypeScript developers have written a new nice fswatch Go package to watch filesystems. Good libraries are scarce in this domain.
Publishing fswatch as a stable, standalone Go package would allow others to rely on it and benefit the rest of the Go ecosystem. The package does not need to be moved out of the TypeScript monorepo. The bare minimum would be to drop the "internal" flag, but it would be nicer for the package to have its own go.mod to reduce downstream dependencies.
Motivating Example
I'm writing another Go tool which needs to listen to filesystem events.
Use Cases
File synchronization programs, build tools, media galleries, and so on.
Source: microsoft/TypeScript