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

@baguette-studios/kernl-ui

v0.2.0

Published

React assistant UI kit and devtools for kernl.

Readme

@baguette-studios/kernl-ui

React assistant UI components for Kernl, including the bubble launcher, dock, command bar, approvals, activity timeline, and devtools.

npm install @baguette-studios/kernl-react @baguette-studios/kernl-ui

Import the component styles once in the application entry point:

import { AgentBubbleLauncher } from "@baguette-studios/kernl-ui";
import "@baguette-studios/kernl-ui/styles.css";

<AgentBubbleLauncher title="Assistant" />;

Vite and other browser-aware bundlers retain the package's automatic style loading, while Node ESM and SSR tooling receive a CSS-free JavaScript entry point. Keep the explicit styles.css import shown above as the stable styling contract; bundlers deduplicate the repeated CSS module.

Components read runtime state from the nearest AgentProvider supplied by @baguette-studios/kernl-react. React 18 and 19 are supported.

To make the collapsed launcher movable, configure the provider with ui={{ launcherDraggable: true }}. A drag stays within the viewport and snaps to its nearest edge; regular clicks continue to open the agent.

Optional shared preferences

AgentBubbleLauncher, AgentDock, and useAgentPanelPreferences accept an optional AgentUiPreferencesStore. With no store, behavior remains synchronous and origin-local. An asynchronous store initially renders the local/default value and updates when the store connects.

The Chromium extension integration is an explicit, browser-only import:

import { AgentBubbleLauncher } from "@baguette-studios/kernl-ui";
import { createExtensionAgentUiPreferencesStore } from "@baguette-studios/kernl-ui/preferences-extension";

const preferencesStore = createExtensionAgentUiPreferencesStore();
<AgentBubbleLauncher preferencesStore={preferencesStore} />;

Calling the factory is the host application's opt-in. The extension separately requires the user to approve that exact origin. A missing, denied, outdated, or timed-out extension transparently uses origin-local storage.

Precedence is: application-enforced component/provider props, extension-managed user preferences, origin-local user preferences, then Kernl defaults. Host placement and other product decisions remain component props and are never written to the shared preference document. To lock one of the three user-owned fields, wrap the store with createEnforcedAgentUiPreferencesStore from @baguette-studios/kernl-ui-core/preferences and omit or disable the corresponding host settings control. The wrapper does not write host policy into the extension profile.

Opt-in universal renderer

Applications standardizing on the Web Component renderer can import KernlAgentWebComponent from @baguette-studios/kernl-ui/web-component. The host must separately import @kernl/web/kernl-agent once; this wrapper has no runtime dependency on @kernl/web. It assigns the shared AgentUiController as an element property and bridges ready, open, screen, and error events.

Provider-owned presentation is an explicit render-port boundary: pass renderers callbacks that close over the provider context and return cleanup functions for any React roots they mount. Provider children are not implicitly teleported into the Web Component shadow root.