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

@infinia/plugin-dev

v1.2.0

Published

Vite plugin + simulator host for developing FengYu plugins in an IDE — replaces `fengyu plugin dev`.

Readme

@infinia/plugin-dev

The Vite dev plugin for FengYu plugin authors. It turns the Vite dev server into a FengYu host simulator, so you develop and debug a plugin's UI and worker directly in your IDE — no separate dev CLI process, no JDWP remote attach.

Replaces the former fengyu plugin dev command. The CLI now only scaffolds (create) and packages (build); development happens entirely through your editor + this Vite plugin.

What it does

  • UI (this plugin) — injects /__fengyu, /__fengyu/rpc, /__fengyu/ref, and /__fengyu/files/* middleware into Vite. /__fengyu serves an iframe shell that runs your real plugin UI (with Vite HMR) and bridges @infinia/plugin-sdk's postMessage calls.
  • Filesfiles.open, files.inputDirectory, and files.workspaceDirectory use the browser picker and snapshot selections into a temporary dev directory. files.outputDirectory allocates a temporary writable directory and files.export downloads it as a zip. The simulator also keeps a manual absolute-path field for desktop-style in-place I/O testing.
  • Worker (separate process, your IDE) — forward rpc.invoke to a fengyu-plugin-devkit dev server you run via PluginDevMain.main(). Breakpoints in your handlers fire directly.

Install

In your plugin's ui-src/:

npm install --save-dev @infinia/plugin-dev

For a Java-worker plugin, also add the devkit as a test-scope Maven dependency in worker/pom.xml:

<dependency>
  <groupId>fan.summer.fengyu.sdk</groupId>
  <artifactId>fengyu-plugin-devkit</artifactId>
  <version>1.1.0</version>
  <scope>test</scope>
</dependency>

Usage

ui-src/vite.config.ts:

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { fengyuPluginDev } from '@infinia/plugin-dev'

export default defineConfig({
  base: './',
  plugins: [
    vue(),
    fengyuPluginDev({
      manifest: '../manifest.json',
      workerEndpoint: { host: '127.0.0.1', port: 24057 },
    }),
  ],
})

Then:

cd ui-src && npm run dev     # UI: http://127.0.0.1:5173/__fengyu

For the Java worker, run PluginDevMain.main() (scaffolded into worker/src/test/java/...) from your IDE's Debug action — it starts the loopback TCP server at 127.0.0.1:24057. Set breakpoints in your JsonRpcWorker handlers; they fire when the UI calls rpc.invoke.

When workerEndpoint is configured, an unavailable worker is returned as an RPC error. The simulator never silently substitutes mock data, so a stopped Worker cannot produce a false-positive frontend test. Use mockWorker: true only when stub responses are intentional.

Temporary file snapshots and output directories are removed when the Vite dev server closes. A browser-selected workspace is a writable copy, matching FengYu's production Web mode; use the manual path field when the Worker must modify the original local directory during desktop-focused debugging.

UI-only plugins

Drop workerEndpoint (or set mockWorker: true) — rpc.invoke returns a deterministic stub so you can iterate the UI before the worker exists:

fengyuPluginDev({ manifest: './manifest.json', mockWorker: true })

License

GPL-3.0