# shama/gaze

:crystal_ball: A globbing fs.watch wrapper built from the best parts of other fine watch libs.

Repository: https://github.com/shama/gaze
Canonical: https://ross.abutalabs.com/products/gaze
Language: JavaScript
License: MIT
License Family: permissive
Topics: watch, watch-files
Last push: 2019-07-11T12:46:29+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5082, "days_push": 2610, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1150, forks 164 (observed 2026-08-28T04:03:46.533262+00:00)

## What it is
Gaze is a Node.js library that wraps fs.watch with glob pattern matching, emitting events for file changes, additions, and deletions. It unifies the best parts of other file-watching libraries into a single API compatible with Windows, macOS, and Linux.

## Use cases
- watch javascript files for changes during development
- trigger build tasks when source files change
- monitor a directory for newly added files
- detect when files are deleted in a watched folder
- watch multiple glob patterns like css and images
- build a custom file-watching dev server

## When to choose
- you need glob-based file watching in Node.js with a simple event API
- you want cross-platform file watching without writing fs.watch boilerplate
- you need to dynamically add watch patterns at runtime

## When to avoid
- you need an actively maintained library - the latest release was 2019 and newer alternatives like chokidar exist
- you need high-performance watching of very large file trees
- you are not using Node.js

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, file-system
- domain: developer-tools, files
- platform: cross-platform
- tags: file-watching, glob, fs-watch, nodejs-library, automation, nodejs

## Member repositories
- shama/gaze (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:46.533262+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:33:41.999501+00:00, confidence not recorded.
  - readme: https://github.com/shama/gaze (fetched 2026-08-28T04:03:46.533262+00:00, sha 50ad1ea1a4ae)
  - registry_npm: https://registry.npmjs.org/gaze (fetched 2026-08-29T12:38:51.494034+00:00, sha 2046d8fa54a4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
