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

@tbox.cn/app-provider-mock

v0.6.4

Published

商圈 Mock Provider 包(极简零配置):17 槽 local 供给开箱即用——免传输/凭据/实例配置/集成配置;config 消费与配置验证面见 @tbox.cn/app-provider-mocktest。

Downloads

1,152

Readme

@tbox.cn/app-provider-mock

商圈 Mock Provider 包(provider 拆包 F1b,极简零配置):全槽 local 供给(member×5 / parking×3 / promotion×4 / shopping-guide×4 + mall.info,17 槽全 local:true——免传输/凭据/ 实例配置/集成配置)。模板缺省开箱演示——裸跑即完整 mock 商圈(免业务凭据,不免模型密钥)。

  • 实现自持(R3-1:dag 铁律禁 provider 依赖业务模块):mock 数据内聚于本包,member 卡面文案 中立化("示例会员卡");shopping 域为静态 seed 派生(门店/类目/楼层目录)。
  • 装配走 tbox-app module add(provider 即无卡模块)。

零配置开箱(0.5.0)

2026-09-20 拆分(docs/plans/mock-provider-split/): 本包退役全部 config 面——17 槽无 configSchema、无 src/server/config.ts,演示常量 冻结于各 impl(值 ≡ 0.4.0 缺省)。零配置 = 零行为变化。

  • 0.4.0 → 0.5.0 迁移指引:此前通过 integrations.json(root/slot/module 任意层)配置过 cardName/feeCents/couponTitle 等 33 字段的部署,升级后这些键不再生效(fail-soft 惰性化——解析不拒、doctor 不红,仅静默回退冻结缺省)。请移除手编配置,或在需要动态配置 体验的部署改用内部验证供给。
  • 动态配置验证面@tbox.cn/app-provider-mocktest(不发 npm;全槽 configSchema + fail-soft 消费 + 64 例测试,含原 tests/config-schema.test.ts 双锁与级联 e2e)。 体验入口:pnpm dev mall-mocktest / pnpm stage mall-mocktest (素材 .real-env/config/mocktest/)。
  • 换码器(ctx.authExchanges scoped mock 换码)、入会落地路由 (POST /api/m/provider-mock/demo/member-enroll,容器 mock-enrollment 页闭环)、 隐式默认单实例(mall-demo原样保留——开箱闭环组成。

槽位与实现

| 域 | 槽 | implementation | |---|---|---| | member | account / profile / card / benefits / enrollment | mock-member@1 | | parking | query / payment / vehicle | mock-parking@1 | | promotion | offers / entitlements / activities / acquisition | mock-promotion@1 | | shopping-guide | catalog / shops / categories / directory | mock-shopping@1 | | mall.info | info | mock-mall-info@1 |

demo ref 恒 demo: 前缀,厂商中立(多 Provider 架构中立门禁扫描 src/)。