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

rk-ssg

v1.1.0

Published

Personal markdown based static site generator

Readme

Ryan Kubik's Static Site Generator

The idea of this project is to build a static site generator specifically only for my own purposes. I liked this article from a friend on the subject and it inspired this project.

I went and overcomplicated this project, but I had fun doing so. I learned a lot more about how some of these tools work so that has been nice too.

Development

This project has an example directory, this is a fake site that has a bunch of different features the generator supports.

To do a test build:

  • npm run build:example:clean to remove all previously built files
  • npm run build:example to generate a build of the example project in the example-dist folder
  • npm run build:example:serve will run a dev server that auto-rebuilds and hot-reloads site files as you work on them

Building

  • Run npm npm build to create a bundled version of this project in the dist folder using esbuild

Publishing

  • Update the package version in package.json
  • Run npm publish to publish a new version
    • You do not need to build the project first. The project will create a new build in its prepublish step.

Architecture

There's a build Pipeline that governs how the build works. Right now it is created in src/pipeline/createBuildPipeline.ts. Ideally, this pipeline should be easily configurable per consumer in the future.

A Pipeline has three kinds of component:

  • Sourcer - locates files from sources (only on disk right now) and gets them into the pipeline
  • Transformer - uses information from files to add data to file.transformations used in subsequent transformations or emissions
  • Emitter - uses transformed file data to write files to disk

Transformers

The order of transformations matters. This leads to several inconvenient issues right now. It is not particularly intuitive, easy to make mistakes, and hard to tell what those mistakes are. I'd like to explore cleaning that up in the future as I add new capabilities.

There seem to be sort of "pre" and "post" transformation steps. These aren't formalized. The "pre" steps are more about identifying data about files so that the main transformations can use that data. The main transformations actually convert files to significant different formats. The "post" transformations do things like prettify output.

I'm not sure if formalizing this pre, main, post will help understanding or not. I think it could reduce the cognitive load of dealing with the specific ordering transformers are run.