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

@go-go-golems/os-shell

v0.1.1

Published

Public desktop shell, launcher, app-registry, and window-manager APIs for go-go-os React apps.

Downloads

234

Readme

@go-go-golems/os-shell

Public desktop shell, launcher, app-registry, and window-manager APIs for go-go-os React applications.

Use this package when your consumer app is no longer only rendering individual primitives or widgets. os-shell is the package boundary for composing an OS-like desktop: apps, desktop icons, menus, windows, launcher contributions, and shell-owned Redux state.

Installation

npm install @go-go-golems/os-shell @go-go-golems/os-core react react-dom @reduxjs/toolkit react-redux

If your shell windows render rich widgets, also install:

npm install @go-go-golems/os-widgets

Layering

@go-go-golems/os-core
  theme, primitives, low-level desktop state and visual pieces

@go-go-golems/os-widgets
  rich widgets such as LogViewer, ChartView, MacWrite, MacCalc

@go-go-golems/os-shell
  public shell/window-manager boundary: DesktopShell, launcher registry, app manifests, store composition

os-shell depends on os-core. It does not depend on os-widgets; the host app decides which widgets to place inside shell windows.

Theme usage

Most shell apps should import the theme entrypoints once at the app root:

import '@go-go-golems/os-core/theme';
import '@go-go-golems/os-core/desktop-theme-macos1';

Then render under the OS1 root wrapper:

<div data-widget="hypercard" className="theme-macos1">
  <App />
</div>

DesktopShell also renders its own HyperCard theme boundary, but the root wrapper keeps surrounding app chrome and Storybook examples consistent.

Minimal DesktopShell example

import { Provider } from 'react-redux';
import {
  DesktopShell,
  createLauncherStore,
  type RuntimeBundleDefinition,
} from '@go-go-golems/os-shell';

const bundle: RuntimeBundleDefinition = {
  id: 'demo-shell',
  name: 'Demo Shell',
  icon: '🖥️',
  homeSurface: 'home',
  surfaces: {
    home: {
      id: 'home',
      title: 'Home',
      icon: '🏠',
      type: 'report',
      ui: { t: 'text', value: 'Welcome to the shell.' },
    },
  },
};

const launcher = createLauncherStore([]);

export function App() {
  return (
    <Provider store={launcher.store}>
      <div style={{ width: 980, height: 620 }}>
        <DesktopShell bundle={bundle} />
      </div>
    </Provider>
  );
}

Common exports

Desktop/window-manager exports:

  • DesktopShell
  • DesktopShellView
  • DesktopIconLayer
  • DesktopMenuBar
  • WindowLayer
  • WindowSurface
  • WindowTitleBar
  • WindowResizeHandle
  • useDesktopShellController
  • useWindowInteractionController
  • windowingReducer
  • windowingActions

Launcher/app exports:

  • AppManifest
  • LaunchableAppModule
  • createAppRegistry
  • buildLauncherContributions
  • buildLauncherIcons
  • renderAppWindow
  • createRenderAppWindow

Store exports:

  • createLauncherStore
  • collectModuleReducers
  • selectModuleState
  • createModuleSelector
  • SHELL_CORE_REDUCER_KEYS

Store contract

createLauncherStore() creates a standalone Redux store with public shell reducers:

windowing
notifications
debug

plus any shared reducers and app-module reducers you provide. It intentionally does not depend on private scripting/runtime packages.

Reserved reducer keys include:

pluginCardRuntime
runtimeSessions
windowing
notifications
debug
hypercardArtifacts

This prevents app modules from colliding with historical or shell-owned runtime keys.

Notes

  • This package is ESM.
  • The first public release keeps implementation delegation to os-core for compatibility, while making os-shell the preferred import boundary for shell consumers.
  • Prefer @go-go-golems/os-shell imports in new shell/window-manager examples.

License

MIT