DiscordLog in

Roadmap

Stages

  1. Foundation. Repository, CI, agent files, docs, two environments, placeholder page.
  2. Accounts. Discord login, user and identity tables, MFA and account-age checks, signed cookie.
  3. Browsing. Visual design (from the owner’s taste profile), home, category, mod and author pages on seed data.
  4. Game asset catalog. Preview image, name, description and metadata per asset; lists by type and search. The first content the site opens with.
  5. Submitting. Paste a repository link, GitHub synchronisation, thumbnails.
  6. Moderation. Scanning on the VPS, moderation queue, kill switch, reports, public moderation log.
  7. Discord bot. /setup, role mirroring, guard, moderation commands, new-mod announcements, member migration.
  8. Discovery. Ratings, search over descriptions, SEO (URLs, sitemap, structured data, preview images).
  9. Launch. Terms, privacy policy, takedown form, database backups and one restore test.

Stage 1 status

Done: repository files, CI workflow, agent instructions and the /retro skill, docs, Astro project with the Cloudflare adapter, environment names in web/wrangler.jsonc, first commit on main, proposed Discord server structure in discord/server.yaml.

Also done: the repository with a protected main branch (pull request and the check job required, no force pushes), secret scanning with push protection and dependency alerts.

Deployed by hand on 2026-11-24: staging and production, each with its own D1 database. Production answers at https://gta-vi-mods.net.

Not done:

  • Production has no Discord application, so login is off there. No R2 bucket exists yet.
  • No deploy workflow. It will be added when a Cloudflare API token exists; a workflow without it would fail on every push.
  • No lint or tests. They are added with the first code that needs them.

Stage 2 status

Done: accounts migration, Discord OAuth login and logout, signed 24-hour session cookie, encrypted refresh token storage, MFA and account-age rule, an unstyled /account page, unit tests.

Checked locally: the redirect to Discord, rejection of a wrong OAuth state, valid, expired and tampered session cookies, logout, and rejection of a cross-origin logout.

A real login through Discord was run locally by the owner: the account and the encrypted token were stored.

Stage 3 status

Done: catalog migration, development seed data, the shared layout with category icons and search, a home page with a spotlight and shelves, list pages with sorting and paging, search over names and summaries (brought forward from stage 8), mod page, author page, account page, 404 page, docs/design.md.

The first version of these pages was rejected by the owner as too bare. The current one is the rework.

Checked: every page at desktop and phone width in a headless browser.

Not done:

  • The owner said the themed look is going in the right direction and asked for centred empty states and more polish; a polish pass followed. From it the owner rejected the roadmap checklist on the home page and the plain rows of latest changes, and called the account page untouched and ugly; the checklist is gone, changes are cards, the account page is rebuilt, and the bar carries a faint skyline. Not reviewed yet.
  • Pages are rendered on every request. Caching or prerendering to stay inside the Workers free limit is not decided.
  • Seed images are stock photos unrelated to the mod titles, so the pages cannot be judged with real screenshots yet.

Discord bot

Done: /setup (builds and repairs the server from discord/server.yaml, lists changes before making them, never deletes), /ban and /timeout for moderators with limits and a log, and the guard that strips the roles of an account deleting or banning in bulk. The planning and limit logic has unit tests.

Not checked: the bot has never been run against Discord. It needs a bot token and a server, which only the owner can provide.

Not done: role mirroring, announcements of new entries, member migration, and applying server settings (left to the owner on purpose).

Community features

Done: ratings, reports from visitors, the kill switch with restore, the public moderation log, ownership confirmed through gta6mod.json, the internal API, bot announcements and role mirroring, and two GitHub Actions workflows (deploy after merge, publish approved submissions).

Checked locally against a running server: rating up, down and clearing; a report, a duplicate and a bad reason; hiding with and without a reason, the 404 of a hidden entry, restoring; the log page; the internal API closed without the secret and open with it.

Not checked: the two workflows (they need the owner’s Cloudflare token), bot announcements and role mirroring against Discord (they need the shared secret on both sides), and ownership confirmation against a real repository with a gta6mod.json.

Next, in this order: files uploaded straight to R2 (see the decision of 2026-11-24), the scan, our own thumbnails, editing a listing by its confirmed owner, member migration. Direct uploads and the scan of uploaded files are now built; see “Direct uploads”.

Direct uploads

Done: migration 0007_uploads.sql; uploading a file of up to 30 MB in 20 MB pieces through the Worker into the private FILES bucket; up to 6 screenshots, scaled down in the browser and stored in the public IMAGES bucket; the limits (types, 3 open uploads per person, the same account rules as submitting); uploads on /moderation with a download for the moderator, approve and reject; approving creates the entry at once, rejecting deletes the file and screenshots; downloads through /mods/<slug>/download with our own count; web/scripts/scan-uploads.mjs, which hashes uploads and asks VirusTotal, run on the VPS every five minutes; storage and scanning steps in runbooks/environments.md.

Checked locally against a running server: an upload refused when logged out, with a wrong file type and over the size limit; a 25 MB file sent in two pieces with two screenshots; a piece and a picture that do not belong refused; the upload shown on /moderation with its description escaped; the waiting file fetched by a moderator and by nobody else; approving, the entry page, the category list and search; the downloaded file identical to the one sent; byte ranges; the download count; a hidden entry not downloadable; rejecting with and without a reason, and the rejected file gone; both decisions in the public log; the scan script hashing the stored files.

Not checked: the scan script end to end (it needs uploads in a database and, for VirusTotal, the owner’s key), the scan step in publish.yml (it needs the owner’s Cloudflare token with R2 access), and the buckets, the img.gta-vi-mods.net domain and IMAGES_URL on staging and production (only the owner can create them).

Not built: deciding automatically whether an archive holds original game data. New versions, edits and an author page for uploaders are built (see “Versions, edits and trusted authors”); thumbnails for GitHub screenshots, the look inside archives and the cleanup of unfinished uploads and edits are built (see “Jobs on the server”).

Versions, edits and trusted authors

Done: migration 0009_versions_edits.sql; a new version of an uploaded entry by its uploader (through the upload API with the entry’s address), in the queue as “New version of …” beside the current file, approved as the current version with the older ones still downloadable at /mods/<slug>/download?v=<id>; changes to an entry’s summary, description, category and screenshots (entry_edits), applied on approval with the replaced screenshots deleted; a “You uploaded this entry” block on the entry page with both forms, which share one component with the upload form; /users/<id> for uploaders, “Uploaded by” linking to it and “More from” on uploaded entries; trusted authors publishing at once, “Published without review” on /moderation, the role given at the third moderator-approved upload and lost when an entry is hidden; the “Automatic check” line from uploads.content_note.

Checked locally against a running server with a script: see the report of the change. In short: a version sent, waiting, approved, both versions on the page and each download identical to what was sent; versions and edits refused for someone else’s entry by direct POST; a repeated version name refused; an edit waiting, then applied, the replaced screenshot gone; the user page; a trusted author’s upload, version, edit and repository going through at once, listed under “Published without review” and logged; the third approval giving the role and the log saying so; hiding taking it away; a non-trusted author still waiting; delete for good removing every file and screenshot of an entry with versions and edits.

Not checked: the migration on staging and production (apply 0009 before deploying), the bot announcing the queue items for versions and edits (they use the existing submission_received event), and the scan job writing content_note on these pages (the job is in “Jobs on the server”).

Next: the owner’s steps in runbooks/environments.md (create the buckets, attach the image domain, set VIRUSTOTAL_API_KEY), then apply migration 0007 to staging and production before deploying. The order of the items under “Not built” is not decided.

Jobs on the server

Done: migration 0010_jobs.sql; our own thumbnails for screenshots of entries from GitHub (mirror-images.mjs), kept across re-imports and deleted from the bucket when no longer used; the re-check of listed repositories every hour during an entry’s first day and every six hours later (recheck-repos.mjs), with unavailable entries and their return; replaced release files noticed and sent back to a pending scan; abandoned uploads removed after a day (cleanup-uploads.mjs); a look inside uploaded .zip and .oiv files for the moderator; a flagged scan hides a published entry; scan lookups rotate so every upload is hashed once and none takes every turn; each approved repository imported on its own; owner-name addresses for repositories with the same name; the jobs run wrangler without npx or a shell.

Checked locally against the local database and bucket: thumbnails through a stand-in image host, including a redirect to another host, one to 169.254.169.254, a file over 10 MB with and without a length header, an SVG, a web page, text, a 404 and a host answering 503 three times; thumbnails of the six real screenshots of breadbbbb/rpf9-explorer shown on the mod page and its card; a removed picture’s thumbnails deleted from the bucket; the re-check of that repository (a replaced file and a new release noticed, thumbnails kept, no second announcement), a repository that does not exist made unavailable and one coming back, one per run without a token; Two-Play/openrage and openragee/openrage imported side by side with a missing repository between them; the archive check on archives made for the purpose (programs, archives inside, .rpf, a real ZipCrypto archive, unsafe paths, a 300 MB zip bomb, 60,000 entries, a file that is not a zip, .7z, .rar, a bare .rpf), with and without the content_note column; the hide statements on local D1; abandoned uploads removed and recent or finished ones kept; the loop’s rhythm with stand-in scripts; the image built and the thumbnail and archive tests run inside it, read-only.

Checked locally after merging it with the uploads work: 0009 and 0010 applied on a fresh database and on one at 0008 holding the seed and real rows, then an entry from GitHub with thumbnails and an uploaded entry with an edit and a waiting version deleted for good (thumbnails queued in image_trash, no row left pointing at them); the scan job’s note on a waiting upload’s card and under “Published without review”; the flagged-scan statements on local D1 hiding a trusted author’s entry and taking the role, and leaving an entry alone for a waiting version; the public log’s lines by “Automatic check”; the thumbnail strip and the card using the 640 x 360 version; .7z and .rar listings in the jobs image with real archives (normal, solid, encrypted, encrypted names, one volume of several, a 300 MB bomb).

Not checked: anything against staging or production (apply 0010 there first), the flagged-scan hide with a real VirusTotal verdict, and the jobs under GitHub’s rate limit over a full day.

Not done: scanning release files hosted on GitHub; sending a replaced release file back to moderation instead of only to a pending scan; moving avatars (github_owner_avatar_url) to our storage. .7z and .rar are listed like a zip since the merge of the two branches (7-Zip in the jobs image).

Submitting and moderation

Done: /submit (paste a repository address, pick a category), the list of what a person has sent and what became of it, /moderation for moderators with approve and reject, the moderation log table, and a script that publishes approved requests.

Checked locally against a running server: sending, each refusal, a cross-origin post, the 404 for non-moderators, approving, and publishing an approved request.

Not done: it cannot be used on production until login works there (a second Discord application is needed). There is no scan, no Discord notification for the queue, and no public page for the moderation log. A container on the VPS (jobs/compose.yaml) publishes approved requests every minute and scans uploads every five; publish.yml is the fallback run by hand. The loop was checked with stand-in scripts and the image was built, but it has not run against Cloudflare: that needs the owner’s token in jobs/.env on the server.

Staff levels

Done: migration 0008_staff.sql (the staff role, flags, moderation_log.subject, an index for finding people by name); web/src/lib/roles.ts with canReview and canManage, used by /moderation, the download of a waiting file, the account page and the new routes; moderators see only the two waiting queues; flagging from the entry page and the automatic hide at three flags; staff-only reports, flags, hidden entries, Hide from the entry page, Clear the flags, Restore (clears flags) and Delete for good; /moderation/team for giving and taking roles, with every change in the public log; staff in the internal roles API.

Checked locally against a running server: a moderator refused (403 or 404) on every staff-only action by direct POST and on the team page; a moderator approving a repository and an upload and downloading a waiting file; three moderators flagging, the entry and the entry sharing its file hidden, one hide line by the third moderator with the three reasons, one announcement; a repeated flag, an empty reason and a fourth flag changing nothing; two last flags sent at the same moment giving one hide; staff hiding through a report and from the entry page, clearing flags, restoring (flags cleared), deleting an uploaded entry (rows gone, file and screenshot gone from storage, upload no longer pointing at it) and a GitHub entry; grant, repeated grant, revoke, a staff member refused when removing their own staff role, removing another’s; the public log naming entries and people; the internal API listing staff in the same shape.

Not checked: the migration on staging and production (apply it before deploying), the bot mirroring staff (the bot side is separate work), and three real moderators using it.

Next: apply 0008 to staging and production; give the first staff role there with SQL, since the team page needs a staff member to open it.

First entries

Done on 2026-11-24: an import script that turns a GitHub repository into a catalog entry, and the first five entries, all tools for reading the game’s files.

Not done: the submission form, the moderation queue, scanning, scheduled re-checks and our own thumbnails. Entries are added by a moderator from the command line.

Guides and indexing

Done: two guides (/guides), written from published community research with a source on every claim; a sitemap, robots.txt, canonical addresses, structured data and llms.txt; production is open to search engines, staging is not.

Not done, each needs the owner: adding the site in Google Search Console and Bing Webmaster Tools, switching on analytics, and checking that Cloudflare is not blocking AI crawlers for the domain.

The tools to add to the catalog once entries can be added by link are in tools-to-list.md.

Game asset catalog

Done on the site side: the hand-over format and web/scripts/import-assets.mjs (asset-catalog.md), migration 0011_assets.sql, the pages /assets, /assets/<kind> (groups as filters, paging) and /assets/<kind>/<name>, assets in search, a “Game assets” tab in the bar and the footer, one row of assets on the home page, and the asset pages in the sitemap.

Checked locally with an invented sample of 51 assets (made-up names, drawn shapes, nothing from the game): ten malformed folders refused before any write; the first import; a second run that changed nothing; a run with four changed lines and two new pictures that replaced them and deleted the old files; a shorter folder that kept the missing assets, and --prune that deleted them; every page, a missing asset’s 404, paging past the end, an unknown group, search, the sitemap files and the empty catalog, at desktop and phone width.

Turntables (added 2026-11-25): the spin field in the hand-over, migration 0012_asset_spin.sql, sheets made by the importer, and the turn view on the asset page (design.md rule 30, decisions.md “Turntables are stored as a few sheets”). Checked locally with invented turntables (an arrow-shaped block in 8, 36 and 72 views and a Blender test head; nothing from the game): six malformed folders refused (7 and 73 views, a view listed twice, a missing view, views of two sizes, a turntable without its picture), the first import, a second run that changed nothing, one changed view that replaced only that asset’s sheets and deleted the old ones, a removed turntable and a pruned asset losing their sheets; on the page, drags both ways with wrap-around, the keys, a sideways and an up-and-down swipe on a phone, JavaScript off, and a three-second drag traced at desktop size and at phone size with the CPU slowed four times.

Not done or not checked:

  • The extraction pipeline, which writes the hand-over folder. It is researched separately.
  • Turntables from real renders: their size, and the view on a real phone (memory, GPU, 60 Hz). Turntables for every prop would not fit in R2’s free 10 GB (asset-catalog.md); which kinds get them is the owner’s call.
  • Decoding the sheets off the main thread: it needs a CORS rule on the IMAGES bucket.
  • The importer against staging or production (it needs migration 0011 there and the owner’s Cloudflare login), and wrangler r2 bulk put against a real bucket.
  • Storage per picture with real renders; see the estimate in asset-catalog.md.

Before the PC version exists

GTA VI has no PC release yet, so there are no mods to list. The site opens with the game asset catalog (stage 4), and the mod catalog opens when modding becomes possible.

Open for the asset catalog:

  • How previews are produced: which tool renders an asset to an image, and how names and metadata are read from the game’s archives.
  • How many assets there are. Decided without the number: the pages are rendered from D1 (decisions.md, 2026-11-25), which works for any count.
  • Storage size of the preview images against R2’s free 10 GB. Each asset stores two WebP files; the size with real renders is not measured yet.

Postponed

  • Comments on mod pages.
  • Notifications.
  • Public API.
  • A second login method.
  • Interface translations.

Open questions

  • Who is named as the site’s operator in the terms. Not decided; the terms are not written yet.
  • Analytics. Postponed.
  • A dedicated GitHub account for the API token.
  • No legal review is planned. The terms, privacy policy and takedown process will be written without one, which leaves GDPR, the EU Digital Services Act and the use of “GTA” in the domain as accepted risks.