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

@hyperplexed/bubbles-svelte

v0.1.0

Published

Svelte 5 wrapper for @hyperplexed/bubbles — declarative floating, draggable, expandable overlay bubbles

Readme

@hyperplexed/bubbles-svelte

Svelte 5 wrapper for @hyperplexed/bubbles — Android-style floating, draggable, expandable overlay bubbles, expressed as declarative components.

npm install @hyperplexed/bubbles-svelte

Usage

<script lang="ts">
	import { Bubble, Bubbles } from "@hyperplexed/bubbles-svelte";
	import Avatar from "./avatar.svelte";
	import ChatPanel from "./chat-panel.svelte";

	let showChat = $state(true);
</script>

<Bubbles theme="dark" side="left">
	{#if showChat}
		<Bubble id="chat" label="Chat" onDismiss={() => (showChat = false)}>
			{#snippet icon()}<Avatar />{/snippet}
			<ChatPanel />
		</Bubble>
	{/if}
</Bubbles>
  • <Bubbles> owns a manager: props are the whole configuration (same options as createBubbles, applied live on change; omitted props mean the defaults), and unmounting destroys the overlay. onStateChange / onActiveChange mirror the manager's events.
  • <Bubble> declares presence: entering the markup adds the bubble, leaving removes it (animated), and prop changes apply in place. The icon snippet fills the collapsed circle; the children become the expanded panel. Whether a bubble has an icon/panel is decided when it mounts — but what the snippets render stays fully reactive, and your app's context (theme, i18n, stores) flows into them.
  • onDismiss fires when the user dismisses the bubble (drag to the target, Delete key). The manager has already removed it; update your state so the <Bubble> leaves the markup too, as in the example above.
  • onRejected fires when the add was refused because the manager is at maxBubbles.

Reading state, and the escape hatch

Anywhere under <Bubbles>:

<script lang="ts">
	import { getBubbles } from "@hyperplexed/bubbles-svelte";

	const bubbles = getBubbles();
</script>

{#if bubbles.state === "open"}<div class="backdrop"></div>{/if}
<button onclick={() => bubbles.manager.toggle()}>Toggle bubbles</button>

state and active are reactive mirrors of the manager's statechange/activechange events; manager is the full imperative API from the core — activate(), toggle(), registerTrigger(), on(), everything documented in the core README.

SSR

Safe by construction: creating a manager touches no DOM, and bubbles mount from effects, which never run on the server. <Bubbles> renders nothing itself (SvelteKit needs no browser guards).

License

MIT