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

@agencecinq/drawer

v3.0.1

Published

A high-performance, accessible, and lightweight Web Component for creating Drawers (off-canvas sidebars) in Shopify themes. Part of the **CINQ** internal tools ecosystem.

Downloads

878

Readme

@agencecinq/drawer

A high-performance, accessible, and lightweight Web Component for creating Drawers (off-canvas sidebars) in Shopify themes. Part of the CINQ internal tools ecosystem.

Features

  • Zero Dependencies: Ultra-light footprint optimized for Shopify themes performance.
  • Accessibility First: Built-in focus trapping, keyboard navigation (ESC key), and ARIA support.
  • Vite Integration: Dedicated Vite plugin to automatically sync Liquid snippets with your Shopify theme's snippets/ folder.
  • Event-Driven: Fully controllable via the shared @agencecinq/utils event system.

Installation

pnpm add @agencecinq/drawer @agencecinq/utils

Usage (Shopify Integration)

1. Register the Vite Plugin

In your Shopify project's vite.config.ts, add the CINQ Drawer plugin. This will automatically copy the cinq-drawer.html.liquid snippet to your theme during development and build.

import { defineConfig } from 'vite';
import { cinqDrawerPlugin } from '@agencecinq/drawer/plugin';

export default defineConfig({
  plugins: [
    cinqDrawerPlugin()
  ]
});

2. Import the Component

In your main JavaScript entry point (e.g., theme.ts or main.js):

import '@agencecinq/drawer';

3. Implementation in Liquid

Once the plugin has copied the snippet, you can render it in your layout or sections:

{% render 'cinq-drawer.html', 
   id: 'cart-drawer', 
   title: 'Your Shopping Cart',
   content: '<p>Your cart is empty.</p>' 
%}

<cinq-drawer-button target="cart-drawer">
  <button aria-controls="cart-drawer" aria-expanded="false">
    View Cart
  </button>
</cinq-drawer-button>

API Reference

Attributes

| Attribute | Description | Required | | --------- | ----------------------------------------------------------- | -------- | | cid | Unique identifier for the drawer instance. | Yes | | opened | Reflects the current state. Can be used for styling in CSS. | No |

Methods

Interact with the element instance directly:

const $drawer = document.querySelector('cinq-drawer#cart-drawer');

$drawer.open();
$drawer.close();
$drawer.toggle();

Events

The drawer communicates via the @agencecinq/utils event bus to ensure synchronization across the entire theme.

| Event | Action. | Description | | ------------------- | ------------- | ------------------------------------ | | drawerOpen | Listen / Emit | Opens a specific drawer via its cID. | | drawerClose | Listen / Emit | Closes any currently opened drawer. |


Development (Monorepo)

If you are working inside the CINQ monorepo:

  1. Build the package:
pnpm build
  1. Add a version change:
pnpm change
  1. Publish to NPM:
pnpm release

License

Internal tool developed by CINQ. All rights reserved.