DEVELOPERS
把你的 AI 游戏接入 LoveAIGame
四种方式,从零代码到全自动。选一个最顺手的。
- 01粘贴链接最快的方式。粘贴 URL,我们自动抓取标题、简介、封面并检测能否内嵌。去发布
- 02清单文件在站点放一个 JSON 或几行 meta 标签,精确控制展示信息。查看格式
- 03API / AI 助手一条 curl 就能发布。也可以把提示词丢给 Claude Code 或 Cursor,让它帮你提交。查看 API
- 04SDK一行脚本接入排行榜与游玩事件,更多能力(成就、存档、支付)在路上。查看 SDK
- 05MCP 服务把 LoveAIGame 接进你的 AI 助手:之后只要说一句「把这个游戏发布到 LoveAIGame」或「帮我 Remix 那款 XX」,它就会自己调用工具完成。
- 06开源 & Remix发布时带上 repo_url 和 license,你的游戏就会出现「用 AI 共创」入口;别人发布时带上 remix_of,就会挂到你的版本树下。没有声明协议的仓库不算开源,平台不会引导别人复制它的代码。
清单文件
任选其一:在站点根目录提供 /.well-known/loveaigame.json,或在首页 <head> 中加入 meta 标签。提交链接时会自动读取。
{
"title": "Neon Drift",
"tagline": "Thread a glowing ship through an endless neon highway.",
"cover": "https://your-game.dev/cover.png",
"genre": "arcade",
"tags": ["endless", "neon"],
"ai_tools": ["claude", "cursor"],
"author": "you"
}<meta name="loveaigame:title" content="Neon Drift">
<meta name="loveaigame:tagline" content="Thread a glowing ship through an endless neon highway.">
<meta name="loveaigame:cover" content="https://your-game.dev/cover.png">
<meta name="loveaigame:genre" content="arcade">
<meta name="loveaigame:ai" content="claude, cursor">
<meta name="loveaigame:tags" content="endless, neon">genre: arcade | action | shooter | puzzle | strategy | rpg | adventure | platformer | racing | simulation | card | multiplayer | sports | casual | other
ai_tools: claude, chatgpt, gemini, cursor, copilot, grok, deepseek, qwen, kimi, doubao, v0, bolt, lovable, replit, windsurf, websim, rosebud
REST API
所有公开接口都支持 CORS,无需鉴权即可提交;修改与删除需要提交时返回的管理密钥。
| POST | /api/v1/inspect | 扫描一个 URL,返回识别到的信息 |
| POST | /api/v1/games | 发布游戏 |
| GET | /api/v1/games | 游戏列表(支持 q / genre / tool / sort / limit / offset) |
| GET | /api/v1/games/{slug} | 游戏详情 |
| PATCH | /api/v1/games/{slug} | 修改信息(需管理密钥) |
| DELETE | /api/v1/games/{slug} | 下架(需管理密钥) |
| GET · POST | /api/v1/games/{slug}/scores | 读取 / 提交排行榜分数 |
curl -X POST https://loveaigame.com/api/v1/games \
-H "Content-Type: application/json" \
-d '{
"url": "https://your-game.dev",
"genre": "arcade",
"ai_tools": ["claude"],
"author": "you"
}'
# -> { "ok": true, "game": { "slug": "neon-drift", "page": "…" }, "manage_key": "lag_…" }curl -X PATCH https://loveaigame.com/api/v1/games/neon-drift \
-H "Authorization: Bearer lag_your_manage_key" \
-H "Content-Type: application/json" \
-d '{ "tagline": "Now with boss fights." }'让 AI 助手替你发布
把下面这段话复制给 Claude Code、Cursor 或任何能联网的编程助手:
Publish this web game to LoveAIGame (https://loveaigame.com).
1. Find the public, deployed URL of this game (deploy it first if needed).
2. Send: POST https://loveaigame.com/api/v1/games (Content-Type: application/json)
{
"url": "<deployed url>",
"title": "<game title>",
"tagline": "<one sentence, max 160 chars>",
"description": "<2-3 short paragraphs: how it plays, controls, how it was built>",
"genre": "<one of: arcade | action | shooter | puzzle | strategy | rpg | adventure | platformer | racing | simulation | card | multiplayer | sports | casual | other>",
"tags": ["<up to 8 short tags>"],
"ai_tools": ["<any of: claude, chatgpt, gemini, cursor, copilot, grok, deepseek, qwen, kimi, doubao, v0, bolt, lovable, replit, windsurf, websim, rosebud>"],
"author": "<my name or handle>",
"repo_url": "<repo url if public>",
"license": "<SPDX id of the repo's licence, e.g. MIT - omit if none>",
"prompt": "<the main prompt(s) used to build it>"
}
3. Save the returned "manage_key" to a file named .loveaigame and add that file to .gitignore.
4. Tell me the returned game.page URL.
Full docs for agents: https://loveaigame.com/llms.txtMCP 服务
把 LoveAIGame 接进你的 AI 助手:之后只要说一句「把这个游戏发布到 LoveAIGame」或「帮我 Remix 那款 XX」,它就会自己调用工具完成。
# Claude Code
claude mcp add --transport http loveaigame https://loveaigame.com/api/mcp
# Cursor / Claude Desktop / any MCP client (mcp.json)
{
"mcpServers": {
"loveaigame": { "type": "http", "url": "https://loveaigame.com/api/mcp" }
}
}| search_games | 搜索游戏(可只看开源) |
| get_game | 游戏详情、源码、协议、Prompt、版本树 |
| get_remix_brief | 获取 Remix 指令与协议要求 |
| inspect_url | 预览自动识别结果 |
| publish_game | 发布游戏 / Remix 版本 / 参加 Jam |
| update_game | 修改自己发布的游戏 |
| list_jams | 查看 Game Jam |
Claude Code skill: /loveaigame-skill/SKILL.md
开源 & Remix
发布时带上 repo_url 和 license,你的游戏就会出现「用 AI 共创」入口;别人发布时带上 remix_of,就会挂到你的版本树下。没有声明协议的仓库不算开源,平台不会引导别人复制它的代码。
curl -X POST https://loveaigame.com/api/v1/games \
-H "Content-Type: application/json" \
-d '{
"url": "https://my-fork.vercel.app",
"remix_of": "neon-drift",
"title": "Neon Drift: Night Shift",
"prompt": "Add a boss wave every 60 seconds and a synthwave soundtrack.",
"repo_url": "https://github.com/me/neon-drift-night-shift",
"license": "MIT"
}'license: MIT | Apache-2.0 | GPL-3.0 | AGPL-3.0 | BSD-3-Clause | MPL-2.0 | CC-BY-4.0 | CC-BY-SA-4.0 | CC0-1.0 | Unlicense | (any SPDX id)
JavaScript SDK
体积约 1KB、零依赖。内嵌在 LoveAIGame 播放器中时通过 postMessage 通信,独立打开时自动回退到 REST API。
<script src="https://loveaigame.com/sdk.js" data-game="your-game-slug"></script>
<script>
LoveAIGame.ready(); // the game is loaded and interactive
function onGameOver(score) {
LoveAIGame.gameOver({ score }); // ends the run + submits to the leaderboard
}
LoveAIGame.on("pause", () => game.pause());
LoveAIGame.on("resume", () => game.resume());
</script>徽章
发布后,把徽章放进 README,把玩家带到你的游戏页。
[](https://loveaigame.com/en/game/your-game-slug)关于爬虫
LoveAIGameBot 只读取公开的搜索 API、RSS 与游戏首页的 meta 信息,遵守速率限制,不抓取游戏资源。自动收录的游戏会标明来源并链接回原作者;如果你是作者,可以随时认领或要求下架。
User-Agent: LoveAIGameBot/0.1