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

shutters-accordion

v1.0.0

Published

A lightweight, developer-friendly accordion component that prioritizes simplicity and customization

Readme

Shutters Accordion

npm version License: MIT

A lightweight, developer-friendly accordion component that prioritizes simplicity and customization.

Installation

npm

npm install shutters-accordion

CDN

<!-- ES Module -->
<script type="module">
  import { ShuttersAccordion } from 'https://unpkg.com/[email protected]/dist/shutters.es.js';
</script>

<!-- UMD (for browsers) -->
<script src="https://unpkg.com/[email protected]/dist/shutters.umd.js"></script>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/style.css">

Quick Start

Basic HTML Structure

<div class="shutters-accordion">
  <div class="shutters-item">
    <input type="checkbox" id="shutters-item-1" class="shutters-toggle">
    <label for="shutters-item-1" class="shutters-header">
      <span class="shutters-title">Section Title</span>
      <span class="shutters-icon"></span>
    </label>
    <div class="shutters-content">
      <div class="shutters-body">
        <!-- Your content here -->
      </div>
    </div>
  </div>
</div>

CSS Files

Include the core CSS for functionality:

<link rel="stylesheet" href="./src/shutters-core.css">

Optionally include the theme CSS for styling:

<link rel="stylesheet" href="./src/shutters-theme.css">

JavaScript Usage

ES Module

import { ShuttersAccordion } from 'shutters-accordion';
import 'shutters-accordion/style.css';

const accordion = new ShuttersAccordion({
  container: '.shutters-accordion',
  animationDuration: 300,
  defaultOpen: 'first'
});

// Check version
console.log(ShuttersAccordion.VERSION); // "1.0.0"
console.log(accordion.version); // "1.0.0"

UMD (Browser Global)

<script src="path/to/shutters.umd.js"></script>
<link rel="stylesheet" href="path/to/style.css">

<script>
  const accordion = new window.ShuttersAccordion({
    container: '.shutters-accordion'
  });
</script>

API Methods

// Open item by index
accordion.open(0);

// Close item by index
accordion.close(0);

// Toggle item by index
accordion.toggle(0);

// Destroy instance and clean up
accordion.destroy();

Development

Start the development server:

npm run dev

Build for production:

npm run build

Features

  • Lightweight: Less than 50 lines of critical CSS
  • Modular: Separate core functionality from presentation styles
  • Accessible: Keyboard navigation and screen reader support
  • Customizable: Black and white theme with CSS custom properties
  • Compatible: Works with Vite and modern build tools

Browser Support

  • Modern browsers with CSS Grid support
  • Fallback support for IE11+ using max-height animations

Versioning

Current version: 1.0.0

Version Access

// Static property
console.log(ShuttersAccordion.VERSION); // "1.0.0"

// Instance property
const accordion = new ShuttersAccordion();
console.log(accordion.version); // "1.0.0"

Publishing

To publish a new version:

# Update version in package.json, VERSION file, and CHANGELOG.md
npm version patch  # or minor, major

# Build the package
npm run build

# Publish to npm
npm publish

License

MIT © Byron Johnson

See LICENSE for details.