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

@dongfangw/sim-kit

v0.1.8

Published

虚拟仿真实验库:60 个断网可用的物理/空气动力学交互仿真 + 开发与审核原则(前端单文件构建 + 离线站 + DSH 工作台)

Readme

@dongfangw/sim-kit · 虚拟仿真实验库

60 个断网可用的物理 / 空气动力学交互仿真,加一套"怎么造、怎么审"的原则。

  • 53 个纯前端仿真(React + Canvas/SVG/VTK.js,单文件构建,零外网零后端)
  • 7 个离线自托管仿真(PhET ×6 + NASA FoilSim 中文适配)
  • 技能 2 个:sim-development(开发)、sim-review(交互六军规 + 公式渲染纪律)
  • 在线试玩(GitHub Pages,随 main 自动更新):https://<owner>.github.io/aero-sim-kit/

三条交付面(同一份 sim/cases.yaml)

| 面 | 给谁 | 怎么出 | |---|---|---| | DSH「仿真」标签页 | 装了插件的学生 | dsh plugin install @dongfangw/sim-kit | | 单文件 HTML(可 iframe 进课件) | 做课件的老师 | npm run embed:build → sim/embed/<id>/index.html | | 离线发布包(60 个 zip + 校验和) | 断网机房 | npm run publish:build → Release 附件 |

状态

施工中(阶段 3)。从 student-pack/sim + src/client/sims 拆出。

副本纪律:src/client/sims/** 与 sim/cases.yaml 是 student-pack 的副本,真源在那一边; 同一份修复必须两边都有,否则工作台(加载本包的 lib/client.js)与课件会不一致。 改完真源后跑装配层的同步门禁:aero-course-workspace/scripts/sync-sim-sources.mjs (默认只检查,--apply 落盘),再 npm run build 重建 lib/client.js。

许可

MIT;第三方素材见 THIRD_PARTY_LICENSES.md。

npm 包里有什么 / 没什么(发布口径)

npm i @dongfangw/sim-kit 装到的包(tar 约 12 MB,解开约 45 MB)包含:

  • lib/:插件与客户端产物(index.js + client.js 6 MB,含 60 例组件)
  • sim/:cases.yaml、驱动脚本、sim/phet/ 的 7 个第三方离线案例(23.8 MB,字节级原样)
  • src/、skills/、scripts/、THIRD_PARTY_LICENSES.md

不包含(sim/.npmignore 排除,可在本地重建):

| 目录 | 原因 | 怎么重建 | |---|---|---| | sim/embed/ | 53 个单文件内嵌版属构建产物(49 MB) | npm run embed:build | | sim/out/ · sim/pyenv/ | 运行期产物 / 本地虚拟环境 | 运行时自动生成 | | dist-site/ · dist-sim-publish/ | 发布用站点与打包目录 | npm run site:publish |

为什么 phet/ 留在包里而不是按需下载:Gitee raw 对其中部分文件(如 LICENSE-PhET.txt)返回 HTTP 451,按需取回不可靠;而算上它解开也只有 45 MB,远低于 npm 的 100 MB 上限。

/sim/health 会报 phetDirs(应为 7)。若为 0,说明这份安装缺第三方内容。