# fsnotify

> Cross-platform file system notifications for Go

Source: https://talira.ai/catalog/fsnotify-a23s8pek
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / go](https://talira.ai/categories/languages/go)
- Platforms: linux, macos, windows[^1]
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [fsnotify](https://talira.ai/orgs/fsnotify.md)

fsnotify is a Go library that watches files and directories for changes and delivers create, write, remove, rename and chmod events on a channel. It uses each system's own interface: inotify on Linux, kqueue on BSD and macOS, ReadDirectoryChangesW on Windows and FEN on illumos. A watcher is added per directory, and the project recommends watching a file's parent directory rather than the file, since editors often replace files atomically. It needs Go 1.23 or newer.

## Links

- GitHub: https://github.com/fsnotify/fsnotify
- Docs: https://pkg.go.dev/github.com/fsnotify/fsnotify

## Problems it solves

- rerun something in my Go program when a config file changes
- watch a directory for new files from Go on Linux, macOS and Windows
- get notified in Go when a file is written or deleted

## Features

- Create, write, remove, rename and chmod events on a Go channel
- inotify on Linux, kqueue on BSD and macOS, ReadDirectoryChangesW on Windows, FEN on illumos
- One watcher for many paths, with an errors channel
- Example commands in cmd/fsnotify

## Limitations

- Subdirectories aren't watched: you add a watch for each directory[^1]
- Doesn't work on NFS, SMB, FUSE, /proc or /sys, and there's no polling fallback yet[^1]
- No FSEvents backend on macOS yet, so Spotlight indexing can cause extra events[^1]

## Trust

Overall: 0.43 out of 1.
Signals: maintenance 0.27, adoption 0.81, momentum 0.56, community 0.77, backing 0.30, extensibility 0.00.

- latest release v1.10.1 6 months ago
- 10.8k GitHub stars
- 83 contributors
- accepts sponsorship (Github)
- has a company behind it

Warnings:

- last commit 6 months ago

## Sources

[^1]: https://github.com/fsnotify/fsnotify (checked 28 Nov 2026)
[^2]: https://github.com/fsnotify/fsnotify/blob/main/LICENSE (checked 28 Nov 2026)
