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

@younics/sunder-package-tool

v1.0.3

Published

Generate typed APIs, build Node services and web views, watch source changes, and package Sunder extensions for distribution.

Readme

@younics/sunder-package-tool

Turn TypeScript or JavaScript services into a Sunder package.

This tool generates typed service APIs, builds Node workers and optional web interfaces, watches source changes, and creates distributable .sunderpkg archives for Sunder.

Use it alongside @younics/sunder-sdk when developing an integration, automation service, or React-backed desktop extension. The initializer sets up the normal scripts; you can also run the CLI directly in an existing package project.

Install and prerequisites

Use Node 24.18.1 or newer within Node 24 and npm. Sunder and its CLI are required to run, smoke-test, inspect selected package archives, and install your extension.

npm install --save-dev @younics/sunder-package-tool

For a new project, use the initializer rather than assembling the configuration by hand.

Tutorial: build and package a Node service

1. Create a project

npm create @younics/sunder-package@latest hello-worker -- --package-id example.worker --package-name "Hello Worker"
cd hello-worker
npm install

The default preset contains a headless service in src/services.ts, its behavior test, and sunder.package.json. Add --preset react-node when creating the project to include a React App.

2. Generate and check the API

npm test

The generated script runs API generation, TypeScript checking, and the starter's service tests. #sunder/api resolves generated clients through the project's standard package-import mapping.

For generation alone:

npx sunder-package generate --project .

3. Build a development package

npm run sunder:dev:once
sunder runtime ensure sunder.runtime.node ">=24.18.1 <25.0.0" sunder.node-worker-module.v1
sunder dev package run dist/sunder-dev --watch

The Node preset starts a headless worker; it does not add a workspace view. The React preset also adds a view connected to the worker's service.

In a second terminal, run npm run sunder:dev. Source changes regenerate APIs and rebuild dist/sunder-dev; Sunder's output watcher applies complete updates.

Builds coordinate writes to generated output; source editing remains available. Verified exited owners are recovered automatically. When another process owns an output lock, diagnostics identify its PID. A persistent rename permission/sharing failure is reported after a brief retry, preserving the lock and existing output. Resolve the reported filesystem obstruction and retry; do not delete dist as a lock-recovery step.

4. Build and smoke-test

npm run build
npm run smoke

build produces the current platform's package output. smoke uses the Sunder Host to exercise startup of that built package. If the CLI is outside PATH, set SUNDER_CLI to its executable path.

5. Produce the universal archive

npm run package

The package command builds the declared targets for Windows, macOS, and Linux on x64 and arm64, then reports the archive path. Use that path with:

sunder dev package validate <archive.sunderpkg>
sunder package install --file <archive.sunderpkg>

Workers contain your bundled code and package-owned assets. The shared Node execution runtime is managed by Sunder.

Command guide

| Command | Result | | --- | --- | | sunder-package generate | Generated contracts, typed APIs, and worker registration | | sunder-package dev | Current-platform dist/sunder-dev package | | sunder-package dev --watch | Continuous source rebuilds | | sunder-package build --rid linux-x64 | Output for one specified platform | | sunder-package smoke | Host-backed smoke check of built output | | sunder-package package | Universal .sunderpkg archive |

Use --project <directory> to target another project. Run these through npm scripts or npx so the project's installed tool version is used.

Configure your package

The initializer creates a sunder.package.json with this basic shape:

{
  "schemaVersion": 3,
  "id": "example.worker",
  "name": "Hello Worker",
  "version": "1.0.0",
  "workerCapabilities": [],
  "services": { "module": "src/services.ts" }
}

Use src/services.js for checked JavaScript. Add optional worker capabilities when using Host-provided state, settings, files, secrets, or logging. The React preset adds the web-App configuration for you.

Commit source, configuration, and sunder-contracts.lock.json. Generated files under .sunder/ and dist/ are outputs. Run generation before invoking standalone TypeScript or Vite commands.

Consume another package

Select a local archive using its package ID and a compatible version range:

npx sunder-package api add example.weather --version ">=1.0.0 <2.0.0" --candidate ./weather.sunderpkg
npx sunder-package api list
npm run typecheck

This example requires an actual example.weather archive exposing a public API. For a published dependency, replace --candidate with your explicit --registry https://your-registry.example/. Generated clients then appear under the selected package token in #sunder/api.

Use api update to review a changed selection and contracts restore to restore the exact existing selection. See the selection and cache reference.

Private and public versions

The starter's private services follow your extension's version in sunder.package.json. They build directly. Public service APIs use an explicit reviewed lifecycle:

npm run contracts:accept
npm run contracts:check
npm run contracts:freeze

Use those commands when deliberately exposing public contracts, review and commit their baseline, and consult the public contract workflow when changing a released API. The extension version, public contract versions, and npm tool version have distinct purposes.

Troubleshooting and advanced usage

  • Unresolved generated import: run generate and check the #sunder/api mapping.
  • Node engine mismatch: use the required Node 24 version.
  • Missing contract cache: explicitly restore the committed selection using its original archive/catalog or Registry.
  • Native dependency fails on another platform: declare and supply the matching exact-RID native assets.
  • Tooling reference
  • SDK examples
  • Create a new package
  • Report an issue

Licensed under GPL-3.0.