npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

cljs-josh

v0.2.3

Published

Scittle cljs live-reloading server.

Readme

Scittle cljs live-reloading server.

Quickstart | Example project | Features | nREPL

A YouTube video about cljs-josh.

Quickstart

Start the josh watch server:

npm install cljs-josh
npx josh --init # optionally init with a basic project
npx josh

Then visit your Scittle-enabled index.html at http://localhost:8000.

When you save your .cljs files they will be hot-loaded into the browser running Scittle.

You can also install the josh command globally: npm i -g cljs-josh and then just call josh.

You can bootstrap a basic Scittle project with josh --init.

You can use the nREPL to evaluate forms.

Example project

See the example for a basic project to start with (or use josh --init).

Start the server to try it out:

cd example
npx josh

Features

I wanted a Scittle dev experience with these features:

  • No build step (the Scittle default).
  • Zero configuration required.
  • Live reloading on file change, like shadow-cljs.
  • Both cljs and CSS files live-reloaded.
  • Installable with npm install.
  • Pure JavaScript, no Java/binary dependency.
  • Minimal library deps.
  • nREPL support.

Josh is built on nbb.

nREPL

Josh runs an nREPL proxy which sends all commands to Scittle over a websocket. It automatically injects the scittle.nrepl.js script tags into the HTML at runtime.

The following editor specific instructions assume you have already:

  • Set up a basic Scittle project (josh --init).
  • run josh to start the server. nREPL server started on port 34581 on host 127.0.0.1 - nrepl://127.0.0.1:34581
  • Loaded http://localhost:8000 in your browser.
  • Opened main.cljs in your editor.

Editor-specific instructions are below.

VS Code

You need to have the Calva extension installed.

  • Click on "REPL ⚡️" in the bottom left.
  • Choose "Connect to a running REPL in your project".
  • Choose "ClojureScript nREPL Server".

Now you can evaluate forms with alt-Enter.

Cider

  • Issue cider-connect-cljs, use localhost, and enter the nREPL port.
  • Use nbb as REPL type.

Now you can evaluate forms.

If that doesn't get you up and running you may need to use sesman-link-with-buffer and select the existing entry.

Note: cider-inspect work.

If you have cider-default-cljs-repl set in your Emacs config it may also help to comment that out:

;;(setq cider-default-cljs-repl 'shadow)

vim-fireplace

  • Run :CljEval (josh/repl) to tell vim-fireplace it's in a ClojureScript repl.

Now you can evaluate forms with cpp and cpip etc.