@rabbx/overseer - Universal Hot Reload for Bun, Deno, Node

rabbxdev
senior software engineer
·
1 min read
Article

Tired of writing separate watch scripts for Bun, Deno, and Node?

@rabbx/overseer is a tiny, zero-dep library that handles file watching + graceful process restarts across all 3 runtimes.

Why Overseer?

Most tools are runtime-locked. Overseer auto-detects your runtime and just works.

Features

  • Glob support: include: ['src/**/*.ts'], exclude: ['**/*.test.ts']

  • Build before restart: onBeforeReload: () => $bun x tsc``

  • Smart debounce: Waits 1s after last save to restart

  • Cluster safe: Only primary process watches

  • TypeScript first: Full types included

  • https://github.com/rabbxdev/overseer

30s Setup

import { enableWatchReload } from '@rabbx/overseer';

enableWatchReload('./src', {
  include: ['**/*.ts'],
  restartDelay: 1000,
  onBeforeReload: async () => await $`bun x tsc`
});

Comments(1)

Join the discussion by logging into your account.

ZyVOP

ZyVOP

Word WarriorEarly Bird
2 months ago

Hey Rabbxdev, welcome to ZyVOP, happy blogging 😊

rabbxdev
rabbxdev

senior software engineer

founder and core maintainer rabbxdev

Subscribe to rabbxdev's Newsletter

Direct email dispatches when new stories are published. Zero algorithms.