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

@get-halo/extension-sdk

v0.2.0

Published

Runtime libraries shared by standalone Halo extensions:

Downloads

200

Readme

Extension SDK

Runtime libraries shared by standalone Halo extensions:

  • /api: oRPC procedure builders and TypeBox schemas for api.ts.
  • /schema: Tandem schema and relation builders for schema.ts.
  • /view: typed ExtensionViewProps and the useQuery React hook.
  • /client: browser API and Tandem connection setup.
  • /server: the standalone HTTP server and command-line startup.

view.tsx receives { api, storage }. api calls the extension's router at /api/; storage is its Tandem client, connected through /sync/. Pass a stable query object to useQuery(storage, query) and use Tandem transactions for edits. The schema module named-exports schema and relations; the generated browser entry passes both definitions to the client so relational with queries remain typed through ExtensionViewProps and useQuery. Each browser owns its client and local navigation; the server owns persistent shared data through one TandemServer backed by TandemServerJsonFileStorage. The adapter writes <data-dir>/tandem.json as an SDK-owned implementation detail; extension code must not read or write it. Rebuilt extensions do not parse or replace a legacy store.json, so the old file remains recoverable while the new runtime starts a fresh store. The SDK does not import Halo or require Electron.

When launched with a Node IPC channel, the server reports its ready URL and accepts a shutdown message. It closes HTTP and Tandem before disconnecting. Losing the parent connection also shuts it down. Standalone CLI processes continue to use SIGINT or SIGTERM for shutdown.

The generated application bundles the SDK and its dependencies. React and ReactDOM are normal peer dependencies within each extension's dependency tree; they are not injected from Halo or shared as live objects across extensions.

Scaffolding and esbuild configuration live in the separate development package, @get-halo/extension-tools. Both packages use the repository's TypeScript version to emit their runtime JavaScript and declarations.

When Halo hosts the extension, API handlers receive context.tools. Calls use Halo's connected services. Workspace extensions are trusted and can call any available tool. Call tools from api.ts, keep credentials out of the view, and import ExtensionToolResult from /api to describe a tool's result.

A standalone server still serves its API and storage, but calls to Halo tools return halo_not_connected. Verify connected-service behavior through the Halo-hosted view. The development app installs local package builds when creating extensions. After Halo's source changes, use halo extension update <id> to install updated local packages, typecheck, rebuild, and restart an existing extension. Reload or reopen its pane afterward. Published SDK 0.1.0 does not include tool support.