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-core

v0.2.0

Published

Reusable React desktop primitives, shell components, Redux helpers, and HyperCard-inspired theme CSS.

Readme

@go-go-golems/os-core

Low-level React primitives, desktop-style UI building blocks, Redux-friendly helpers, and HyperCard/OS1-inspired theme entrypoints from go-go-os.

This is the foundation package for standalone consumers. If you are starting from scratch, begin with @go-go-golems/os-core and only add higher-level packages such as @go-go-golems/os-widgets when you need richer widgets or widget-specific primitives.

Installation

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

What this package provides

@go-go-golems/os-core is the primary low-level package. It includes:

  • theme entrypoints
  • form and list primitives
  • buttons, chips, alerts, toasts, tabs
  • data display components such as tables and detail views
  • shell/windowing-related exports used by the wider go-go-os system

Commonly used exports include:

  • Btn
  • Checkbox
  • RadioButton
  • Chip
  • DropdownMenu
  • ListBox
  • SelectableList
  • DataTable
  • SelectableDataTable
  • FormView
  • FieldRow
  • TabControl
  • ProgressBar
  • AlertDialog
  • Toast

Theme usage

Import the base theme and the OS1/macOS-1 layer:

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

Then wrap your app root like this:

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

The root wrapper matters. The OS1/macOS-1 theme is scoped through data-widget="hypercard" and theme-macos1.

Minimal example

import { useState } from 'react';
import {
  Btn,
  Checkbox,
  RadioButton,
  TabControl,
} from '@go-go-golems/os-core';
import '@go-go-golems/os-core/theme';
import '@go-go-golems/os-core/desktop-theme-macos1';

export function App() {
  const [soundEnabled, setSoundEnabled] = useState(true);
  const [density, setDensity] = useState<'Compact' | 'Comfortable'>('Comfortable');
  const [activeTab, setActiveTab] = useState(0);

  return (
    <div data-widget="hypercard" className="theme-macos1">
      <Btn isDefault>Default Action</Btn>
      <Checkbox
        label="Enable sound"
        checked={soundEnabled}
        onChange={() => setSoundEnabled(!soundEnabled)}
      />
      <RadioButton
        label="Compact"
        selected={density === 'Compact'}
        onChange={() => setDensity('Compact')}
      />
      <RadioButton
        label="Comfortable"
        selected={density === 'Comfortable'}
        onChange={() => setDensity('Comfortable')}
      />
      <TabControl
        tabs={['One', 'Two']}
        activeTab={activeTab}
        onTabChange={setActiveTab}
      >
        <div>{activeTab === 0 ? 'First tab' : 'Second tab'}</div>
      </TabControl>
    </div>
  );
}

When to use os-core vs os-widgets

Use @go-go-golems/os-core when you want:

  • primitive building blocks
  • forms, lists, buttons, alerts, tables
  • direct control over composition
  • the smallest useful package surface

Use @go-go-golems/os-widgets when you want:

  • richer widgets
  • widget-level primitives such as toolbars, status bars, and sparklines
  • a higher-level building block layer on top of os-core

Storybook and standalone apps

A good standalone validation path is:

npm run typecheck
npm run build
npm run build-storybook

In Storybook, import the same theme entrypoints in preview.tsx and wrap stories with the same data-widget="hypercard" className="theme-macos1" root.

Notes

  • This package is published as ESM.
  • CSS theme imports are side-effect imports and should not be removed.
  • If the theme appears not to apply, first check the root wrapper contract.

License

MIT