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

docifier

v1.0.5

Published

Simple HTML & JS documentation library for creating live documentation. Useful for styling client projects.

Readme

docifier

Simple HTML & JS documentation library for creating live documentation. Useful for styling client projects.

Getting Started

Example usage: -

  • Create a html page
  • Create and Style the html components
  • Docifier the elements to produce onscreen documentation of the code used to create the look.

The benefit to this process is that it shows exactly how each element was created, without having documentation drift out of date with the code used.

Below is an example of some simple styling used in a project of mine.

    <div id="text">
        <h1>Heading 1</h1>
        <h2>Heading 2</h2>
        <h3>Heading 3</h3>
        <p>
            This is a regular paragraph with formating for the iotaa project,
            this should wrap around with some sensible line spacing.
        </p>
    </div>

docifier.after() is called when the page is fully loaded, then tell docifier which element to docify.

<script>
    docifier.after = () => {
        docifier.docEl( '#text > *:nth-child(1)', '#text' );
        docifier.docEl( '#text > *:nth-child(2)', '#text' );
        docifier.docEl( '#text > *:nth-child(3)', '#text' );
        docifier.docEl( '#text > *:nth-child(4)', '#text' );
    };
</script>

Docifier then simply at the HTML used in the element and outputs this information inline on the page.

Scaling

Docifier provides a few tools for scaling the display. Its a rudimentary system which allows the developer to see what the resultant html looks like on different sized screens.

The latest Chrome does a very good job of this with its responses dev tools, but as developers we ( sometimes ) have to work with browsers that don't support the developer as much.

I find a mix of the Docifier scaling and Chrome dev tools does a pretty good job.

Why?

Personally I find a stencil of all controls used in a project particularly useful for showing clients. It allows a look to be defined and agreed.

Then developers can work from this with the HTML examples specified, cutting ambiguity, whilst also allowing testing to be performed.

Scaffold Example

A basic scaffold html below, can be used to start a project.

<!doctype html>
<html>
    <head>
        <title>Stencil</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
		<meta name="HandheldFriendly" content="true" >
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-mobile-web-app-status-bar-style" content="black" />

        <link rel="stylesheet" href="<link to>/docifier.css">
        <script src="<link to>/docifier.js"></script>

        <script>
            docifier.after = () => {

            };
        </script>
    </head>
    <body>
        <div id="docifier-controls"><!-- Required for docifier controls to be added --></div>
        <h1 class="docifier-h1">DOCIFIER Test</h1>
        <p class="docifier-p">
            Some explanation
        </p>

        <div id="docifier-controlled-width">

        </div>
    </body>
</html>