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 🙏

© 2026 – Pkg Stats / Ryan Hefner

blackhighlighter

v0.10.1

Published

Client and server for widget implementing secure and committed web redaction

Downloads

16

Readme

Blackhighlighter logo

Blackhighlighter combines novel editing with in-browser cryptography to facilitate new ways of communicating. It is packaged as a jQuery widget (with no other dependencies), along with a server library that can be integrated into Node.JS projects as an npm module.

The best way to understand the idea is to see a running demo of a site that incorporates it. So please visit:

http://blackhighlighter.org

For philosophy, videos, and more articles about the project, see http://blackhighlighter.hostilefork.com/.

THIS PACKAGE

This package contains two key source files:

  • blackhighlighter.js - The server side logic for committing, retreiving, and revealing blackhighlighter commits. Commits are stored in a MongoDB database.

  • jquery-blackhighlighter/jquery-blackhighlighter.js - Code implementing the jQuery widget, as well as shared code loaded as a dependency by blackhighlighter.js. In order to avoid an actual dependency on jQuery in the Node code, a "fake" stub is loaded server-side (jquery-fake.js).

The 1.0 goal is to release a functional letter-writing service built on the blackhighlighter package. That is currently the demo service at blackhighlighter.org; which has a GitHub repository here:

https://github.com/hostilefork/blackhighlighter.org

USAGE

To include and configure blackhighlighter on the server side, you will need a MongoDB database URI where commits and reveals will be read/written:

var blackhighlighter = require('blackhighlighter');

blackhighlighter.configure({
    mongoConnectURI: "http://..."
});

You can serve the jquery-blackhighlighter.js and jquery-blackhighlighter.css files from directly inside of ./node_modules/blackhighlighter. The path to those files is given with blackhighlighter.pathForJqueryBlackhighlighter(). So for instance:

app.use("/public/js/jquery-blackhighlighter",
    express.static(blackhighlighter.pathForJqueryBlackhighlighter())
);

For the moment, there are expectations on the URL suffixes of the REST services hardcoded in the widget (relative to a base_url you pass it). See this issue for discussion:

https://github.com/hostilefork/blackhighlighter/issues/57

Thus the way to try using blackhighlighter in your project is essentially "do what the demo does". A good first start would be to get the demo working and understand it.

Going forward past 1.0, the API is adapting so that the widget can integrate more easily into other applications with a different workflow from blackhighlighter.org. Feedback is welcome.