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

docusaurus-plugin-album

v0.1.1

Published

Pinterest-style masonry photo album plugin for Docusaurus with a Google Photos timeline scrubber and zero-dependency lightbox.

Readme

docusaurus-plugin-album

Pinterest-style masonry photo album plugin for Docusaurus with a Google Photos timeline scrubber, immersive hero header, and zero-dependency full-screen lightbox.

  • Pinterest Masonry Grid: Responsive multi-column layout with hover overlays for titles, locations, and series badges.
  • Google Photos Timeline Scrubber: Floating year/month indicator on scroll with one-click smooth jumping across years.
  • Immersive Post Hero Header: Full-width cover image, caption, location badge (📍), and album series badge (📁).
  • Zero-Dependency Lightbox: Keyboard navigation (← / → / Escape), background preload of adjacent photos, scroll locking, and automatic author avatar exclusion.
  • Drop-In Blog Wrapper: Wraps @docusaurus/plugin-content-blog with build-time lazy image injection and lightweight route props for fast page loads even with hundreds of albums.

Requirements

| Dependency | Version | | --- | --- | | Docusaurus | 3.8 or newer (tested with 3.10) | | React | 18 or 19 (tested with 19.2) | | Node.js | 20.19 or newer |

Install

npm install docusaurus-plugin-album

Usage

Register docusaurus-plugin-album in docusaurus.config.ts:

// docusaurus.config.ts
import type { Config } from '@docusaurus/types';
import type { AlbumPluginOptions } from 'docusaurus-plugin-album';

const config: Config = {
  // ...
  plugins: [
    [
      'docusaurus-plugin-album',
      {
        id: 'album',
        path: 'blog.album',
        routeBasePath: 'album',
        blogTitle: 'Photo Album',
        blogDescription: 'Travel and photography archive.',
      } satisfies AlbumPluginOptions,
    ],
  ],
};

export default config;

Album Post Frontmatter

Create Markdown files under your configured path (default: blog.album/):

---
title: Autumn in Hokkaido Biei
date: 2025-09-05
cover: /img/album/biei-cover.jpg
cover_caption: Morning light over the Blue Pond in Biei
location: Biei, Hokkaido
album_series: 2025 Northern Autumn
tags:
  - Japan
  - Photography
---

Introductory notes for the album...

<!--truncate-->

![Blue Pond Panorama](/img/album/biei-01.jpg)

![White Birch Reflections](/img/album/biei-02.jpg)

Supported Frontmatter Fields

| Field | Type | Description | | --- | --- | --- | | title | string | Album title | | date | string \| Date | Album date (YYYY-MM-DD) | | cover | string | Cover image URL. Posts without cover are hidden from the masonry index | | cover_caption | string | Optional caption displayed over the hero cover image | | location | string | Optional location badge (📍) | | album_series | string | Optional series/collection badge (📁) | | tags | string[] | Standard Docusaurus blog tags |

All standard @docusaurus/plugin-content-blog options are supported.

Development

pnpm install
pnpm --filter docusaurus-plugin-album build
pnpm --filter docusaurus-plugin-album test
pnpm playground

License

MIT