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

@xemahq/ui-kernel

v0.6.1

Published

Host-framework-agnostic UI kernel for the Xema OS. Defines the SystemBus orchestration contract (capability.invoke, cross-biome intents, command palette, xema:// deeplinks, window manager) AND the biome-host contract surface (FrontendBiome/FrontendBiomeFa

Readme

@xemahq/ui-kernel

Host-agnostic UI kernel for the Xema frontend.

Overview

The host-framework-agnostic UI kernel every frontend biome composes against. It defines the system bus — the orchestration contract for capability invocation, cross-biome intents, the command palette, deeplinks, and window management — and the biome-host contract surface, including the frontend-biome and host-bridge shapes, the singleton biome registry, and session contributions. React is the shared component model, but the kernel carries no router, bundler, or host-specific wiring; concrete host adapters live in separate packages. The system bus is pure orchestration — it never authorizes; policy is enforced by the backend.

When to use it

  • Use it to author a frontend biome against the shared host contracts and register it with the biome registry.
  • Reach for the system bus to dispatch capability invocations, intents, or deeplinks across biomes.

Installation

pnpm add @xemahq/ui-kernel

Usage

Author a web biome with defineWebBiome — a declarative page list where each slug single-sources both the nav route and the route path, and each page declares its menu category (the host owns where that category renders):

import { defineWebBiome } from '@xemahq/ui-kernel';
import { Layers } from 'lucide-react';

export default defineWebBiome({
  id: 'spaces-web',
  displayName: 'Spaces',
  pages: [
    {
      slug: 'system/spaces',
      label: 'Spaces',
      icon: Layers,
      category: 'knowledge', // primary | build | operate | knowledge | admin | account
      load: () => import('./pages/SpacesPage'),
    },
  ],
});

The helper emits the nav item + route (wrapping the lazily-loaded page in a <Suspense> boundary) and passes through init/panels/session for bespoke biomes. Pass a per-page id to keep a short nav id distinct from the route slug, or navHidden: true to register a route with no nav item.

Lower-level building blocks are also exported:

import { buildSystemBus, biomeRegistry } from '@xemahq/ui-kernel';

const bus = buildSystemBus(hostPorts);

// Register a frontend biome so the host can render its contributions:
biomeRegistry.registerBiome(myBiome);

UI components

Build your pages with the shared design system from @xemahq/ui-kernel/ui so a third-party biome renders pixel-identical to a built-in one (they resolve against the host theme at render):

import {
  Button, Badge, Input, Select, Dialog, Card, Tabs, Table, // primitives
  PageShell, PageHeader, EmptyState, ErrorCard, StateCard, LoadingState, AsyncBoundary,
  StatusBadge, ScopeBadge, ConfirmDeleteDialog, FormStepper, AsyncCombobox,
  getStatusStyle, cn,
} from '@xemahq/ui-kernel/ui';

Host-service hooks (toast, error copy, URL-backed page state) come from the HostBridge — e.g. useMutationWithErrorToast, usePageState from @xemahq/ui-kernel — so biomes never import host internals directly.

Peer requirements

  • react — the shared component model.
  • @tanstack/react-query — async state for host data hooks.

License

Apache-2.0 © Xema — xema.dev