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

@acryldev/app-shell

v0.2.2

Published

The generic three-column desktop/web app frame (brand sidebar, main surface, resizable details column, theme, platform title-bar spacing) any ACRYL Blend's domain plugin claims as its own main UI, the same way plugins/workspace claims it for the IDE. Extr

Readme

@acryldev/app-shell

The generic three-column desktop/web app frame — sidebar column, main surface, resizable details column, platform title-bar spacing, theme presentation — extracted from plugins/workspace's own shell/ so it can be shared: any Blend's domain plugin claims it for its own main UI, through the same desktop.main / desktop.sidebar slot contract @acryldev/workspace already uses for the IDE.

Why this package exists

A Project Blend grown from a Blueprint is meant to become one cohesive, standalone product — not a chat with a side feature reached by a link to a server-routed page. plugins/workspace already proves the right shape: it's a plugin that claims the main UI surface (desktop.main, the tree in desktop.sidebar) and replaces Blank's plain chat with the whole IDE — tree, tabs, terminals, canvases. That's one differentiated product grown from the same stem cell. A different domain (GTD, accounting, whatever a team needs) wants the exact same mechanism with completely different content in the main slot — not PTYs and a file tree, but its own board, its own forms, its own views.

Before this package existed, that wiring (claiming root, desktop.main, desktop.sidebar, the layout service, the theme presenter, the resizable three-column chrome) lived only inside @acryldev/workspace, coupled to nothing IDE-specific in its own code but physically impossible to reuse without copying it. This package is exactly that code, moved out, with its one IDE-specific dependency (the terminal dock) replaced by two generic optional wrapper hooks (wrapMain, wrapRightbar) a caller supplies if it wants extra chrome around a column — this package has no idea what a terminal dock is, only that a caller may want to wrap a column.

See specs/036-cordis-ecosystem-and-acryl-blends/blend-instance-design.md section 0 for the full design reasoning, including the mistake this exists to stop repeating: a domain plugin's own UI as a Host-served page reached by a chat-card link, instead of a real main-surface plugin.

Using it

import { applyAdvancedShell, resolveShellEnvironment } from '@acryldev/app-shell/client'

export function apply(ctx: ClientContext): void {
  const environment = resolveShellEnvironment(window.location.hash)
  if (environment.mode !== 'advanced') return // compatibility mode keeps the stock upstream frame
  applyAdvancedShell(ctx, environment)

  // Claim the main surface with your own UI - the same pattern @acryldev/workspace uses for the IDE.
  ctx.slots.inject('desktop.main', () => ctx.slots.register({
    name: 'desktop.main',
    priority: 0, // lower renders: below the shell's own fallback (100)
  }, MyDomainMainSurface))
}

No Host-side module does anything (src/index.ts exists only so the Loader row has a real module to activate/dispose) — this is pure client-side layout.

Page health record

Loading the frame's client bundle starts src/client/ui-health.ts on every surface: it records main-thread stalls (a late heartbeat while the page is visible), long tasks over 250 ms, and runaway error loops (the same console error more than 20 times in ten seconds, with its first stack and the slot a crash named). Each incident is written once to the console as [acryl-health] {...}, which Desktop mirrors into its log, and kept in window.__acrylHealth.incidents (the last 50). Desktop also folds identical renderer console lines within five seconds into one "repeated N times" line (apps/acryl-desktop/src/shell/repeat-suppressor.ts), so a loop cannot flood its log.