This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
emupedia.github.io 镜像同步记录与项目分析
维护说明:本页由
gitea-mirror-wiki技能生成(2026-12-01 18:39),记录该仓库在 GPD Gitea 的镜像状态与代码速览。Wiki 属于本地维护内容,不来自上游,也不受 8 小时同步影响。
一、仓库概况
| 项目 | 值 |
|---|---|
| 上游 | https://github.com/Emupedia/emupedia.github.io.git |
| 本地镜像 | http://192.168.1.99:3000/jarod/emupedia.github.io |
| 公网入口 | https://git.lxj.ai/jarod/emupedia.github.io |
| 状态 | 活跃镜像(8 小时自动同步) |
| 默认分支 | master |
| 仓库大小 | 约 813.1 MB(DB 852564990 字节;裸仓约 833069 KB) |
| refs | 7 分支 / 0 标签 / HEAD 历史 1581 提交 |
| 建立时间 | 2026-12-01 18:27:09 |
| 描述 | Emupedia - nonprofit meta-resource / hub for video game preservation, retro OS simulator UI (emupedia.net/beta/emuos) |
二、同步过程与当前状态
本次同步实测
| 项目 | 结果 |
|---|---|
| 上游仓库 | https://github.com/Emupedia/emupedia.github.io (Emupedia/Emulation Encyclopedia,JavaScript,自定义「非商业测试评估」许可,GitHub 识别 Other/NOASSERTION,1355 star / 226 fork / 19 open issues,默认分支 master,创建于 2016-03-01,最后推送 2026-11-01,主页 emupedia.net/beta/emuos) |
| 迁移请求 | POST /api/v1/repos/migrate;mirror=true、mirror_interval=8h0m0s、private=false、repo_owner=jarod、repo_name=emupedia.github.io;由 GPD 宿主侧 nohup 后台 curl(--max-time 7200)发起,配合独立 watcher 脚本判定,避开本机客户端超时误判 |
| 迁移结果 | HTTP 201 Created,服务端实测耗时 324518.1 ms(约 5 分 24 秒),repo id 50,empty=false;上游工作树约 472 MB(GitHub API size=483082 KB),全历史镜像裸仓 812 MB(DB size 852,557,720 字节 / API size=832575 KB),约 1.7 倍膨胀;迁移中 tmp_pack 达 490 MB、DB 呈 status=1/is_empty=1/size=0 属正常中间态,全程未重发 migrate |
| 默认分支 | master;裸仓 HEAD = f39124e316396f94c6f2b7a84a76c93b2d125801,与 GitHub 上游 HEAD 完全一致(git ls-remote 比对) |
| refs 规模 | 7 分支(master + 6 个 dependabot 分支)/ 0 标签 / 全 refs 2466 提交(master 单分支历史 1581 提交);HEAD 树 1134 个文件;提交跨度 2016-03-01 → 2026-11-01,是现有镜像里历史最长的仓库 |
| 远端配置 | remote.origin.url = https://github.com/Emupedia/emupedia.github.io.git;fetch 双 refspec(+refs/:refs/ 与 +refs/tags/:refs/tags/);无 remote.origin.proxy 等代理残留 |
| 同步排期 | mirror_interval = 8h0m0s(interval=28,800,000,000,000 ns),enable_prune=1;POST /mirror-sync 返回 200 / 0.096 s,updated 2026-12-01 18:36:09 → next_update 2026-12-02 02:36:09(+8h),之后按 8 小时节奏自动拉取,无需人工干预 |
| 完整性校验 | git fsck 无异常输出;裸仓属主 jarod:jarod(1000:1000),大小 812M;仓库页 /jarod/emupedia.github.io 返回 200;API 返回 mirror=true、empty=false、default_branch=master、size=832575 |
| 仓库计数 | 同步后 Gitea 共 35 个仓库,其中 33 个活跃镜像(另含 anqing 静态归档、cn-edu 本地自建非镜像) |
| 本次无异常 | 472 MB 大仓一步式迁移一次成功(历史经验是 >3GB 才必须分批 fetch + 本地接管),未出现超时 422 空壳、未重发 migrate、无需手动接管;客户端与 GPD 全程 SSH 正常 |
当前校验状态
| 检查项 | 结果 |
|---|---|
is_mirror / is_empty |
1 / 0 |
| HEAD | refs/heads/master → f39124e3 |
| remote.origin.url | https://github.com/Emupedia/emupedia.github.io.git |
| remote.origin.fetch | +refs/*:refs/* / +refs/tags/*:refs/tags/* |
| 自动同步排期 | updated 2026-12-01 18:36:09 → next 2026-12-02 02:36:09 |
页面验证:
GET /jarod/emupedia.github.io/wiki返回 200 即表示 Wiki 裸仓已被 Gitea 正确识别。
三、项目功能速览
README 来源:README.md
The purpose of Emupedia (Emulation Encyclopedia) is to serve as a [nonprofit](https://en.wikipedia.org/wiki/Nonprofit_organization) meta-resource hub and community for those interested mainly in [video game preservation](https://en.wikipedia.org/wiki/Video_game_preservation) and computer history whi
We mainly collect content from:
* a wide variety of systems no longer in production
* [abandonware](https://en.wikipedia.org/wiki/Abandonware), [shareware](https://en.wikipedia.org/wiki/Shareware) or [freeware](https://en.wikipedia.org/wiki/Freeware) games websites
* [open source](https://en.wikipedia.org/wiki/Free_and_open-source_software) [ports of old games](https://en.wikipedia.org/wiki/Porting) that work in [modern web browsers](https://en.wikipedia.org/wiki/List_of_web_browsers)
* new games and software developed with [modern web technologies](https://en.wikipedia.org/wiki/HTML5) using [retro-style](https://en.wikipedia.org/wiki/Retrogaming) graphics
We revive old games and software by the use of [emulation software](https://en.wikipedia.org/wiki/Emulator).
Similar organizations that do [digital preservation](https://en.wikipedia.org/wiki/Digital_preservation) and archiving:
* 🏛 [Internet Archive](https://archive.org)
* 🏛 [Archive Team](https://www.archiveteam.org)
* 🏛 [Video Game History Foundation](https://gamehistory.org)
* 🏛 [International Center for the History of Electronic Games](https://www.museumofplay.org/about/icheg)
* more on [Wikipedia](https://en.wikipedia.org/wiki/List_of_digital_preservation_initiatives)
## 💬 <sub>Join us on Discord</sub>
检出的技术栈 / 构建信号:GitHub Actions CI、Docker 镜像、npm 锁文件、Node.js / 前端(npm)
顶层目录:(根目录)、.github、_includes、_layouts、_posts、_sass、beta、css、emupedia-app-emuchat、images
四、代码功能与安全简析(人工复核)
一、功能定位
Emupedia(Emulation Encyclopedia) 是一个非营利的电子游戏保存 / 计算机历史元资源站:把停止生产的老系统软件、abandonware / shareware / freeware 游戏、开源老游戏移植版与现代 HTML5 复刻游戏,集中到一个模拟复古操作系统的 Web 桌面 UI(EmuOS) 里,用于教育与文化保存。README 明确其定位是 meta-resource hub(聚合索引 + 社区),并列出 Internet Archive、Video Game History Foundation 等同类机构。
站点本体是 GitHub Pages / Jekyll 静态站(_config.yml、_layouts / _includes / _posts / _sass、feed.xml、CNAME=emupedia.net,另有 emupedia.org / .games、emuos.net / .org / .games 共 6 个镜像域名);核心交互在 beta/emuos/——一个 Windows 95 / XP / 7 风格的浏览器桌面(61 KB 单页 index.html + 桌面图标、窗口、开始菜单、主题、音效、报错动画等资源),配合 js-dos / Phaser / Monaco / xterm 等库在浏览器里跑 DOS 游戏与老应用;另有 PWA 子应用 emupedia-app-emuchat(聊天)和 beta/app/ 的 Electron 20.1.1 桌面壳(Squirrel 安装包,把同一套 Web 桌面打包成 Windows 程序)。
二、技术栈与工程结构
| 项 | 情况 |
|---|---|
| 形态 | 纯静态前端 + Jekyll 博客 + Electron 桌面壳,仓库内无后端源码 |
| 依赖 | package.json 分 dependencies(3 个,auto-launch / electron-log / electron-settings)、devDependencies(约 45 个)、reference(约 60 个)三段;package-lock.json 566 KB;实际使用 100+ 前端库并已 vendored 进 beta/emuos/assets/js/libraries/ |
| 代表库 | jQuery 3.6.1 / jQuery UI、Bootstrap 5、DataTables、RequireJS、Babel standalone、less、animate.css、monaco-editor 0.34、xterm 4.19、js-dos 6.22、Phaser 3.55、howler、jszip、pdfmake、twemoji、FingerprintJS 3.3.5、Dropbox SDK、Octokat、jsrsasign 10.5 |
| 构建 | beta/scripts/import-libraries.js(203 KB,把依赖库映射/改写进站点)、create-installer.js;npm run import / startapp / buildapp / installer;Electron 要求 Node ≥16.14.1 |
| 配置 | _config.yml(Jekyll,排除 beta/emuos/**/*.md 等)、.gitpod.yml、Dockerfile(仅装 mc 的 Gitpod 工作区)、.github/workflows/deploy.yml(推送时清 4 个域名的 Cloudflare 缓存) |
| 资源 | 最大单文件 20.1 MB emupedia-cover2.psd;其余为 15.6 MB boot.psd、14.9 MB FLAC 音效、10.3 MB peter.mp4 等,属 PSD 源文件与音视频素材,不是游戏 ROM 二进制 |
三、安全快检结论(只做防御性审查)
- 无硬编码凭据、无敏感文件:全树无
.env/.pem/.p12/.p8/id_rsa/ credentials / secrets 文件;beta/emuos/assets/data/config.json内容为空{}。CIdeploy.yml的 Cloudflare zone/token 全部走${{ secrets.* }},密钥不入库。 - 关键词命中均为误报或占位:
filesystem.js里private_key: ''/token: ''是运行时空默认值(详见风险 3);desktop.json的 "The Secret Life of Mr. Black" 是游戏名;其余是 vendored 的babel-polyfill/babel-standalone里的DOMTokenList、tokens等标识符。 - 无危险安装脚本:未见
curl|sh、wget|sh、sudo、rm -rf /。唯一的child_process是beta/app/updater.js用spawn调本地 SquirrelUpdate.exe建/删快捷方式,不联网拉更新;import-libraries.js里仅有 2 处adrianotiger.github.io桌面宠物资源 URL。其余eval命中全是 jQuery / less / bson 等 vendored 库的正常实现。 - 正面配置:站点首页与 404 页带 CSP(
default-src 'self',脚本域白名单为自家 6 个域名 + GA/GTM/DoubleClick);ElectronnodeIntegration:false、nodeIntegrationInWorker/SubFrames:false、webSecurity:true、allowRunningInsecureContent:false、plugins:false、webviewTag:false,加载的是本地file://.../beta/emuos/index.html而非远程 URL。
四、风险提示与建议
- 许可证不是开源许可,这是最硬的约束:
LICENSE与 README「License」章节均写明「source code … for non-commercial testing and evaluation purposes only. Emupedia reserves all rights not expressly granted」,package.json标UNLICENSED+private: true,GitHub 识别为 Other / NOASSERTION。本镜像只能作非商业内部研究与试用;不可商用、不可二次分发、不宜把站点或其中的游戏资源直接搬进校园公开宣传材料或对外服务。README 另设「Legal issues」(讨论美国国会图书馆 DMCA 豁免)与「DMCA Takedown notices」(dmca@emupedia.net)章节,说明项目自身也清楚游戏归档的版权敏感性——涉及未成年人/校园场景时尤其要先把版权口径问清楚。 - 有第三方追踪与外联,不是纯离线站:HTML 里
dns-prefetch/preconnect指向www.google-analytics.com、stats.g.doubleclick.net、twemoji.maxcdn.com,libraries.js配了ga分析模块;仓库确实 vendored 了fingerprint-3.3.5.js(浏览器指纹);emuos.js:1041硬编码 6 个wss://ws.emupedia.*/ws/聊天服务器。内网或课堂演示若要避免外联,需自行裁剪这些引用(CSP 的connect-src … *与frame-src … *是通配,等于没限制连接目标)。 - GitHub App 私钥放在前端设计里:
beta/emuos/assets/js/filesystem.js会在浏览器中用KJUR.jws.JWS.sign(jsrsasign)以options.github.private_key签 JWT,去请求api.github.com/app/installations/<id>/access_tokens换 token 访问 GitHub。仓库里该值为空字符串、无真实私钥泄漏,但一旦部署者把自己的 GitHub App 私钥填进前端assets/data/config.json,私钥会随静态资源下发给每个访问者——这是设计层面的凭据暴露面,自建部署时不要填真实私钥。 - Electron 桌面壳隔离偏弱:虽然关了 nodeIntegration,但同时
sandbox:false+contextIsolation:false+enableRemoteModule:true+devTools:true,preload 直接remote.getCurrentWindow()并向window挂全局方法;Electron 版本 20.1.1(2022 年) 较老、已知 CVE 不少。桌面版建议只跑官方签名安装包,不要自行改壳或加载不可信页面。 - CSP 与供应链:
script-src含'unsafe-eval' 'unsafe-inline'、img-src/font-src为*,白名单里还有cojmar.github.io等外域;100+ 依赖中有多个github:Git 依赖(web-esheep、ansilove.js、MIDI.js、VvvebJs 等)未锁 commit;CIuses: jakejarvis/cloudflare-purge-action@master按分支而非 SHA 固定。作为研究参考无妨,若真要长期自建,建议先做依赖收敛与固定。 - 资源不完整:
.gitignore排除了emupedia-resources与beta/emuos/assets/themes,部分主题/资源不在仓库内,克隆后直接跑可能缺素材;GitHub Releases / 站外资源也不随 8h 镜像同步。
五、结论
作为「复古 OS Web 桌面 + 老游戏/软件保存索引」的参考实现,工程完成度与资料密度都很高,代码里未见后门或凭据泄漏,静态站形态也让部署门槛很低。但这次同步最需要记住的两点是:① 它是非商业评估许可的专有源码,不是开源项目,公开镜像只作内部研究;② 站点会外联 GA/DoubleClick、指纹库与 6 个 WebSocket 服务器,且桌面壳的 Electron 隔离配置偏松。适合在隔离环境里研究 EmuOS 的实现与老游戏 Web 化思路,不建议直接上线、商用或作为校园公开材料分发。
五、代码安全快检(自动)
- 本仓库体积较大(>500 MB)或扫描超时,采用轻量模式:跳过全树关键词扫描,仅做文件名与结构检查,需人工复核。
- 敏感文件(
.env/*.pem/*.p12/ 私钥 / credentials 等):未检出 - 硬编码 PEM 私钥:未完成扫描
- 危险脚本模式(
curl|bash/eval/base64 -d/chmod 777):未完成扫描
六、风险提示
- 自动快检只覆盖常见模式,不替代人工审计;部署前核对依赖来源、锁文件与 CI 中的
${{ secrets.* }}用法。 - 远程控制 / Agent / 文件上传 / 解析外部文档类项目,优先放在内网隔离环境,避免直接暴露公网。
- 注意许可证(GPL / AGPL 等)对二次分发与闭源集成的约束。
七、维护约定
- Gitea 对
is_mirror=1的仓库禁止 Wiki API / UI 写入(POST .../wiki/pages返回 405),但读正常;本页由服务端直接维护<repo>.wiki.git裸仓。 - 更新方式:临时
chown -R root:root,用hash-object -w+mktree+commit-tree+update-ref提交,最后chown -R 1000:1000;root 直接git clone会触发dubious ownership。 - Wiki 是独立裸仓,8 小时
mirror-sync --prune只操作主裸仓,不会影响本页;删除并重建仓库会连带删除 Wiki,Gitea 迁移/备份时须单独带上.wiki.git。 - 每次人工发起的镜像同步完成后,按
gitea-mirror-wiki技能更新本页;后台自动同步不重复生成。