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

@doitrix/headless

v1.2.0

Published

Unstyled, accessible Vue 3 behaviour for the Doitrix design system — dialog, popover, tooltip, menu, select, tabs, form controls and data-table state. Zero dependencies, tree-shakable.

Readme

@doitrix/headless

Unstyled, accessible behaviour for Vue 3 — the part of a component that is hard to get right and should never be written twice. No styles, no dependencies, one module per file so an app ships only what it imports.

bun add @doitrix/headless

What is in it

| Area | Exports | |---|---| | Overlays | Dialog* (dialog and alertdialog), Popover*, Tooltip*, DropdownMenu* | | Form controls | Select*, Checkbox*, Switch*, RadioGroup* | | Navigation | Tabs* | | Display | Avatar* | | Composition | Primitive (as, asChild), Slot, Portal | | Composables | useFocusTrap, useDismissable, useScrollLock, useFloating, usePresence, useCollection, useControllable, useDataTable | | Pure core | computeFloating, createTypeahead, moveFromKey, paginate, sortRows, selectionState, cardLayout, … |

Behaviour it guarantees

  • Keyboard: WAI-ARIA patterns throughout — roving tab stops, arrow keys by orientation (swapped in RTL), Home/End, typeahead in menus and selects.
  • Focus: moved in on open, trapped in modals, returned to the trigger on close — but never stolen back if the user has already moved on.
  • Dismissal: Escape and outside presses go to the topmost layer only, so a select inside a dialog closes the select alone. Both are cancelable.
  • ARIA wiring: ids are generated, and follow your own id if you pass one.
  • Motion: content stays mounted through its exit animation, then unmounts; with no animation it unmounts at once.
  • State: every stateful part works with v-model or uncontrolled with a default* prop. Everything exposes data-state, data-disabled, data-highlighted, data-side for styling.

Styling

Target the data attributes:

<DialogContent class="data-[state=open]:animate-pop-in data-[state=closed]:animate-pop-out">

For styled, ready-made components built on this package, see @doitrix/ui.