Skip to content
Projects

About

FPS satírico de navegador: 5 facções brasileiras caricatas, 44 personagens, 5 mapas e 26 armas — rounds e Capture the Flag contra bots, direto na aba, sem instalar nada. Three.js + vanilla JS, zero build. Gerado em par com agentes de IA (Claude, Kimi, Codex/GPT, GLM) — AI generated & AI friendly.

AI & Machine Learning

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

CORO SOLTO: Treta Suprema

license: AGPL-3.0 CI pr-gates astro three.js supabase vercel Discord Telegram

AI generated & AI friendly — built alongside AI agents, and each commit says which one wrote it (Agent: trailer, convention in CONTRIBUTING.md):

Claude Fable 5 Claude Opus Kimi K3 Codex GPT GLM Gemini OpenRouter Tripo3D Meshy mint.gg

CORO SOLTO: Treta Suprema — satirical browser FPS with Brazilian factions

Free browser FPS built with Three.js: caricatured Brazilian factions, original characters, satirical maps and weapons. Matches against bots and beta multiplayer, right in your browser tab. No download or installation required to play.

What How much Where to check
Game code 85,324 lines in 218 files git ls-files public/js/*.js | xargs wc -l
game.js 10,302 lines wc -l public/js/game.js
main.js 5,803 lines wc -l public/js/main.js
Weapons with GLB 27 git ls-files 'public/models/weapons/*.glb' | wc -l
Character GLBs 74 git ls-files 'public/models/characters/*.glb' | wc -l
GLB props 274 git ls-files 'public/models/props/*.glb' | wc -l
Versioned animation clips 925 git ls-files public/models/anims | wc -l
Playable characters 63, in 7 groups CHARACTERS array in characters.js
Maps in the menu 14 MAPS minus MAPAS_PARADOS
Visual harnesses in HTML 26 git ls-files 'public/*.html' | wc -l
Harness scripts 1079 git ls-files 'tools/eval/*.mjs' 'tools/eval/*.py' | wc -l
Pipeline scripts 94 git ls-files 'tools/*.mjs' | wc -l
Written starter tasks 27 git ls-files 'docs/issues/[0-9]*.md' | wc -l
Version 2.1.0-alpha.160 public/js/version.js and package.json (matching)

Generated by node tools/gen-docs.mjs. Source: the command in each row's right-hand column

Multiplayer is in beta. The network client lives in public/js/net.js, with transports in public/js/transporte.js — public and private rooms using invite codes run on the same client. To test the game locally without setting up a multiplayer server, start with singleplayer mode. On mobile, an installable PWA beta with touch controls is available (public/site.webmanifest).

▶ Play: https://www.corosolto.com.br/

The game was previously called CS BRASIL. It is the same game, and the old name remains registered as an alternative name for people searching for it.

This game was originally generated by AI from a single prompt — the original prompt is in PROMPT.md in the private progress repo.


Start here

You are… Read
curious this page, then https://www.corosolto.com.br/
a new dev (or agent) docs/README.md → CONTRIBUTING.md
looking to understand the stack docs/docs/stack.md — Three.js, Astro, Supabase, asset generation, skills
looking to contribute today open issues and CONTRIBUTING.md; check the status before choosing one
looking to find out what is broken the open issues

Documentation site (Docusaurus, with AI instrumentation, quality gates and architecture): cd docs && npm install && npm start → http://localhost:3000/docs/.

Stack

Layer Tool Version
3D engine (WebGL) Three.js, vendored r160
Game Vanilla ES modules, zero build 218 files
Site Astro with SSR ^7.4.12
Hosting Cloudflare Workers adapter ^14.3.4
Database Managed Postgres (RLS; private schema, outside the repo) ^2.110.7
Browser in test harnesses Playwright ^1.62.1
GLB pipeline gltf-transform ^4.4.1
Mesh compression meshoptimizer ^1.2.0
Imaging (build and API) sharp · resvg ^0.35.3 · ^2.6.2
This documentation Docusaurus 3.10.2
CI runtime Node 22

Three.js comes from public/vendor/three.module.js (no CDN, no npm at runtime). Astro and Cloudflare Workers come from package.json + astro.config.mjs + wrangler.jsonc + borda.json. Of the scripts in tools/, 225 import Playwright, 116 import gltf-transform and 17 import meshoptimizer.

Generated by node tools/gen-docs.mjs. Source: dependencies/devDependencies in package.json · REVISION in public/vendor/three.module.js

Details on each one — why the game has no build step, how assets are generated (mint.gg, Tripo3D, Meshy, OpenRouter), what Playwright and gltf-transform do here, and what agent skills are — can be found in Stack and tools.

Architecture

One repository, two zones with different rules:

  • THE GAME — public/ · Vanilla JavaScript with ES modules, Three.js vendored in public/vendor/ (the revision is in the stack table above), zero build. It never becomes a framework. There is no public/index.html: the game's HTML is src/pages/index.astro, served at the / route. (This README claimed the opposite for months and sent every new dev to the wrong file.)
  • THE SITE — src/ · Astro with SSR on Vercel. Landing page, global ranking, public profiles, content pages and the /api/* routes. Here, frameworks are welcome — but the game remains untouched.

Ranking and telemetry live in managed Postgres (private schema, outside the repo) — ranking is disabled by a flag today, but collection has not stopped (see the section below). The service_role key stays on the server only; the anon key is public by design, and security comes from policies and per-column grants.

No counts in the tree below — the numbers live in the generated block above. A hand-written numeric index becomes outdated with the first commit; this is the same reason tools/eval/ARCH.md is generated.

STATUS.md              estado de hoje (leia primeiro)
astro.config.mjs       Astro + adapter Cloudflare · `site` COM www (canonical)
borda.json             fonte de redirects, headers de segurança (CSP…) e cache
src/
  layouts/Layout.astro shell do site: nav, footer, CSS global, JSON-LD base
  lib/site.ts          nome, host, descrições e @id de JSON-LD (fonte única)
  lib/supabase.ts      client admin (service_role, só no servidor)
  lib/safe-url.ts      allowlist de avatar + fetch com trava de SSRF
  lib/ratelimit.ts     rate limit durável (contado no Postgres)
  data/jogo.ts         armas/mapas/personagens em forma de dado, pro site
  pages/index.astro    O JOGO, na rota `/`
  pages/ranking.astro  leaderboard (SSR, com cache de CDN)
  pages/u/[...path]    perfil público por jogador + badge PNG
  pages/sitemap.xml.ts sitemap dinâmico, cobre os perfis
  pages/api/*          register, submit-match, leaderboard, badge, avatar…
public/                O JOGO (vanilla, zero build)
  js/ vendor/ models/ style.css robots.txt llms.txt og-image.png
  audio/                 ⚠ NÃO versionado — ver "Áudio" abaixo
tools/                 pipeline do client (otimização de GLB e documentação)
  gen-arch.mjs         GERA tools/eval/ARCH.md (índice + tabela de conflito)
  gen-docs.mjs         GERA os blocos numéricos deste README e de docs/
../studio/tools/
                       gen-asset e gen-image no Studio público (`corosolto/studio`)
tools/eval/            o arnês de medição e os quality gates de qualidade
docs/                  documentação para devs (Docusaurus) + as issues de entrada
.agents/skills/        skills de agente (.claude/skills/ são symlinks pra cá)

Two folders are NOT included in the clone, by documented decision: public/audio/ (uncertain rights) and references/ (target UI screenshots and reference frames, which remain only on the owner's machine). What survives from references/ is the measured numbers: tools/eval/ref_ui.json and tools/eval/ref_viewmodel.json, which are versioned. Any harness that needs to run in CI reads the JSON, never the PNG.

Run locally

The full site (this is the mode you want — it includes the game):

git clone https://github.com/corosolto/client.git
cd client
npm ci
npm run fetch-audio       # opcional: sem o pacote, o jogo usa sons sintetizados
npm run dev               # http://localhost:4321 — o jogo está em /

Use Node/npm versions compatible with the engines in package-lock.json, including Astro and its dependencies. Installation was verified on 10/10/2026 with Node 23.6.0 and npm 11.6.0. Check node --version and npm --version in the same terminal before installing.

Build and preview:

npm run build             # gera dist/ (client + server)
npm run preview           # serve dist/client estaticamente

python3 -m http.server -d public serves only the game assets — the HTML is not there. Use npm run dev.

Quality gates

For the current quality gate commands, see the generated block in AGENTS.md and docs/docs/comecando.md.

npm run arch         # regenera tools/eval/ARCH.md (índice + tabela de conflito)
npm run docs         # regenera os blocos numéricos deste README e de docs/

Nothing gets committed with a failing invariant. The harness catalog is in tools/eval/README.md.

Documentation containing numbers is generated. npm run docs:check (part of check:fast) fails when a generated block diverges from the code — that is how a line claiming "game.js has 3,234 lines" survived until the file doubled in size.

npm run eval:vm and npm run eval:invariants read GLBs from public/models/. In a tree without the downloaded assets, both fail with ENOENT — that is an environment issue, not a regression.

Knowledge graph with Graphify

The repo now includes project-scoped Graphify integration for multiple adapters:

  • Claude Code
  • Codex
  • adapters compatible with agent skills via .agents/ (the OpenCode and Kimi configs were removed from the tree in 11/2026)

Main files:

  • AGENTS.md and CLAUDE.md: graph usage instructions
  • .codex/, .claude/, .agents/: per-adapter skills/config
  • graphify-out/graph.json: queryable graph
  • graphify-out/GRAPH_REPORT.md: navigable summary
  • graphify-out/graph.html: local graph visualization

Initial graph build:

  • generated in code-only mode, locally and deterministically
  • includes SQL (schema and migrations; the schema was removed from the public tree and is private)
  • uses no external API

Update after code changes:

./scripts/graphify update .
./scripts/graphify cluster-only . --graph ./graphify-out/graph.json --no-label

Rebuild from scratch:

./scripts/graphify extract . --code-only --out . --force
./scripts/graphify cluster-only . --graph ./graphify-out/graph.json --no-label

Note: the current Graphify version extracts this repo very well in JS/TS/SQL, but still reports partial parsing in .astro files. This is a limitation of the current extractor, not of the project.

Controls

Key Action
W A S D Move
Mouse Aim
Shift Sprint
Ctrl or C Crouch — much steadier aim
Space Jump
Left click Fire
Right click Scope / ADS
R Reload
1 / 2 / 3 Primary / pistol / knife
Z / X / V CS-style radio (voice commands)
M Switch teams (at any time)
Tab Scoreboard
Esc Pause

Rules, read from the constants in public/js/game.js:

Rule Value Constant
Groups · characters 7 · 63 (B 9 · C 9 · E 8 · F 9 · M 9 · P 10 · U 9) CHARACTERS
Maps in the menu 14 — 4 open in rounds, 10 in capture MAPS minus MAPAS_PARADOS
Respawn 2.2 s RESPAWN_DELAY
Round 99 s, 3 wins ROUND_TIME / ROUNDS_TO_WIN
Capture target = all flags on the map, 2 rounds (480 s safety net) capsToWin = ctfPts.length / CTF_ROUNDS_TO_WIN
Health regeneration OFF — ?regen=1 re-enables it REGEN
Ranking / /u/ pages OFF — controlled by a flag, can be restored in one line RANKING_ON in src/lib/site.ts

Generated by node tools/gen-docs.mjs. Source: constants in public/js/game.js · RANKING_ON in src/lib/site.ts

The menu accepts 1 to 8 bots per side (settings.bots); the default is 4×4. The team with the most kills wins the round. The AWP kills with one shot anywhere on the body. Multikills trigger Unreal Tournament-style announcements.

Health regeneration is OFF (owner's decision, 05/08/2026): health only returns on respawn. ?regen=1 restores the old rule — in full, with player↔bot symmetry. It was disabled because it was invisible: no icon, no sound and no line in the settings, and a rule the player cannot perceive is indistinguishable from a bug.

The registered maps, and the mode each one opens in:

Id Menu name Opens in File in public/js/ Lines
amazonia Treta na Amazônia capture — —
escadao Escadão (Morro) capture — —
praca_poderes Praça dos Três Poderes rounds — —
piscina_treta Piscina da Treta rounds — —
loja_h Loja H (Estacionamento) capture — —
ferro_velho Ferro Velho do Zé capture — —
quebrada Quebrada (Rua do Baile) capture — —
corrego Córrego (Favela de SP) capture — —
lajes Lajes (Comunidade) capture — —
posto_treta Posto da Treta capture — —
upa_24h UPA 24h da Treta capture — —
velho_oeste Sertão da Treta capture — —
invasao_javaporcos Cidade Invadida rounds — —
operacao_flavio Operação Flávio rounds — —

14 maps in the menu — 4 open in rounds and 10 in capture. ctfMode opens the map in capture mode, but does not lock it: the player can switch in the menu (this is MOD1). There are 26 map_*.js files in public/js/; maps in MAPAS_PARADOS are left out of the menu.

Generated by node tools/gen-docs.mjs. Source: MAPS object minus MAPAS_PARADOS in public/js/maps.js

Global ranking — OFF

RANKING_ON = false in src/lib/site.ts. Owner's decision on 04/08/2026: "let's disable ranking for now, we'll fix it later". The reason is the usual one in this codebase — the model is client-authoritative, the score can be forged, and publishing a forgeable ranking means publishing wrong numbers.

It is a flag, not a removal. With false:

  • /ranking and /u/* return 200 with a warning + noindex — not 404. The URLs are indexed and will return at the same addresses;
  • the link disappears from the site nav and footer;
  • /api/leaderboard returns {disabled:true}; the client does not know about the flag, it reacts to the API response. One source of truth, on the server.

What did NOT stop: collection. submit_match keeps recording (it validates the token, rate-limits by nick/IP/day, and enforces absolute caps and physical consistency), and the new telemetry keeps measuring. When ranking returns, the history will be there.

  • Schema and migrations: private, outside the tree
  • What was hardened before release: docs/seguranca.md

The permanent fix is for the game server to write with service_role and for RLS to block the client; it is queued alongside multiplayer.

Audio (public/audio/)

The folder is not versioned: the voices and memes have uncertain rights, and the public repository contains only code. Without the pack, the game uses synthesized sounds and works normally.

npm run fetch-audio     # ou: AUDIO_PACK_URL=<zip> bash scripts/fetch-audio.sh

The game loads audio/manifest.json (see audio/manifest.example.json, which is versioned). Original CS 1.6 samples are the property of Valve and are not distributed here.

SEO / AEO

  • site with www in astro.config.mjs — every canonical URL comes from there
  • Dynamic /sitemap.xml, covering one URL per player
  • public/robots.txt and /llms.txt (generated by src/pages/llms.txt.ts)
  • JSON-LD: a single VideoGame node with a stable @id, plus ItemList, ProfilePage/Person, HowTo, FAQPage and BreadcrumbList per page
  • CDN Cache-Control on /ranking, /u/* and /mapa

Licenses / credits

The code is licensed under AGPL-3.0 (GNU Affero General Public License, version 3) — this is the license in effect today, and the source of truth is the LICENSE file at the repository root. No other file has authority over this.

Generated by node tools/gen-docs.mjs. Source: title read from the LICENSE text, checked against the license field in package.json

Migrated from MIT to AGPL-3.0 on 07/08/2026. Contributions made before the switch were submitted under MIT — a permissive license compatible with the AGPL: they remain MIT within the whole, and the combined work is distributed under AGPL-3.0. Previous contributors lose nothing and do not need to give new consent (the incompatible direction would be the reverse).

  • Three.js r160 — MIT (© Three.js authors), in public/vendor/.
  • Code, textures, characters and logo: original.
  • Audio: provided by the user; verify rights before commercial use. CS 1.6 sounds not included (Valve).
  • Independent parody, not affiliated with Valve. Counter-Strike is a trademark of Valve Corporation.

Made for laughs, not for fights.

Explore related projects

Loading…