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

cranium-ci

v0.2.1

Published

Simple continuous integration and deployment server

Readme

Cranium CI

Cranium CI (a fork of Braindead CI) is a self-hosted continuous integration and deployment server written in Node.js. It can build and deploy your code automatically upon a push on Github, advertise builds on Hipchat and do that quickly and painlessly.

What does it look like?

What can it do?

  • Automatic build and deploy on a push to the Github repository
  • Advertise build results on Hipchat
  • Very fast (starts up in less than a second, page load typically less than 500ms)
  • Easy to set up (create a project in 1 minute, set up hook to Github and Hipchat in 2)
  • All-purpose: can build and deploy any type of project, whatever the technology used is
  • Smart support for Node.js projects (only reinstall dependencies if needed to gain time). Smart support for other platforms will come depending on use (if you need it for your stack, do submit an issue, or even better a PR!)

Installation and tests

This assume you already have Node.js installed on your system.

// Install Cranium in two commands
git clone [email protected]:hugs/cranium.git
npm install

// Now test it (dev dependencies need to be installed)
make test

// You're done, now launch it:
./cranium.js            // On default port (2008)
./cranium.js -p 2009   // On port 2009

// Check out possible command-line options
./cranium.js -h

In production

It's highly recommended to serve Cranium over HTTPS (with Nginx for example). Upon first launch you will create your first admin user (you can create others in the settings), and then you'll need to be logged in to do anything.

The path to Cranium's home page should be / (corresponding to a URL such as https://ci.example.com/ or https://example.com:2008/). I will add an option for other URL structures in the future if enough people ask for it though.

Hooking up Cranium and Github

1. Cranium provides a URL, /githubwebhook, that Github can use POST to everytime a push occurs on the repo. In order to only allow Github to trigger builds on Cranium, you need to first create a token for Github in Cranium's Third-party services settings:

2. Then, you set up a WebHook on your Github repo ("Settings", "Service hooks"), using the /githubwebhook URL and the same token you defined in step 1 as the "token" querystring parameter like this:

Hooking up Cranium and Hipchat

In the third-party services settings, enter your Hipchat API token and the name of the room you want Cranium to tell you build results. You can also specify the "Cranium root url" which is the url of the home page (e.g. https://ci.example.com), so that the messages in Hipchat contain links to the build results.

Once set, you will be notified whenever a project was built (or skipped if disabled), and Hipchat will alert you in case the build fails.

Going forward

Don't hesitate to submit issues or pull requests!

License

MIT. Do whatever you want with the code.
(c) 2013 Louis Chatriot, [email protected] (c) 2014 Jason Huggins, [email protected]