Skip to main content

Overview

The games.json file contains the core data for all game countdowns. It stores information about version releases, patch notes, visual themes, and timing for each supported game.

File Location

src/data/games.json

Schema

The root object contains a single games array with game objects.

Root Object

games
Game[]
required
Array of game objects containing version countdown data

Game Object

Each game object in the games array has the following structure:

Complete Example

{
  "slug": "genshin-impact",
  "nombre": "Genshin Impact New Version Countdown",
  "version_actual": "6.4",
  "proxima_version": "6.5",
  "nombre_version_actual": "Homeward, He Who",
  "slogan_name": "Caught the Wind",
  "slogan_desc": "Varka is finally here",
  "fecha_inicio": "2026-02-24T01:30:00Z",
  "duracion_dias": 42,
  "banner_phase_I": "Columbina and Ineffa",
  "tema": "#4ade80",
  "imagen": "https://fastcdn.hoyoverse.com/content-v2/plat/162828/c50d8c6e2597e9f88a66e06c3c32c5c5_5184430120368326656.jpg",
  "patch_notes": "https://genshin.hoyoverse.com/es/news/detail/162806",
  "href": "/genshin"
}

Usage in Components

The game data is imported and used throughout the application:
import gamesData from "@/data/games.json";

const games = gamesData.games;

In GameCard Component

<GameCard
  title={game.nombre}
  current={game.version_actual}
  upcoming={game.proxima_version}
  imagen={game.imagen}
  fecha_inicio={game.fecha_inicio}
  duracion_dias={game.duracion_dias}
  tema={game.tema}
  href={game.href}
/>

Version Number Format

Version numbers follow a major.minor format:
  • Major version: Significant game updates
  • Minor version: Regular patch cycles (0-8)
When minor version reaches 8, it cycles to the next major version (e.g., 3.84.0). See the avanzarVersion() utility in src/utils/change-version.ts for version increment logic.

Build docs developers (and LLMs) love