Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

i built a gta 6 cheat site you can use from the ps5 browser with a controller

gta 6 came out this week and every cheat list i found was a 2 MB page full of ads that's painful to read on a phone, and basically unusable from the console's own browser. so i made vice6.codes, a list of every gta 6 che

gta 6 came out this week and every cheat list i found was a 2 MB page full of ads that's painful to read on a phone, and basically unusable from the console's own browser. so i made vice6.codes, a list of every gta 6 cheat that's meant to be used with a controller in your hand.

some stuff i learned building it:

no framework, no bundler, no dependencies

the whole site is one json file (data/cheats.json) and a node script that turns it into plain html. no react, no build tool, npm install installs nothing. the home page is about 17 KB gzipped and there's no web font, no third-party script, no tracking cookies.

a code only gets marked "confirmed" when 3 independent guides list the same sequence, and the build fails if the data breaks a rule (like a "not found" cheat that somehow has a code).

controller navigation in console browsers

this was the hard part. the ps5 and xbox browsers do give you a cursor, but it's slow. what works better:

  • spatial navigation: the d-pad / arrow keys move focus to the nearest element in that direction, measured with getBoundingClientRect(), instead of tab order
  • gamepad api: square / x focuses search, triangle / y switches ps5 and xbox buttons, L1 / R1 cycle categories
  • big focus rings, and 44px targets everywhere

the browser's user agent says PlayStation or Xbox, so the page switches to controller mode before first paint.

real button glyphs without images

the d-pad, face buttons and bumpers are one inline svg sprite, generated at build time. each code renders as <use> references, so 60+ cards of button sequences cost almost nothing, and the ps5/xbox toggle just swaps which symbols the page shows.

small seo things that mattered

  • page dates come from the data, not the build time. if your sitemap says every page changed on every deploy, google learns to ignore it
  • meta descriptions get trimmed to whole sentences under 160 characters
  • llms.txt and a public cheats.json so ai assistants and bots can read the list without scraping
  • an RSS feed of new codes, for discord bots

if you play gta 6, the list is at vice6.codes. 19 of 61 codes are known so far. if you've built anything for console browsers i'd love to hear what you ran into.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.