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

@hollis-labs/app-shell

v0.11.0

Published

Manifest-driven app shell: consumes the Substrate generated frontend manifest and places its contributions in the host's regions.

Readme

@hollis-labs/app-shell

The manifest-driven app shell. It consumes the Substrate generated frontend.manifest.json (manifest_version 0, v0.3 vocabulary) and places each contribution in the host's regions. The manifest is a build-time artifact: the app build imports it as static JSON and passes the loaded value in. The shell fetches nothing.

import manifest from './frontend.manifest.json'
<ManifestShell manifest={manifest} admin={adminManifest} apiBase="/api" path={path} onNavigate={navigate}
  views={{ activity: ActivityPanel }} pages={{ items: ItemsPage }} bindings={bindingTable} />

What it does

  • Refuses an unknown manifest_version with a visible error; there is no fallback shape.
  • Narrow widths (max-width 1023px or isNarrow): the nav rail gives way to a bottom tab bar (first three nav.primary items, then More with the rest in a sheet).
  • Places nav.item, nav.group, settings.region, surface, panel, dock.tab, widget and slot by region. Docked regions and their anchors come from the manifest's regions catalog.
  • Applies the SF-2 dock attributes to docked regions (read from the region catalog, snake_case: open_state, exclusive, sizes, dismiss_key, mobile, edge, height_px; the shell works in the camelCase DockAttributes form): openState, exclusive (opening a tab closes the region's others), sizes (token options and default; the user's pick is remembered through dockStorage), dismissKey (Esc) and mobile (bottom-sheet: at narrow widths, max-width 1023px or isNarrow, docked tabs open as bottom sheets). A region with nothing supplied gets the vocabulary defaults; an invalid set is refused with a diagnostic. Docked regions are not in the overlay stack.
  • Registers every placed contribution into a plugin-host-ui PluginHostRuntime by kind (registry v2 entries, a slot catalog built from the shell model) and renders panel, dock.tab and widget through the host's own components. What the host refuses is listed in Diagnostics; onHostDiagnostic receives everything the host reports. plugin-host-ui reserves the owner core, so a contribution whose module is core is refused.
  • Derives page routes from surface items. A route that is a backend path (/api/, /admin/) or is claimed twice is skipped.
  • Renders settings.region from the runtime admin manifest (groups by reference, scope kind app only). Until the admin manifest is passed, sections show as loading.
  • Selects renderers through @hollis-labs/design-bindings (kind@version, origin, isolation-only trust); the host owns the table.
  • Owns overlay state (modal, drawer, popover, toast; depth 2). Esc (or a region's dismissKey) closes the most recently opened overlay or docked region and focus returns to its trigger.
  • Skips anything it cannot place and lists it in the Diagnostics drawer; the shell still starts.
  • Hosts supply page bodies (pages, by surface key) and views (views, by view name). A failing view is contained by plugin-host-ui's render boundary.

Action gateway

Pass actions to ManifestShell and call useActionGateway().handleCall({ surfaceId, functionCallId, callFunction: { '@call': 'items.save', hollis_action: { id, subject, risk, basis }, input } }, { trigger }). The result is { functionCallId, value: <outcome> }. actions supplies the backend, the agent function names it routes, the audit sink, the step-up grant issuer (issueGrant; auth is the host's) and optionally risk, currentBasis, describe, undo, catalog (overrides and openOverlay / setData) and onReview. Semantics and statuses: see CHANGELOG 0.3.0. The core (createActionGateway) has no React dependency.

Page parts (SF-6)

Controlled components for the six Substrate page types, matching the committed goldens in goldens/: SplitPane, ListRow with useSelection and SelectModeToggle, BulkActionBar, ReviewBar / ReviewChanges, OutlineNav, SettingsFieldRow / SettingsGroupCard, SecretRevealDialog and MobileTabBar. They own no data and no action policy: a page holds the state and submits through useActionGateway() (see test/fixtures.tsx for list and detail pages built this way). Narrow layout is the host's choice (narrow, orientation="strip", MobileTabBar).

Menus and commands (SF-3d)

menu.item and command contributions render in four places, all running through the action gateway (the shell never decides risk or confirmation; a high entry or a backend needs_confirmation opens the gateway's confirmation overlay):

  • command.palette: the kit's SearchPalette, opened with Ctrl/Cmd+K or the header "Commands" button. Filters on label, group and keywords.
  • row.actions and menu:<subject-kind>: the kit's OverflowMenu. <RowActions subject={{kind, id}} /> (row actions + that kind's menu) and <ContextActions subject /> (the kind's menu only) are for pages; the subject rides along as hollis_action.subject.
  • toolbar.primary: a toolbar in the shell header.

Action: navigate takes a surface route path (a path no surface owns is skipped with a diagnostic; URLs are never followed), openRegion (+ tab) opens a dock tab, call names an agent function. Order is order (default 100), then module, then key; high-risk entries come last, behind a divider. An item that cannot work is skipped and listed in Diagnostics; menus need actions on ManifestShell and say so in Diagnostics when it is missing. Goldens: a-menu (row overflow, danger last behind a divider).

Panel preferences (SF-3)

createPanelPrefs({ storage, panels }) keeps panel order, enabled flags, the default panel and the agent/user dismiss state in an observable store (getSnapshot / subscribe, works with useSyncExternalStore), persisted through the host's LayoutStorage. open(id, 'agent' | 'user') follows the rule: an agent open is ignored once the user dismissed the panel; a user open always wins. Plugin panels cannot reuse a built-in's or another plugin's id.

Not here

Backend action endpoints, auth and key handling, page content, and any app change. Dock-level behaviour beyond the manifest's attributes.