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

@openpen/build

v1.1.1

Published

OpenPen plugin build CLI — zero-config Vite + Vue compilation for plugin authors.

Readme

@openpen/build

Zero-configuration build CLI for OpenPen plugin authors. Wraps Vite + Vue so plugin developers never touch a vite.config.js.

Install

npm install --save-dev @openpen/build @openpen/module-api

Use

npx openpen-build           # one-shot build → dist/renderer.js
npx openpen-build --watch   # dev mode, rebuild on change
npx openpen-build --check   # type-check only (requires tsconfig.json)

The CLI expects, in the plugin's project root:

  • plugin.json — the manifest the host scans.
  • src/index.ts — the entry that default-exports an OpenPenModule.

It produces dist/renderer.js (single-file ESM, sourcemap included). vue, @openpen/module-api, and @openpen/module-api/uikit are externalised — the host provides them at runtime via importmap, so they never bloat the plugin bundle.

zod is also externalised via @openpen/module-api. Do NOT write import { z } from 'zod' in your plugin files — use import { z } from '@openpen/module-api' instead. A direct 'zod' import will produce an unresolved-import build error because zod is not bundled into the plugin and is not provided as a standalone external by the host.

CSS handling

Any <style> or <style scoped> block in your Vue SFCs is automatically inlined into dist/renderer.js at build time via vite-plugin-css-injected-by-js v4.

You MUST NOT ship a sibling .css file or reference a separate stylesheet from plugin.json. The host plugin loader only reads the renderer field and dynamically imports that single JS file — it does not load additional CSS assets. The inline injection runs when the module is imported by the host, before any Vue component mounts, so styles are available at first render.

This means:

  • Plugin authors do not need to configure anything extra.
  • dist/*.css will not appear in the build output (or, if Vite emits a near-empty placeholder, the host ignores it).
  • Design-token overrides (--openpen-* CSS variables) and scoped component styles both work out of the box.

License

MIT