awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
meta avatar

meta/watchman

0
View on GitHub↗
facebook.github.io/watchman↗

Watchman

Watchman is a file watching service written in C++. It runs as a long-lived background process that monitors directories and files, records when they are created, modified, or removed, and lets other tools query that record instead of rescanning the whole tree. It works on Windows, macOS, and recent Linux distributions such as Ubuntu and Fedora, using each platform's native change notifications.

Beyond watching, Watchman can run configured commands automatically whenever files matching defined patterns change, such as rebuilding assets. Changes are kept in an ordered history that clients can query by clock, so a tool can ask what has changed since a known point. Client programs talk to the service over a local socket with structured requests and replies, and ready-made Python, Rust, and JavaScript client libraries let each language share the same watcher and receive change events.

Clients can ask a running service which optional features it supports through an expanded version command, rather than hard-coding version checks. Existing commands and options are deprecated rather than removed, so older client applications keep working across upgrades.

Watchman is built from source with CMake. The build offers options such as shared libraries, virtual filesystem support, and a preferred Python. It embeds a version and build identifier taken from the latest commit or from environment overrides, fixes up library paths for the final install location, and includes a test suite.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Cross-Platform File Change Monitors - Monitors files and directories through native operating system event APIs and records changes for other tools to query.
  • File System Watchers - Runs as a long-lived daemon on Windows, macOS, and Linux, using native change notifications and exposing a unified view of file system events.
  • File-Change-Triggered Commands - Runs configured commands, such as rebuilding assets, automatically whenever files matching defined patterns change.
  • Background Daemon Services - Runs as a persistent background process that holds watch state in memory so many tools can query changes without rescanning.
  • File Change Watching Services - Keeps file watch state in a background service and records changes in an ordered history that other tools query by clock.
  • Clock-Based Change Queries - Records file changes in an ordered history so tools can ask what changed since a known clock instead of rescanning directories.
  • File Pattern Matching - Lets users register file-matching patterns that decide which changed files cause a configured command to run.
  • Build Rebuild Triggers - Runs configured commands such as asset rebuilds automatically whenever files matching defined patterns are modified, removing the need to rerun builds by hand.
  • Cross-Platform Support - Runs file watching on Windows, macOS and recent Linux distributions such as Ubuntu and Fedora.
  • Native File Event Backends - Uses inotify, FSEvents and Windows change notifications to learn about file changes without constant polling.
  • Request-Response Exchanges - Clients connect over a local socket and exchange structured requests and replies, plus pushed change events.
  • Multi-Language Client Libraries - Lets Python, Rust, and JavaScript programs share one watching service, sending requests and receiving change events without each language needing its own watcher.
13,761 stars·1,077 forks·C++·MIT·4 views

Star history

Star history chart for meta/watchmanStar history chart for meta/watchman

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Projects sharing features with Watchman

These projects share indexed features with Watchman. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • emcrisostomo/fswatchemcrisostomo avatar

    emcrisostomo/fswatch

    5,611View on GitHub↗

    fswatch is a cross-platform file change monitor that watches files and directories for modifications using the native event API of each operating system. It functions as a multi-backend file watcher library that selects from platform-specific backends such as inotify, kqueue, and FSEvents, with a polling fallback when no native API is available. The tool groups multiple file changes into a single event batch and triggers one command per batch, while also executing user-specified commands each time monitored files or directories are modified. The project applies include, exclude, event-type, a

    C++cc-plus-pluschange-monitor
    View on GitHub↗5,611
  • chaselambda/makefiletutorialchaselambda avatar

    chaselambda/makefiletutorial

    5,923View on GitHub↗

    This is an interactive single-page tutorial that teaches GNU Makefile syntax, rules, variables, and targets through hands-on examples. It serves as both a learning tool for build automation and a reference guide covering Makefile fundamentals, including pattern matching, built-in functions, and variable-driven build configuration. The tutorial walks through core Makefile concepts such as defining targets and prerequisites, using variables to parameterize commands, applying pattern rules for efficient file matching, and managing dependencies for incremental builds. It covers practical build au

    SCSS
    View on GitHub↗5,923
  • alandipert/fswatchalandipert avatar

    alandipert/fswatch

    5,553View on GitHub↗

    fswatch is a cross-platform file change monitor and event automation tool. It tracks file system modifications across different operating systems using native kernel event APIs or a portable polling fallback. The project implements specific wrappers for Linux systems using inotify and fanotify, as well as a watcher for BSD and macOS using kqueue. It translates these platform-specific APIs into a unified event format to provide consistent monitoring behavior. The tool allows for the automatic execution of external programs or scripts in response to detected changes. It includes capabilities f

    C++
    View on GitHub↗5,553
  • facebook/watchmanfacebook avatar

    facebook/watchman

    13,613View on GitHub↗

    Watchman is a filesystem change monitor and recursive directory watcher that operates as a background service to track file modifications in real time. It functions as an event-driven file trigger and state query engine, allowing users to retrieve directory snapshots and lists of changed files since a previous check. The project provides tooling for incremental builds by identifying exactly which files have changed to compile only necessary project components. It is designed for large scale directory watching, monitoring massive file trees while executing external commands or scripts automati

    C++
    View on GitHub↗13,613
Compare all 30 related projects→

Frequently asked questions

What does meta/watchman do?

Watchman is a file watching service written in C++. It runs as a long-lived background process that monitors directories and files, records when they are created, modified, or removed, and lets other tools query that record instead of rescanning the whole tree. It works on Windows, macOS, and recent Linux distributions such as Ubuntu and Fedora, using each platform's native change notifications.

What are the main features of meta/watchman?

The main features of meta/watchman are: Cross-Platform File Change Monitors, File System Watchers, File-Change-Triggered Commands, Background Daemon Services, File Change Watching Services, Clock-Based Change Queries, File Pattern Matching, Build Rebuild Triggers.

Which projects share features with meta/watchman?

Projects with overlapping indexed features include: emcrisostomo/fswatch — fswatch is a cross-platform file change monitor that watches files and directories for modifications using the native… chaselambda/makefiletutorial — This is an interactive single-page tutorial that teaches GNU Makefile syntax, rules, variables, and targets through… alandipert/fswatch — fswatch is a cross-platform file change monitor and event automation tool. It tracks file system modifications across… facebook/watchman — Watchman is a filesystem change monitor and recursive directory watcher that operates as a background service to track… rust-lang/cargo — Cargo is the official build system and package manager for the Rust programming language. It provides a unified… paulmillr/chokidar — Chokidar is a cross-platform file system monitoring library designed to provide a unified interface for tracking disk…