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

@ixirjs/ui

v1.0.0-alpha.47

Published

A modular, accessible, and extensible Svelte UI component library.

Readme

@ixirjs/ui

A modern, headless, and accessible Svelte 5 UI component library built for composability and extensibility.

npm version Ask DeepWiki license

Why @ixirjs/ui?

  • 🎯 Headless First - Complete styling control with sensible defaults
  • 🔗 Bond Architecture - Self-contained state management with context-based communication
  • ♿ Accessible - ARIA attributes, keyboard navigation, and focus management included
  • 🎨 Composable - Build complex UIs by combining simple, reusable components
  • 📘 Type Safe - Full TypeScript support with extensible type definitions
  • ⚡ Svelte 5 Native - Built for Svelte 5 runes, snippets, and modern reactivity

Quick Start

npm install @ixirjs/ui
<script lang="ts">
	import { Button, Dialog } from '@ixirjs/ui';

	let open = $state(false);
</script>

<Button onclick={() => (open = true)}>Open Dialog</Button>

<Dialog.Root bind:open>
	<Dialog.Content>
		<Dialog.Header>
			<Dialog.Title>Welcome</Dialog.Title>
		</Dialog.Header>
		<Dialog.Body>
			<p>This is a headless, accessible dialog component.</p>
		</Dialog.Body>
		<Dialog.Footer>
			<Button onclick={() => (open = false)}>Close</Button>
		</Dialog.Footer>
	</Dialog.Content>
</Dialog.Root>

Core Concepts

Composability with base and as

Transform any component into another element or wrap it with custom logic:

<script lang="ts">
	import { Button, Popover, Input } from '@ixirjs/ui';
</script>

<!-- Button as Popover trigger -->
<Popover.Root>
	<Popover.Trigger base={Button} variant="outline">
		Open Popover
	</Popover.Trigger>
	<Popover.Content>
		<p>Configure your preferences here.</p>
	</Popover.Content>
</Popover.Root>

<!-- Input as Dropdown trigger -->
<Dropdown.Root>
	<Dropdown.Trigger base={Input.Root}>
		<Input.Control placeholder="Search..." />
	</Dropdown.Trigger>
	<Dropdown.Content>
		<!-- items -->
	</Dropdown.Content>
</Dropdown.Root>

Typed Snippets for Extensibility

All components expose typed snippet props for maximum flexibility:

<Dialog.Root>
	{#snippet children({ dialog })}
		<Dialog.Content>
			<Dialog.Body>
				<p>Access the dialog bond directly</p>
				<button onclick={() => dialog.close()}>Close via bond</button>
			</Dialog.Body>
		</Dialog.Content>
	{/snippet}
</Dialog.Root>

Styling with Variants

Create reusable variants locally or globally:

import { defineVariants } from '@ixirjs/ui/utils';

const buttonVariants = defineVariants({
	class: 'inline-flex items-center justify-center rounded-md',
	variants: {
		variant: {
			primary: 'bg-blue-500 text-white hover:bg-blue-600',
			secondary: 'bg-gray-200 text-gray-900 hover:bg-gray-300'
		},
		size: {
			sm: 'h-8 px-3 text-sm',
			md: 'h-10 px-4',
			lg: 'h-12 px-6 text-lg'
		}
	},
	defaults: {
		variant: 'primary',
		size: 'md'
	}
});

Components

Layout: Container, Stack, Layer, Portal
Forms: Input, Textarea, Checkbox, Radio, Select, Combobox, Form
Overlays: Dialog, Drawer, Popover, Tooltip, Toast
Navigation: Tabs, Sidebar, Menu, Dropdown
Display: Card, Alert, Badge, Chip, List, Datagrid, Calendar
Utilities: Root, Lazy, Link, Button

View all components in Storybook →

Documentation

Development

# Clone and install
git clone https://github.com/ixirjs/ui.git
cd ui
bun install

# Start dev server
bun dev

# Build library
bun run build

License

MIT © ixirjs