direvent
« Back to VersTracker
Description:
Monitors events in the file system directories
Type: Formula  |  Latest Version: 5.4@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: System utilities
Tags: monitoring filesystem daemon automation events
Install: brew install direvent
About:
Direvent is a file system monitoring daemon that executes user-defined commands when specific events occur in watched directories. It provides a robust and lightweight alternative to polling, enabling immediate reaction to file changes such as modifications, creations, or deletions. This tool is highly configurable, allowing for precise control over which events trigger which scripts or programs.
Key Features:
  • High-performance event monitoring using kernel APIs (kqueue, inotify, FSEvents)
  • Highly configurable via a single configuration file
  • Executes external programs or scripts on detected file events
  • Supports filtering events by file name patterns and event types
Use Cases:
  • Automatically recompile source code or restart services upon file changes
  • Trigger backup scripts when specific files are modified
  • Monitor log directories and process new log entries in real-time
Alternatives:
  • fswatch – fswatch is a multi-platform file change monitor that is often used for one-off commands, whereas direvent is designed to run as a persistent daemon for long-term monitoring.
  • inotify-tools – inotify-tools provides command-line utilities for Linux, while direvent offers a more daemon-oriented, cross-platform (POSIX) approach with a dedicated configuration file.
License: GPL-3.0-or-later
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, arm64_monterey, sonoma, ventura, monterey, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit