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

@ajdeb/blocks-ui

v1.0.9

Published

Lightweight CSS/JS framework for data visualization dashboards

Readme

Blocks UI

A lightweight UI framework to visualize data

npm

ui.png

Installation

  1. CDN (always latest):
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ajdeb/blocks-ui@latest/blocks.min.css">
<script src="https://cdn.jsdelivr.net/npm/@ajdeb/blocks-ui@latest/blocks.min.js"></script>

For production, pin a specific version:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@ajdeb/[email protected]/blocks.min.css">
<script src="https://cdn.jsdelivr.net/npm/@ajdeb/[email protected]/blocks.min.js"></script>
  1. Download the blocks.min.css and blocks.js files from the releases locally and import them directly:
<link rel="stylesheet" href="./path_to_static/blocks.min.css">
<script src="./path_to_static/blocks.min.js"></script>

Quickstart

<html>
<!-- See above for imports in the <head> -->
<body>
<div class="blockrow">
    <div class="block-100">
        <div class="title-lg">Blocks UI</div>
        <div class="subtitle">Status: live</div>
    </div>
</div>

<div class="blockrow">
    <div class="block-lg-20 block-md-40">
        <div class="title">Latest price</div>
        <div class="subtitle">Last updated: 5 min ago
        </div>
        <div class="number">$3,600</div>
        <div class="footer">Source: NYSE</div>
    </div>
    <div class="block-lg-20 block-md-40">
        <div class="title">Volatility</div>
        <div class="subtitle">Last updated: 5 min ago</div>
        <div class="number">67%</div>
    </div>
    <div class="block-lg-60 block-md-100 tab-block">
        <div class="tabs">
            <a href="#tab1" class="tab active">News</a>
            <a href="#tab2" class="tab">Futures</a>
        </div>
        <div id="tab1" class="tab-content">
            <p>NYSE just put out a notice that the ticker $BLOCKS will start trading next week.</p>
            <div class="footer">Source: BBG</div>

        </div>
        <div id="tab2" class="tab-content">
            <table>
                <thead>
                <tr>
                    <th scope="col">BLOCKS</th>
                    <th scope="col">HNEWS</th>
                    <th scope="col">GITHUB</th>
                    <th scope="col">HSC</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <th scope="row">+5%</th>
                    <th>+4%</th>
                    <th>-5%</th>
                    <th>+12%</th>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>
</html>

This will create a simple blocks UI: quickstart.png

Motivation

There is simply no library today that is a light CSS/JS library that can help with the visualization of data. There are many frameworks today that can display beautiful dashboards, but they are either bloated, slow or simply not data specific.

Blocks UI allows you to display your data is different blocks. Each block has:

  • A title
  • A subtitle (optional)
  • Tabs (optional)
  • A body
  • A footer (optional)

A block body can contain:

  • Another block
  • Text
  • A chart
  • A number
  • Plain HTML

Features

  • Display individual metrics
  • Display tables / heatmaps
  • Display charts
  • Display maps (coming soon)
  • Display card lists
  • Display your custom HTML
  • Load data directly in your script (SSR) or via an API (JSON or CSV for now)
  • Add a navbar and a side menu
  • Add API healthchecks

Disclaimer

This library was originally built by hand, and I've recently picked it back up and use some LLM tools to help me move it along at a faster pace. All reviews are manual, but please use carefully.