All Projects → njdehoog → Witness

njdehoog / Witness

Licence: mit
Monitor file system events using Swift

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Witness

kube-watch
Simple tool to get webhooks on Kubernetes cluster events
Stars: ✭ 21 (-86%)
Mutual labels:  events, watch
dynamic-engine
Monitor events in the background on Android.
Stars: ✭ 24 (-84%)
Mutual labels:  events, monitor
Fileboy
fileboy,文件变更监听通知工具,使用 Go 编写。Fileboy, File Change Monitoring Notification Tool, written with Go.
Stars: ✭ 345 (+130%)
Mutual labels:  watch, monitor
Rocketman
🚀 Rocketman help build event-based/pub-sub code in Ruby
Stars: ✭ 139 (-7.33%)
Mutual labels:  events
Tsw
Tencent Server Web
Stars: ✭ 1,757 (+1071.33%)
Mutual labels:  monitor
Goes
Go Event Sourcing made easy
Stars: ✭ 144 (-4%)
Mutual labels:  events
Jstarcraft Core
目标是提供一个通用的Java核心编程框架,作为搭建其它框架或者项目的基础. 让相关领域的研发人员能够专注高层设计而不用关注底层实现. 涵盖了缓存,存储,编解码,资源,脚本,监控,通讯,事件,事务9个方面.
Stars: ✭ 150 (+0%)
Mutual labels:  monitor
React Native Listener
A utility component to allow easy access to browser native events
Stars: ✭ 136 (-9.33%)
Mutual labels:  events
Servermonitor
💓 Laravel package to periodically monitor the health of your server and application.
Stars: ✭ 148 (-1.33%)
Mutual labels:  monitor
Klap
zero config, zero dependency bundler for tiny javascript packages
Stars: ✭ 143 (-4.67%)
Mutual labels:  watch
Flutter Timeline
⌚️ A general flutter timeline widget based on real-world application references
Stars: ✭ 142 (-5.33%)
Mutual labels:  events
Kafka Monitor
Xinfra Monitor monitors the availability of Kafka clusters by producing synthetic workloads using end-to-end pipelines to obtain derived vital statistics - E2E latency, service produce/consume availability, offsets commit availability & latency, message loss rate and more.
Stars: ✭ 1,817 (+1111.33%)
Mutual labels:  monitor
Nemetric
前端性能指标的监控,采集以及上报。用于测量第一个dom生成的时间(FP/FCP/LCP)、用户最早可操作时间(fid|tti)和组件的生命周期性能,,网络状况以及资源大小等等。向监控后台报告实际用户测量值。
Stars: ✭ 145 (-3.33%)
Mutual labels:  monitor
Sneaker Monitors
A collection of web monitors that notify of restocks or updates on sneaker related sites through Discord Webhook. This includes Shopify, Nike SNKRS (supports 42 countries), Supreme and now Footsite monitor!
Stars: ✭ 130 (-13.33%)
Mutual labels:  monitor
Quasar Ui Qcalendar
QCalendar - Quasar App Extension, Vue CLI plug-in and UMD distributions available
Stars: ✭ 148 (-1.33%)
Mutual labels:  events
Monitor
监控服务器(包括Linux和Windows)的资源:CPU\内存\磁盘IO\网络带宽\端口的连接数\进程级别的CPU使用率和内存占用,请配合前台展示monitorweb使用,效果更佳。
Stars: ✭ 136 (-9.33%)
Mutual labels:  monitor
Lagmonitor
Monitor performance of your Minecraft server. Similar to VisualVM and Java Mission Control.
Stars: ✭ 147 (-2%)
Mutual labels:  monitor
Funzzy
Yet another fancy watcher. (Rust)
Stars: ✭ 142 (-5.33%)
Mutual labels:  watch
Facebook Events By Location Core
[DEPRECATED] Search Facebook events by location and proximity.
Stars: ✭ 141 (-6%)
Mutual labels:  events
Telemetry metrics
Collect and aggregate Telemetry events over time
Stars: ✭ 144 (-4%)
Mutual labels:  events

Witness

Monitor file system changes using Swift. Witness provides a wrapper around the File System Events API for OS X.

Installation

The recommended way to include Witness in your project is by using Carthage. Simply add this line to your Cartfile:

github "njdehoog/Witness" ~> 0.1

Usage

Import the framework

import Witness

Monitor file system events

This will trigger an event when a file in the Desktop directory is created, deleted or modified.

if let desktopPath = NSSearchPathForDirectoriesInDomains(.desktopDirectory, .userDomainMask, true).first {
    self.witness = Witness(paths: [desktopPath], flags: .FileEvents, latency: 0.3) { events in
        print("file system events received: \(events)")
    }
}

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Credits

Witness was developed for use in Spelt. If you like this library, please consider supporting development by purchasing the app.

License

Witness is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].