graphify
GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
可视化科普 skill。当用户要求"可视化科普""互动科普实验""科学交互演示""把XX做成互动页面""像挂谷猜想那样做个科普页"时使用。把任何数学或科学概念(如挂谷猜想、日食、月食、太阳系、四季、月相、潮汐)变成电脑和手机都能访问的单页互动实验:先事实核验,再建直觉模型,给出正式定义,设计参数滑杆加实时反馈的互动实验,写清边界说明与来源追溯,最后用 Vite 打包单文件并发布到 Cloudflare Pages。支持两种方式:用 templates/prompt-template.txt 生成全新主题单页,或按 templates/scene-template.js 为 sci-viz-lab 现有项目扩展场景。
把任何数学/科学概念变成"电脑手机都能访问的单页互动实验"。
不从一串定义和公式开始,而是让读者通过旋转、拖动和调参数先建立直觉,再进入正式定义、结论边界和权威来源。只要问题里存在空间关系、时间变化、尺度变化或参数影响,互动实验就有发挥空间。
npm run build,用 vite-plugin-singlefile 打包成单个 dist/index.htmlnpm run deploy,得到电脑手机都能直接访问的线上地址详细方法论见 references/workflow.md。
使用 templates/prompt-template.txt(挂谷猜想完整提示词),替换以下五处后交给 AI 生成完整单页项目:
模板中的事实核验、直觉模型、互动实验、边界说明、响应式检查和来源追溯要求原样保留。
在现有 sci-viz-lab 项目中新增场景:
src/scenes/<scene-id>.js{ id, name, init(container), update(params), dispose(), getDefaultParams() }src/main.js 中 registerScene(myScene) 注册index.html 的 .scene-tabs 中添加对应 Tab(data-scene 与场景 id 一致)npm run dev 本地验证后构建发布场景由 scene-loader.js 懒加载:激活时才 init,切走时 dispose,全局只有一个渲染循环。
首个场景"挂谷猜想"包含:可旋转缩放的三维细管实验(四种排列)、二维线段重叠与 δ 邻域画布、证明思路五站式地图、时间线与可追溯来源。
src/scenes/ 场景插件架构,registry.js 注册表 + scene-loader.js 切换与渲染循环npm install # 安装依赖(Node.js >= 20)
npm run dev # 本地开发
npm run build # 构建,产出单文件 dist/index.html
npm run deploy # 发布到 Cloudflare Pages(需先登录 Wrangler)
dist/index.html 单文件可直接打开,线上地址可访问GRGraphify-Labs/graphify156k2,564 new stars in the last 7 days
PApaperclipai/paperclip119k1,966 new stars in the last 7 days
NEnexu-io/open-design111k1,277 new stars in the last 7 days
HEheygen-com/hyperframes94k4,558 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days
BYbytedance/deer-flow86k276 new stars in the last 7 days