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

@amulet-laboratories/rig

v0.4.0

Published

Headless, accessible Vue 3 component library — VSCode-style, slot-driven, unstyled

Downloads

369

Readme

@amulet-laboratories/rig

Headless, accessible Vue 3 component library. VSCode-style layout primitives, completely unstyled. Consumers supply all styling via CSS custom properties, Tailwind, or slot content.

Features

  • 92 components across 11 packages — core primitives, layout, navigation, editor, lists, menus, extras, shell, data visualization, spatial, temporal
  • Completely unstyled — semantic HTML with data-rig-* attributes for styling hooks
  • Accessible by default — ARIA roles, keyboard navigation, focus management
  • Slot-driven — every visual element is customizable through typed named slots (defineSlots)
  • TypeScript strict — full type safety with exported interfaces
  • Tree-shakeablesideEffects: false, ESM + CJS outputs

Install

pnpm add @amulet-laboratories/rig

Peer Dependencies

pnpm add vue@^3.5.0
# Required (breaking change in 0.2.0 — was optional in 0.1.0)
pnpm add @floating-ui/vue@^1.0.0
# Optional — required only if using the Icon component
pnpm add @iconify/vue@^4.0.0

Upgrading from 0.1.0? @floating-ui/vue is now a required peer dependency. See MIGRATION.md for details.

Usage

<script setup lang="ts">
import { Button, Modal, TreeView } from '@amulet-laboratories/rig'
</script>

<template>
  <Button variant="primary" @click="open = true">Open</Button>

  <Modal v-model:open="open" aria-label="Example">
    <template #header>Title</template>
    <p>Modal content</p>
  </Modal>
</template>

Packages

| Package | Components | Description | | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- | | core | Avatar, AvatarGroup, Badge, Button, Card, Checkbox, Combobox, Divider, Dot, Icon, InlineEditor, Input, Kbd, Label, Progress, ProgressRing, PulseIndicator, RadioGroup, RangeSlider, Resizer, Select, Slider, Switch, TagInput, Textarea, ToggleGroup | 26 primitive form controls and building blocks | | layout | Accordion, Collapsible, Modal, Panel, PeekView, Popover, ResizablePanel, ScrollArea, ShellGrid, SplitView | 10 structural containers and overlays | | nav | ActivityBar, Breadcrumbs, DatePicker, DateRangePicker, PanelBar, SideBar, StatusBar, Stepper, Tabs, Timeline, View | 11 navigation chrome components | | editor | CodeBlock, ColorPicker, DiffViewer, EditorTab, EditorWorkbench | 5 editor workspace components | | lists | DataGrid, List, Table, TreeView | 4 data display components | | menus | ActionBar, CommandPalette, ContextMenu, DropdownMenu, KeyboardHint, Menubar | 6 command and menu components | | extras | CalendarGrid, EmptyState, KanbanBoard, NotificationCenter, PropertyGrid, Skeleton, Toast, Tooltip | 8 utility and feedback components | | shell | IdeShell | 1 pre-composed VSCode-style IDE layout | | data | AreaChart, BarChart, Heatmap, LineChart, MiniBar, RadarChart, SankeyDiagram, ScatterPlot, Sparkline, StatCard, Treemap | 11 data visualization components | | spatial | GlobeView, GraphNetwork, MapCanvas, PointCloud, ScatterPlot3D | 5 spatial visualization components | | temporal | AnimatedChart, ParticleField, PlaybackControls, TemporalHeatmap, TimelineScrubber | 5 temporal and animation components |

Composables

| Composable | Description | | --------------------- | -------------------------------------------- | | useKeyboard | Declarative keyboard shortcut bindings | | usePersistedState | Reactive state with localStorage persistence | | useGlobalState | Provided/injected global application state | | useCommandRegistry | Command palette registry and execution | | useTooltip | Tooltip state management | | useVirtualList | Windowed/virtualized list rendering | | useFocusTrap | Focus trap for modals and overlays | | useDragDrop | Drag-and-drop reordering | | useScrollVisibility | Scroll-based element visibility detection | | useParallax | Pointer/scroll-driven parallax transforms | | useMediaPlayback | Reactive media playback state and controls | | useReducedMotion | Detects prefers-reduced-motion media query | | usePlatform | Platform detection — returns { isMac } |

Theming

Rig is unstyled by default. For a ready-made theme, install the companion CSS package:

pnpm add @amulet-laboratories/hex
// Pick a theme — each is a single minified CSS bundle
import '@amulet-laboratories/hex' // Hexrig dark (default)
import '@amulet-laboratories/hex/vscode' // VSCode dark
import '@amulet-laboratories/hex/spotify' // Spotify dark
import '@amulet-laboratories/hex/gmail' // Gmail light

Hex targets Rig's data-rig-* attributes using CSS custom properties. All tokens are overridable per-element or globally.

Styling

Components render semantic HTML with data attributes. Style them with CSS targeting those attributes:

[data-rig-button] {
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

[data-rig-button][data-variant='primary'] {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

[data-rig-button][data-disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

Data Attribute Conventions

  • Root element: data-rig-{component-name} (e.g., data-rig-button, data-rig-tree)
  • State: data-state, data-variant, data-disabled, data-loading, data-selected, data-highlighted
  • Structural: data-depth, data-leaf, data-align, data-sort-direction

Development

pnpm install          # Install all workspace dependencies
pnpm build            # Vite library build (ESM + CJS + .d.ts)
pnpm test             # Run all tests
pnpm test:watch       # Watch mode
pnpm check            # Lint + format + type-check
pnpm story:dev        # Histoire component stories dev server
cd hex && pnpm build  # Build all Hex CSS themes

License

MIT