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

@schemastud/mainframe

v0.1.0

Published

The generic Mainframe engine (React-only, host-agnostic): the frozen slot contract, an SSR-safe named-slot registry, a mode registry, a `can`-gated resolver, and the host→Mainframe React delegation seam. Relocated out of @splicewire/beam-mainframe (Frame

Readme

@schemastud/mainframe

The generic Mainframe engine — React-only, host-agnostic. The frame that hosts realm/CMS/OS surfaces without knowing what they are.

Relocated here out of @splicewire/beam-mainframe (Frame OS ADR-0011, ticket 01) so any host composes the frame with no CMS and no beam dependency. @splicewire/beam-mainframe re-exports these primitives, so existing consumers are unchanged until they migrate their import sites (ticket 02).

What ships here (the generic seam)

  • The slot contract (contract.ts) — the frozen CORE_SLOTS/OPTIONAL_SLOTS, fill-types, zones. Changing the core set or a core slot's fill-type is a contract break; adding an optional/custom slot is not.
  • createSlotRegistry — an SSR-safe, append-only, per-scope bag of slot contributions.
  • createMainframeRegistryregister(mode, Mainframe); a Mainframe is a ({ slots, ctx }) => ReactNode that owns placement.
  • resolveSlots — collects raw contributions into ResolvedSlots, applying the two orthogonal axes: entitlement (can, drops contributions) and placement ordering ((zone, order, index)).
  • The React seam (react.tsx) — MainframeProvider / MainframeOutlet / useSlot + hooks: a child-swap-under-a-stable-host delegation that preserves state across mode switches.

What does NOT ship here

The CMS-authoring layer stays in @splicewire/beam-mainframe: createMainframeHost, the domain/window modes, useBeamUxEntry, isPuckBody, edit-affordance contributions. The Frame OS os mode + window manager (tickets 03–04) are added to this package on top of the seam.

The geometry atom

This package declares react-rnd (MIT) as a dependency — the invisible geometry atom for the Frame OS window frame (ticket 03). It is imported only at the window-frame component; the reducer, registry, and realm-derivation stay import-free (guarded), keeping the geometry wheel swappable.