• Stars
    star
    109
  • Rank 309,115 (Top 7 %)
  • Language
    Clojure
  • License
    Eclipse Public Li...
  • Created about 3 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Clojure directory watcher from Krell as a standalone library.

Beholder

Clojars Project

The Clojure directory watcher from krell as a standalone library.

Beholder Logo

Built using the Java library directory-watcher. From its README:

A directory watcher utility for JDK 8+ that aims to provide accurate and efficient recursive watching for Linux, macOS and Windows. In particular, this library provides a JNA-based WatchService for Mac OS X to replace the default polling-based JDK implementation.

The core directory-watcher library is designed to have minimal dependencies; currently it only depends on slf4j-api (for internal logging, which can be disabled by passing a NOPLogger in the builder) and jna (for the macOS watcher implementation).

Initial development by David Nolen.

Usage

Pass a callback function and paths to watch.

(require '[nextjournal.beholder :as beholder])
(def watcher
  (beholder/watch prn "src"))

(beholder/stop watcher)

Whenever a file changes, your callback function will be invoked with a map with :type and :path keys. Possible values for :type are :create, :modify, :delete or :overflow.

License

Copyright © 2021 Nextjournal

Distributed under the EPL-1.0 License.

More Repositories

1

clerk

⚡️ Moldable Live Programming for Clojure
Clojure
1,711
star
2

clerk-demo

🤹 A bucket of interesting Clerk demos.
Clojure
161
star
3

clojure-mode

Clojure/Script mode for CodeMirror 6
Clojure
156
star
4

clerk-slideshow

Clojure
51
star
5

lazo

Clojure
41
star
6

markdown

A cross-platform clojure/script parser for Markdown
Clojure
32
star
7

lurk

A log dashboard tool powered by Clerk and Lucene
Clojure
30
star
8

freerange

Clojure
29
star
9

simple-http-server

A simple http server implemented as thin Clojure wrapper around `SimpleWebServer` from JEP 408 for JDK 18+.
Clojure
26
star
10

lezer-clojure

This is a Clojure grammar for the lezer parser system.
JavaScript
22
star
11

advent-of-clerk

A template repo for folks wanting to do Advent of Code with Clerk.
Clojure
16
star
12

ssh-auth-github

Script to retrieve public SSH keys from teams on GitHub
Clojure
10
star
13

viewers

Making you see things.
Clojure
8
star
14

clerkboard

It's Clerk showing a Dashboard
Clojure
8
star
15

book-of-clerk

The 📖 Book of Clerk
Clojure
6
star
16

lang-clojure

Clojure language support for the CodeMirror code editor
TypeScript
5
star
17

garden-cli

Command-line interface for application.garden
Clojure
5
star
18

clerk-test

Clerk integration tools for clojure kaocha test runner
Clojure
4
star
19

clerk-cljs-demo

A demo project showing a custom CLJS build for Clerk.
Clojure
4
star
20

clojurescript-graaljs

GraalJS build target support for ClojureScript
Clojure
3
star
21

clerk-analyzer-issues

Clojure
2
star
22

nextmirror

Experimental repo for prosemirror and figwheel-main
Clojure
2
star
23

clerk-website

Clerk’s face on the World Wide Web
Clojure
2
star
24

clerk-cljs-template

2
star
25

mediKanren-web

A web UI for mediKanren
Clojure
2
star
26

datalevin-example.apps.garden

A demo for setting up datalevin within application.garden projects
Clojure
2
star
27

tafuta

Searching git repositories made easy.
Clojure
2
star
28

clerk-dwim

Proof of concept of a Do What I Mean Viewer for Clerk
Clojure
2
star
29

infinit

Custom image for the Infinit Filesystem. Based on official alpine builds from infinit.sh.
Shell
1
star
30

prosemirror-gapcursor-bug

Using the codemirror example from ProseMirror’s website to debug a potential gap cursor regression
JavaScript
1
star
31

blog

The New Nextjournal Blog – Made with Clerk Garden
Clojure
1
star
32

guix-docker

Dockerfile for GNU Guix
1
star
33

garden-cron

Background tasks for application.garden
Clojure
1
star
34

clojure-mode-demo

Sample project showing how to use clojure-mode with shadow-cljs.
Clojure
1
star
35

clerkless

An empty shell of Clerk's Public API.
Clojure
1
star
36

cas-client

Clojure
1
star
37

cas

Library for storing content-addressed blobs to cloud buckets.
Clojure
1
star