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

holograph

v0.0.6

Published

Holograph is a NPM module that parses comments in your CSS and turns them into a beautiful style guide.

Readme

Holograph (alpha)

Join the chat at https://gitter.im/holography/holograph

Holograph is a NPM module that parses comments in your CSS and turns them into a beautiful style guide. It is initially a port of the excellent work done by the Hologram Ruby gem and aims to be compatible with most of its features.

In addition to features found in Hologram, Holograph includes:

Installation

Install the latest release from npm with:

npm install holograph

Using the --save or --save-dev flag will add the dependency to your project's package.json.

Configuration

Settings for your Holograph instance are found in holograph_config.yml and use YAML syntax. To begin, copy the template configuration file into your project root with:

cp node_modules/holograph/holograph_config.yml .

Settings in this file include the relative location of dependencies (for your project and for Holograph), the destination path, and a title for your style guide.

For more complete documentation, see how to configure Holograph.

Usage

The binary takes no parameters and just reads all options from the config file

node_modules/.bin/holograph

The default build location is ./holograph/. You can configure this by setting the destination value in holograph_config.yml.

Documenting your styles

Holograph will scan for stylesheets (.css, .scss, .sass, .less, .styl) within the source directory defined in your configuration. It will find Holograph comments and generate style guide sections from your comment's settings and content.

Sample comment:

/*doc
---
title: Headings
name: headings
category: typography
---

Headings should follow appropriate heading hierarchy.

```html_example
    <h1>Hello, world!</h1>
```
*/

For more complete documentation, see how to document your components.

Colour palettes

Holograph allows creation of colour palettes from your proprocessor stylesheets (.css, .scss, .sass, .less, .styl). This feature is new for Holograph and is not found in Ruby Hologram.

In brief, to mark colour variables to include in Holograph, use the following comment syntax:

$variable-name: <value>;    // hg-palette: Palette name

For more complete documentation, see how to use colour palettes.

How to test the software

Tests are being written with Mocha and the Chai assertion library

npm test

Known issues

Incomplete features

Unsupported features

  • colour values in palettes that require compilation, such as darken($brand-primary, 10%) and nested colour variables
  • Ruby-specific: .erb as a source and 'slim' for templates

Getting help

If you have questions, concerns, bug reports, etc, please file an issue in this repository's issue tracker.

Getting involved

  1. Fork it
  2. Create your feature/bug fix branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

More about the project

Contributors

Open source licensing info

Credits and references