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

@visual-e2e/rpc-sdk

v0.1.0

Published

Host ↔ Tool RPC SDK for visual-e2e (iframe postMessage).

Readme

@visual-e2e/rpc-sdk

Host ↔ Tool iframe RPC(postMessage,协议 v2)。

Tool(iframe 内)

import { getRpcClient, isEmbedded } from "@visual-e2e/rpc-sdk";

if (isEmbedded()) {
  const rpc = getRpcClient();
  const ctx = await rpc.getProjectContext();
}

在 tool.json 声明 rpc.protocolVersion(当前为 2)与所需 capabilities。

RPC API

| SDK 方法 | RPC method | capability | 说明 | | --- | --- | --- | --- | | getProjectContext() | project.getContext | project.context | 当前项目凭证:base_url / username / password | | listProjects() | project.list | project.list | 项目列表 | | getProjectVariables(projectId?) | project.getVariables | project.variables | 项目全局变量 | | getSettings() | config.getSettings | config.settings | 全局配置 | | getBrowserRuntime() | config.getBrowserRuntime | config.browserRuntime | 浏览器配置与就绪状态,含 browser_path / ffmpeg_path | | pickFolder() | fs.pickFolder | fs.pickFolder | 选本地目录 | | getDataDir() | fs.getDataDir | fs.dataDir | 应用数据目录(含 storage / projects / config / tools) | | navigateScenario(module, scenario) | scenario.navigate | scenario.navigate | 打开场景管理 | | cacheClear() | cache.clear | cache.clear | 预留 |

Host → Tool 通知(onNotify):

| method | 说明 | | --- | --- | | project.contextChanged | 项目凭证变更,参数含 project_id / project_name | | cache.clear | Host 侧清理缓存通知 |

Host(主应用 web)

import {
  attachHostRpcBridge,
  notifyTool,
  normalizeCapabilities,
} from "@visual-e2e/rpc-sdk/host";

const detach = attachHostRpcBridge({
  webOrigin,
  capabilities: normalizeCapabilities(tool.capabilities),
  getContentWindow: () => iframeRef.current?.contentWindow,
  handlers: {
    getProjectContext: () => ({ base_url, username, password }),
    listProjects: () => api.projects(),
    // …
  },
});

notifyTool(contentWindow, origin, "project.contextChanged", params) 向工具推送项目变更。