juicyjuicy

中文文档
0.10.0发布于 2026/11/04MITES Module零依赖

Publish AI-made browser games to juicyjuicy.games

原始使用文档

juicyjuicy

Publish browser games you make with AI to juicyjuicy.games, and get a link your friends can play.

In your AI coding agent (Claude Code, Codex, GitHub Copilot, Cursor, Gemini CLI, Antigravity, or any agent that can run commands), open your game's folder and paste:

Run npx juicyjuicy setup, then publish this game to JuicyJuicy

setup installs the JuicyJuicy skill for the agents on your machine (in ~/.agents/skills, plus ~/.claude/skills and Antigravity's folders when you have them) and logs you in (approve in the browser). It replaces only copies of the skill it wrote; a copy you changed or linked stays unless you pass --force (a changed copy is backed up to ~/.juicyjuicy/skill-backups). After that, just say "publish this game to JuicyJuicy". Or do it yourself:

npx juicyjuicy publish   # upload and print the link (first time: logs in, writes juicy.json)
npx juicyjuicy init      # create or edit juicy.json
npx juicyjuicy check     # validate without uploading
npx juicyjuicy list      # your games and their versions
npx juicyjuicy publish --draft  # upload without making it live
npx juicyjuicy rollback  # make an earlier version or a draft live
npx juicyjuicy open      # open the game page
npx juicyjuicy pull <slug>  # download your game's live version, to change it on another computer

Every command takes --json (one JSON object per line, the last one is the result) and --yes (never prompt). Exit codes: 0 ok, 1 fix the game or juicy.json, 2 log in, 3 network or server.

No thumbnail in juicy.json? publish takes a screenshot of your game with the Chrome, Edge, Chromium or Brave on your machine (headless, at the game's aspectRatio) and uses that; a page that stays one colour counts as no screenshot. Turn it off with --no-auto-thumbnail; if it can't, the game's tile shows its title on a gradient.

Environment: JUICY_TOKEN (a token from juicyjuicy.games/settings/tokens, for CI), JUICY_API_URL (another server, e.g. http://localhost:3000; https only, plain http only for localhost) and JUICY_BROWSER (the browser for the screenshot, if it isn't found).

In a sandbox that reaches only allowed domains (Claude Cowork, claude.ai), allow juicyjuicy.games and *.r2.cloudflarestorage.com and use a JUICY_TOKEN; otherwise the CLI stops with NETWORK_BLOCKED and names the blocked host.

Full guide: https://juicyjuicy.games/docs/publish

版本与发布记录

juicyjuicy 共发布 14 个版本,首次发布于 2026/10/24;过去 12 个月发布了 14 个版本。

版本发布日期距今
0.10.0latest2026/11/041 天前
0.9.02026/11/013 天前
0.8.02026/11/014 天前
0.7.02026/11/014 天前
0.6.02026/11/014 天前
0.5.12026/10/314 天前

关于 juicyjuicy 的常见问题

juicyjuicy 是什么?

Publish AI-made browser games to juicyjuicy.games

如何安装 juicyjuicy?

在项目目录运行 npm install juicyjuicy,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 juicy、juicyjuicy,可以用 npx juicy 直接运行。

juicyjuicy 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/juicyjuicy 是否存在。

juicyjuicy 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

juicyjuicy 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=20.12。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

juicyjuicy 可以商用吗?

juicyjuicy 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

juicyjuicy 还在维护吗?

最新版本 0.10.0 发布于 2026/11/04(1 天前);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/10/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。