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/surface-page

v0.28.7

Published

The core of a Surface app's page: the desktop (bar, windows, palette), the agent panel, cards, generated surfaces, ADE's overlays, and the sdk a module's views import. It draws with the app's installed Surface registry components.

Readme

@hollis-labs/surface-page

The core of a Surface app's page: the desktop (the bar, windows that tile, tab and float, the palette), the agent panel, cards, generated surfaces and ADE's overlays, plus the sdk a module's views import. It is built from web/src in the Surface repository, where Surface's own apps compile it from source.

It draws nothing of its own. Every control is one of the app's installed Surface registry components (@/components/ui/*), so the app installs those first and keeps them in step with the registry:

surface_version=0.26.0-rc.1 # use the exact installed, published package version
npx surface-ui init --ref "v$surface_version"
npx surface-ui add theme --for @hollis-labs/surface-page

| Import | What | |---|---| | @hollis-labs/surface-page | mountPage({ modules, core?, app?, meta? }) (app and meta are the generated module list's exports), Page, Desktop, CardHost, CardsWindow, coreWeb, registerCard | | @hollis-labs/surface-page/sdk | What a module's views may import: useEvent, useSetting, useMarks, useAnchor, Icon, CiteText, CiteRef, RecordBody, ObjectActionsMenu, registerObjectAction, useObjectActions, registerNavGroup, registerNavItem, useNavTree, and the SDK types | | @hollis-labs/surface-page/gallery | galleryViews: the Components window, which needs every registry item installed. Also the specimen catalogue (SPECIMENS, specimenById, GALLERY_SECTIONS, GALLERY_PALETTES), InPalette, Section, Specimen, and one specimen alone: SpecimenView and mountSpecimen | | @hollis-labs/surface-page/vite | surfacePage(): the Vite settings the package needs |

If the app mounts galleryViews, install the complete registry as well:

npx surface-ui add --all
npx surface-ui verify

A page of one specimen (specimen.html?specimen=<id>&palette=<id>&theme=light|dark&type=mixed|mono, which a workbench frames) is a three-line entry calling mountSpecimen(root); the repository's registry/README.md, "One specimen on its own page", has the files. It needs the complete registry too.

The package manifest used by add --for covers the page and SDK. The optional gallery deliberately exercises every registry item, so add --for alone is insufficient. On upgrades, sync refreshes existing copies; run add --all again to install newly introduced gallery items. Install any npm dependencies printed by the CLI before building. Keep the lock ref equal to the exact installed Surface package version.

The page talks to the app's server over /api and /mcp. The full setup is in the repository's registry/README.md, under "An app in its own repository". The package's version is the Surface tag the app is on: its registry ref and the other @hollis-labs/surface-* packages move with it.

The surfacePage() Vite plugin emits surface-build.json with the package version and the SHA-256 of the installed theme consumed by the build. It defaults to @/components/surface.css; use surfacePage({ theme: "relative/path.css" }) for another location. Missing or unconsumed themes fail the build. The running app exposes the embedded evidence at /api/version, separately from its Go dependency version.