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

@pageblock/utils

v0.4.0

Published

A modern utility library for PageBlock and Webflow, providing reusable components and utilities for web applications and Webflow sites

Readme

PageBlock Utils

A modern utility library for PageBlock and Webflow, providing reusable components and utilities for web applications and Webflow sites.

npm version GitHub license

Features

  • 🚀 Modern JavaScript (ES6+)
  • 📦 Tree-shakeable exports
  • 🎨 SCSS styling with modern features
  • 🔧 Built with Vite for optimal performance
  • 📱 Responsive and accessible components
  • 🌐 Cross-browser compatibility
  • ⚡ Webflow-ready components

View Demo | Report Bug | Request Feature

Installation

NPM Installation (Recommended)

npm install @pageblock/utils

Import Individual Components

// Import specific components
import { Countdown } from '@pageblock/utils/countdown';
import '@pageblock/utils/style.css';

// Initialize components
const countdown = new Countdown();

Import Complete Package

// Import all components
import PageBlockUtils from '@pageblock/utils';
import '@pageblock/utils/style.css';

// Initialize components
const modal = new PageBlockUtils.Modal();
const countdown = new PageBlockUtils.Countdown();

CDN Usage (For Webflow)

<!-- Add to Head -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@pageblock/utils@latest/dist/pageblock-utils.css">

<!-- Add before </body> -->
<script type="module">
  import { Countdown } from 'https://cdn.jsdelivr.net/npm/@pageblock/utils@latest/dist/countdown.js';
  const countdown = new Countdown();
</script>

Components

Countdown Component

View Countdown Documentation

Modal Component

The modal component provides an accessible, customizable modal dialog system that can be used in various contexts:

  • As an ES module in modern JavaScript applications
  • As a direct script include for Webflow or other no-code platforms
  • As part of the PageBlock Utils package

Features

  • Accessibility: Full keyboard navigation, focus trapping, and proper ARIA attributes
  • Multiple animations: Fade, zoom, slide-up, slide-down
  • Layout variants: Standard modal, bottom sheet, side panels, full-screen mobile
  • Z-index management: Automatically handles stacking of multiple modals
  • Event callbacks: Hooks for open and close events
  • No dependencies: Pure JavaScript with no external libraries required

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Contributing

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)

License

MIT License - see the LICENSE file for details.