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

@dufeut/waria

v0.1.5

Published

Accessible Web Components Library - Framework-agnostic, performant, WCAG 2.1 AA compliant UI primitives

Downloads

469

Readme

Waria

Framework-agnostic UI primitives via native Web Components (ESM).

TypeScript ESM License npm

Documentation | GitHub

Features

  • 30+ Accessible Components - WCAG 2.1 Level AA compliant UI primitives
  • Zero Dependencies - Pure vanilla JavaScript
  • Unstyled & Composable - Bring your own styles, complete design freedom
  • Framework Agnostic - Works with Vue, Svelte, React, Preact, Alpine.js, or vanilla JS
  • Native ESM - Modern JavaScript modules, no build tools required
  • Accessibility First - Full ARIA support, keyboard navigation, focus management
  • Performance Optimized - Lightweight, efficient, and fast
  • TypeScript - Full type safety and excellent DX
  • Web Standards - Built on Web Components and modern web APIs

Installation

npm install @dufeut/waria

Usage

ES Modules

import { App } from "@dufeut/waria";

App.start({
  hash: true, // Use hash-based routing
});

IIFE (Script Tag)

<script src="https://unpkg.com/@dufeut/waria/dist/waria.iife.js"></script>
<script>
  waria.App.start({ hash: true });
</script>

Example: Tabs Component

<w-tabs value="tab1">
  <w-slot list>
    <div>
      <w-slot tab name="tab1"><button>Tab 1</button></w-slot>
      <w-slot tab name="tab2"><button>Tab 2</button></w-slot>
    </div>
  </w-slot>
  <w-slot panels>
    <div>
      <w-slot panel name="tab1"><div>Content 1</div></w-slot>
      <w-slot panel name="tab2"><div>Content 2</div></w-slot>
    </div>
  </w-slot>
</w-tabs>

Example: Dialog Component

slots:

  • trigger
  • body
  • close
<w-dialog id="dialog_one">
  <w-slot trigger><button>Open Dialog</button></w-slot>
  <w-slot body>
    <div>
      <h3>Dialog Title</h3>
      <p>
        This is a modal dialog. Press Escape or click the close button to close
        it.
      </p>
      <w-slot close><button>Close</button></w-slot>
    </div>
  </w-slot>
</w-dialog>
<script>
  const dialog = document.getElementById("dialog_one");
  dialog.addEventListener("open", () => console.log("opened"));
  dialog.addEventListener("close", () => console.log("closed"));
</script>

Event Handlers

Use w-* attributes for inline event handling:

<w-dialog w-open="console.log('opened')" w-close="console.log('closed')">
  ...
</w-dialog>

<w-menu w-select="handleSelect(event.detail)"> ... </w-menu>

Or use addEventListener:

dialog.addEventListener("open", (e) => console.log("opened"));

Components

| Category | Components | | -------- | -------------------------------------------------------------------------- | | Core | Accordion, Collapsible, Tabs, Tree | | Form | Choice (Radio/Checkbox), Label, Range, Select, Spinbutton, Switch, Toggles | | Overlay | Context Menu, Dialog, Hover Card, Menu, Popover, Toast, Tooltip | | Layout | Aspect Ratio, Avatar, Carousel, Link, Scrollbar, Separator | | Data | Feed, Grid, Treegrid | | Feedback | Progressbar | | Utility | Breadcrumb, Navigation, Toolbar, View |

License

BSD-3-Clause

References