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

@becomeopc/dshx-plugin-marketplace

v0.1.0-preview.0

Published

A self-hosted Framework Hub marketplace for DSH profiles.

Readme

DSHX Plugin Marketplace

@becomeopc/dshx-plugin-marketplace is DSHX's self-hosting reference plugin. It adds Settings → Plugins → Marketplace to a DSH Web Profile and reads Framework Hub's installable marketplace catalog.

The package exercises the complete plugin authoring path produced by create-dshx: defineHost, defineSettings, defineApi, defineClient, defineLocale, defineSlot, Standard Schema validation, and useApiQuery. It is built and installed as an ordinary DSH bundle; no Harness or DSHX core patch is required.

Develop and build

From the DSHX workspace:

pnpm install
pnpm --filter @becomeopc/dshx-plugin-marketplace check
pnpm --filter @becomeopc/dshx-plugin-marketplace typecheck
pnpm --filter @becomeopc/dshx-plugin-marketplace test
pnpm --filter @becomeopc/dshx-plugin-marketplace build

Run pnpm --filter @becomeopc/dshx-plugin-marketplace dev to start the real DSH development Profile. Client changes use official HMR; Host changes rebuild and restart the Host process. Add -- --port 0 when the default Web port is occupied.

Install

The Preview package is installed into the Profile that should own the marketplace:

dsh plugin --profile web add @becomeopc/dshx-plugin-marketplace@preview
dsh --profile web

For an unpublished workspace build, run pnpm --filter @becomeopc/dshx-plugin-marketplace pack, then pass the emitted .tgz path to the same dsh plugin --profile web add command.

Installed plugins become active after the Profile is restarted. The first version intentionally does not restart DSH automatically.

Framework Hub configuration

The settings namespace is dshx-plugin-marketplace:

dshx-plugin-marketplace:
  hubBaseUrl: https://dshx.io

The value updates live. Production endpoints must use HTTPS; loopback HTTP is accepted only for local development and smoke tests.

The Host reads GET /api/marketplace/plugins and GET /api/marketplace/plugins/:slug. Those endpoints are separate from Hub's discovery/SEO catalog. An install always re-fetches the exact detail and accepts only one active primary target whose package and version match the published catalog entry. The client does not submit a package name, version, or command.

Security boundary

  • The browser submits only a Hub slug. The Host fetches the plugin detail again and accepts exactly one active primary install target.
  • Compatibility is checked against the running DSH version before installation.
  • The DSH CLI is invoked with a fixed argument array, without a shell, with cancellation, a five-minute timeout, and one install task per Profile process.
  • Host responses are validated before display. Local paths and raw terminal output remain in Host logs.
  • Community plugins display an additional third-party code warning before installation.

This Preview contains categories, compact cards, pagination, installation, and restart guidance. It does not contain search, sorting controls, ratings, details, uninstall, update, hot loading, or automatic restart. Installation works only from a loopback DSH Web session because the typed Host API is intentionally loopback-only.