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

@consciousclouds/assistant-surface

v0.2.0

Published

Conscious Clouds Assistant Surface — a behavior-only assistant shell: open/close lifecycle, focus management, accessibility, overlay/inflow modes, scroll lock, slots, single-surface rule. Zero appearance, zero product, zero AI.

Downloads

78

Readme

@consciousclouds/assistant-surface

A behavior-only assistant shell. It owns the behavior of a surface that hosts an assistant or a conversation — and nothing about how it looks.

It standardizes:

  • open / close lifecycle
  • focus management (focus moves in on open; restores to the opener on close; trapped within the surface in overlay mode)
  • accessibility (dialog semantics in overlay, region in inflow, a labelling hook)
  • Escape to close and outside-click to close (overlay)
  • scroll lock (overlay)
  • overlay mode and inflow mode
  • the single-surface-per-application rule (warns if a second mounts)

It owns none of the appearance — branding, colors, typography, Tailwind, shadcn, headers, suggestions, content. Products supply those through slots.

Purity

This package imports no design system, no Canvas, no AI, and knows nothing about any product. It is so neutral that the same package serves a settings panel, a help drawer, a workflow assistant, or a future AI experience, and never knows those products exist. The test:

  • Could Omni use it tomorrow without knowing ENO exists? Yes.
  • Could CloudChief use it tomorrow without knowing Bacchus exists? Yes.
  • Could ENO use it tomorrow without knowing the Conductor exists? Yes.

Slots

The surface exposes five slots, filled by the product and treated as opaque: trigger, header, content, input, canvas. The canvas slot is a behavior-managed mounting point — pass a rendered Canvas (or anything) into it; this package never imports the Canvas Runtime.

Usage

import { AssistantSurface } from "@consciousclouds/assistant-surface";

function MySurface() {
  const [open, setOpen] = React.useState(false);
  return (
    <AssistantSurface
      mode="overlay"
      open={open}
      onOpenChange={setOpen}
      aria-label="Assistant"
      // your own components — the surface never styles them:
      trigger={<MyTriggerButton />}
      header={<MyHeader />}
      content={<MyConversation />}
      input={<MyComposer />}
      // structural hooks for YOUR styling (no defaults):
      className="my-panel"
      scrimClassName="my-scrim"
    />
  );
}

The package applies only functional layout (fixed positioning for the overlay, scroll lock); colors, size, placement, and z-index are yours via className / style / scrimClassName.