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

@sveltery/base

v0.4.0

Published

Experimental, unofficial Svelte 5 port of Base UI components.

Readme

Sveltery Base

Sveltery Base (@sveltery/base) is an unfaithful Svelte 5 port of Base UI: unstyled, accessible components for building your own design system. It tracks Base UI v1.9.0 (commit ad7ecda5).

"Unfaithful" means that Sveltery Base follows Base UI's component anatomy, behavior, accessibility and docs, but changes the API where Svelte does things differently from React:

  • A render prop is a snippet, not a function or element.
  • Controlled state uses bind:, such as bind:open or bind:value. You can still use onOpenChange and the other change callbacks.
  • The code does not emulate React. Hooks become runes, attachments and plain classes.

Each component page lists the differences that apply to that component. docs/porting.md shows how each React pattern maps to Svelte.

Sveltery Base is not affiliated with or endorsed by MUI or the Base UI team.

[!NOTE] Sveltery Base is experimental and pre-1.0. The API can change in a minor release.

Install

Sveltery Base requires Svelte 5.57.1 or newer.

npm install @sveltery/base

Use

Import a component from its own entry point, so that your bundle contains only the components you use:

<script lang="ts">
	import { Popover } from '@sveltery/base/popover';
</script>

<Popover.Root>
	<Popover.Trigger>Notifications</Popover.Trigger>
	<Popover.Portal>
		<Popover.Positioner sideOffset={8}>
			<Popover.Popup>
				<Popover.Title>Notifications</Popover.Title>
				<Popover.Description>You are all caught up.</Popover.Description>
			</Popover.Popup>
		</Popover.Positioner>
	</Popover.Portal>
</Popover.Root>

The components are unstyled. Style them with any CSS solution, through class and the data-* state attributes that each part sets. The quick start explains the portal setup and shows a styled example.

Documentation

For LLMs and agents

  • llms.txt: base.sveltery.dev/llms.txt indexes the docs as Markdown, and llms-full.txt contains all of it in one file. Add .md to a page URL to get that page as Markdown.
  • Agent skill: npx skills add sveltery/base installs the sveltery-base skill, which teaches a coding agent to use the components.

Develop

Requires Node 22 or newer and pnpm 12.6.0 (scripts/toolchain.sh selects it through Corepack).

source scripts/toolchain.sh
pnpm install
pnpm exec playwright install chromium
pnpm dev

pnpm dev serves the fixture routes under /fixtures. Add &reference to a fixture URL to render React Base UI for comparison. To work on the docs site, run pnpm --filter @sveltery/base-docs dev. Refer to apps/docs/README.md.

To check your work:

bash scripts/verify-component.sh toggle  # one component, every layer
bash scripts/verify.sh                   # everything, including the package build

.cursor/skills/verify-sveltery/SKILL.md explains what each layer covers and how to read failures. AGENTS.md and docs/porting.md contain the porting rules.

Credits

Sveltery Base would not exist without Base UI, made by the Base UI team at MUI and the Base UI contributors. The component behavior, the API design, the tests that the specs port and much of the documentation come from Base UI.

Thanks also to:

  • Floating UI, whose @floating-ui/dom positions every popup, and whose React hooks (by way of Base UI's fork) are the source of packages/floating-ui-svelte.
  • Svelte and SvelteKit.

License

Original code is under the MIT license, copyright Sveltery contributors.

Code, tests and docs derived from Base UI keep Base UI's MIT notice, "Copyright (c) 2019 Material-UI SAS". THIRD_PARTY_NOTICES.md lists every derived file, its upstream source and the full notice.