# Lelele Game (了了了游) — LLM / Agent Setup > Read this file first. It explains the platform from a **game developer / integrator** point of view. > You do NOT need to read the repository source code to build or integrate a game here. > Site: https://game.leleleling.site · Analytics: https://analytics.leleleling.site > Version baseline: 4.6.0 (SW v1.34) · Game rules 5.1.0 · Data: 42 games / 10 authors. ## What this site is A bilingual (Chinese / English) indie game portal. Players browse games, favorite them, and play them in a standalone player. Developers submit games and read per-game statistics. Everything is a static site (GitHub Pages) plus a Cloudflare Worker backend for analytics. ## For game developers — how to submit 1. Read the rules: https://game.leleleling.site/game_rules.html (v5.1.0). 2. Every game MUST provide three legal agreements: EULA, Privacy Policy, Terms of Service. - External/embedded games: provide your EULA / Privacy / Terms URLs in the submission form. - Code games: ship your own, or use the platform's generic agreements (`generic_eula.html`, `generic_privacy.html`, `generic_tos.html`). - Free bilingual generator: https://game.leleleling.site/legal_templates.html 3. Submission form: the "投稿" button on the homepage; author identity is matched by the developer display name you registered (case and space sensitive). 4. Review takes ~7 business days; you will be notified by email. 5. Full guide: https://game.leleleling.site/developer_docs.html ## Data handling (for integrators) Game metadata, media, author info and legal agreements are hosted and maintained by the platform. As a developer you do NOT need to know or access any internal file names or storage paths - submit and update your game through the developer portal / submission form. For a machine-readable view of your own game's info and statistics, use the public API below. ## Public statistics API (no key, no login, CORS `*`) Per-game plays and net favorites: ``` GET https://analytics.leleleling.site/api/public/stats?game=&range=30d&cmp=1 ``` - `game`: game name (plays) or numeric id (favorites); either is accepted. - `range`: `today`, `7d`, `30d`, `90d`, `12mo` (default `30d`). - `cmp=1`: adds `prevTotal` for the previous period. - Returns: `{ game, range, plays: {series,total,prevTotal}, favorites: {series,total,prevTotal} }`. `series` is `[{label, value}]`; `favorites` = favorites minus unfavorites. All-event breakdown (advanced): ``` GET https://analytics.leleleling.site/api/breakdown?site=1&cmp=1&limit=1000&dim=event&range=30d ``` ## Developer SDK (honor system) Developers add one script to their game to access platform capabilities: ```html ``` - Works only inside the platform player (games run in an iframe). - APIs: `submitScore`, `submitRating`, `getLeaderboard`, `getPlayerName`, `isInPlatform`, `nextGame`, `shareScore`, `openDetail`. - Anonymous players are allowed; a random local nickname is generated automatically. - Leaderboards and ratings are honor-system (client-reported, no anti-cheat); the platform stores and serves all data. - Full API reference and examples: https://game.leleleling.site/sdk-docs.html Games newly submitted from 2026-11-28 must integrate the SDK (at minimum submitScore); see the Game Rules. Ranking score ("rank points") = net favorites × 5 + plays. ## Pages an agent should link to - Game catalog / discovery: `/index.html` - Game detail: `/game.html?id=` - Standalone player: `/play.html?id=` (games load as `?embed=1` inside a clean shell) - Favorites leaderboard: `/favgames.html` (params: `lang=zh|en`, `range=today|7d|30d|90d|12mo`, `limit=5|10|20|all`) - Play/visit leaderboard: `/gamecheck.html` (same params: `lang`, `range`, `limit`) - Visual stats dashboard: `/stats.html` - Developer docs: `/developer_docs.html` · Developer SDK docs: `/sdk-docs.html` - Tag explorer: `/tag.html?tag=` · Score share: `/share.html?id=&name=&score=` - Game rules: `/game_rules.html` · Legal templates: `/legal_templates.html` - About: `/about.html` ## Embedding / player notes - The standalone `play.html` embeds same-origin games with `?embed=1&lang=zh|en`; the game page detects embed mode and hides site footers, seasonal decorations and announcement popups. - Games that block embedding show a prominent "Open in new tab" bar; fullscreen targets the game iframe itself and asks for confirmation first on external games. - Game saves use browser `localStorage`; the player deliberately does not sandbox the iframe. ## Discovery & recommendations - The homepage game library is ordered by a weighted random ranking (author level, source type, leaderboard position and a short "new game" boost), reshuffled only on page reload - filtering, search and pagination keep the same order. - "For You" on the homepage suggests games from your local favorites (tags/category); with no favorites it falls back to the leaderboard top games. - Game detail pages show "More Like This" (content similarity by tags/category/author) and a collapsed-by-default update log. - Game agreements may be bilingual links (Chinese/English) supplied at submission time; the player opens the one matching the current interface language, falling back to platform generic agreements. ## For AI agents - Prefer consuming the public API instead of scraping HTML. - Respect the favorite-rate limit: each game allows at most 3 favorite/unfavorite cycles per day per user for analytics counting (the UI itself is never blocked). - All user-facing strings are bilingual; switch with `?lang=en` or `localStorage['lelele_lang']`. - Do not attempt to access authenticated developer endpoints (`/api/*` outside the public paths). ## Further reading - Developer guide: https://game.leleleling.site/developer_docs.html - Developer SDK docs: https://game.leleleling.site/sdk-docs.html - Stats dashboard: https://game.leleleling.site/stats.html