• Stars
    star
    116
  • Rank 303,894 (Top 6 %)
  • Language
    Clojure
  • License
    Eclipse Public Li...
  • Created over 3 years ago
  • Updated 10 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,819
star
2

clerk-demo

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

clojure-mode

Clojure/Script mode for CodeMirror 6
Clojure
160
star
4

clerk-slideshow

Clojure
53
star
5

lazo

Clojure
41
star
6

markdown

A cross-platform clojure/script parser for Markdown
Clojure
38
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
25
star
10

lezer-clojure

This is a Clojure grammar for the lezer parser system.
JavaScript
23
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

garden-cli

Command-line interface for application.garden
Clojure
10
star
14

viewers

Making you see things.
Clojure
8
star
15

clerkboard

It's Clerk showing a Dashboard
Clojure
8
star
16

book-of-clerk

The 📖 Book of Clerk
Clojure
6
star
17

lang-clojure

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

clerk-cljs-demo

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

clerk-test

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

garden-cron

Background tasks for application.garden
Clojure
4
star
21

datalevin-example.apps.garden

A demo for setting up datalevin within application.garden projects
Clojure
4
star
22

clojurescript-graaljs

GraalJS build target support for ClojureScript
Clojure
3
star
23

clerk-analyzer-issues

Clojure
2
star
24

nextmirror

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

clerk-website

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

clerk-cljs-template

2
star
27

mediKanren-web

A web UI for mediKanren
Clojure
2
star
28

tafuta

Searching git repositories made easy.
Clojure
2
star
29

clerk-dwim

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

blog

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

infinit

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

guix-docker

Dockerfile for GNU Guix
1
star
33

garden-id

Authentication for application.garden
Clojure
1
star
34

garden-template

Default template for new projects for application.garden
Clojure
1
star
35

garden-email

Email library for application.garden.
Clojure
1
star
36

prosemirror-gapcursor-bug

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

clojure-mode-demo

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

clerkless

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

cas-client

Clojure
1
star
40

cas

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

demand_based_runner

resource limiting demand based runner sketch
Elixir
1
star