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

@proteus-vue/dev-host

v0.1.0

Published

G-45 B2(proteus-dev-host-plan):调试基座即宿主(Install-Once Host)——DevHost SPI 真实现(动态后端模块装载门禁链:manifest/签名/conformance 快检/覆盖率)+ 转发桩 pending 语义(未装载调用回放,业务零重试零重启)+ 双层构建计划器(基座 cacheKey 与业务规模无关,构建 O(改动) 非 O(规模))——打破 uni-app 式「自定义基座循环」

Readme

@proteus-vue/dev-host

G-45 B2(proteus-dev-host-plan):调试基座即宿主(Install-Once Host)——打破 uni-app 式「自定义基座循环」(改原生插件 → 云打包基座 → 重装 → 循环往复)。

一句话

基座是常驻宿主,不是构建产物——装一次,换插件,永不重打(渲染与原生能力走可插拔后端,不是 WebView 套壳)。

能力

  • DevHost:动态后端模块装载门禁链——manifest 完整性 → 签名(G45_SIGN)→ conformance 覆盖率(每能力 ≥1 例)→ conformance 快检(shape 契约)→ 注册 → pending 回放;任一 FAIL 拒绝装载 + 降级兜底
  • ForwardingStub:转发桩——后端就绪直调 / 未装载进 pending(禁止同步抛异常,G-45.2)/ 装载成功按 seq 序回放 / 失败转降级
  • BuildCache + planBuild:双层构建计划器——基座 cacheKey = f(框架版本, ABI) 与页面数/插件数无关(CMP086),构建 O(改动) 非 O(规模)
  • 全链可观测:loaded/upgraded/rejected/fallback/pending/replay 事件(G-45.5,TraceBus 同源)

用法

import { createDevHost, checkResultShape } from '@proteus-vue/dev-host'

const host = createDevHost()
host.registerFallback('scanQR', async () => ({ text: null, degraded: true }))

// 业务侧(编译器生成的转发桩形态)——后端未推送时调用进 pending
const stub = host.createStub('scanQR', 'scanQR')
const p = stub.call({ format: 'qr' })

// dev server push 插件模块 → 装载即验证 → pending 自动回放
const report = await host.loadModule({
  manifest: { id: 'scanner', version: '1.0.0', capabilities: ['scanQR'], signature: 'sig-demo' },
  conformance: [checkResultShape('scanQR', 'scanQR', [{ format: 'qr' }], { text: 'string' })],
  factory: () => ({ scanQR: async () => ({ text: 'CODE-123' }) }),
})
console.log(report.ok, report.replayed) // true 1
console.log(await p) // { text: 'CODE-123' }

完整方法论见 docs/proteus-dev-host-plan/(B1 参考实现 + 铁律 + NAT-C 套件)。