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

fibgrid

v1.0.2

Published

A CSS Grid layout system based on the Golden Ratio (φ = 1.618)

Readme

FibGrid

A CSS Grid layout system built on the Golden Ratio (φ = 1.618).

Columns and rows subdivide recursively using φ, producing seven named cells (A–G) that feel naturally proportioned. No JavaScript. No dependencies. One file.

FibGrid layout

Install

npm

npm install fibgrid

CDN — no install needed, just add to your HTML:

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fibgrid/fibgrid.css">

Manual — download fibgrid.css and link it yourself.

Basic usage

<div class="fibgrid">
  <div class="fibgrid-cell a">...</div>
  <div class="fibgrid-cell b">...</div>
  <div class="fibgrid-cell c">...</div>
  <div class="fibgrid-cell d">...</div>
  <div class="fibgrid-cell e">...</div>
  <div class="fibgrid-cell f">...</div>
  <div class="fibgrid-cell g">...</div>
</div>

You don't have to use all seven cells — omit any you don't need.

Customisation

Override these CSS custom properties on .fibgrid:

| Property | Default | Description | |---|---|---| | --fibgrid-height | 100dvh | Height of the grid | | --fibgrid-gap | 0px | Gap between cells |

.fibgrid {
  --fibgrid-height: 600px;
  --fibgrid-gap: 8px;
}

Usage patterns

Full-viewport hero

The default — grid fills the entire screen.

<div class="fibgrid">
  <div class="fibgrid-cell a"><img src="cover.jpg"></div>
  <div class="fibgrid-cell b"><h1>Title</h1></div>
  <div class="fibgrid-cell c"><p>Subtitle</p></div>
</div>

Fixed-height section

Set a specific height to embed the grid inside a page alongside other content.

.fibgrid {
  --fibgrid-height: 500px;
}

Scrollable sticky layout

Wrap the grid in a tall container and make the inner element sticky. Scroll progress can then drive content changes with a small JS scroll listener.

<div style="height: 600vh; position: relative;">
  <div style="position: sticky; top: 0; height: 100dvh;">
    <div class="fibgrid" id="grid">
      <div class="fibgrid-cell a">...</div>
      <!-- etc. -->
    </div>
  </div>
</div>
const container = document.querySelector('[style*="600vh"]');
window.addEventListener('scroll', () => {
  const { top } = container.getBoundingClientRect();
  const progress = Math.min(1, Math.max(0, -top / (container.offsetHeight - window.innerHeight)));
  // use progress (0–1) to update grid content
});

With a gap

.fibgrid {
  --fibgrid-gap: 4px;
}

Nested grids

Place a second .fibgrid inside any cell to recurse the proportions.

<div class="fibgrid">
  <div class="fibgrid-cell a">
    <div class="fibgrid" style="--fibgrid-height: 100%;">
      <div class="fibgrid-cell a">...</div>
    </div>
  </div>
</div>

Cell reference

| Cell | Grid area | Approx. size | |---|---|---| | A | large left column, top rows | 61.8% × 61.8% | | B | top right strip | narrow × short | | C | right column | narrow × tall | | D | bottom strip | wide × short | | E | small square | ~9% × ~9% | | F | smaller square | ~5.6% × ~9% | | G | smallest square | ~5.6% × ~5.6% |

Demo

yukseltron.github.io/fibgrid