Skip to content
masaruszPublic

About

Wcupedia (ワールドカップペディア) — a kid-friendly Japanese encyclopedia of every men's football World Cup, 1930–2026: tournaments, knockout charts, matches, goals and players.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

41 Commits

Folders and files

Repository files navigation

Wcupedia(ワールドカップペディア)

Wカップ大図鑑 — a kid-friendly encyclopedia of every men's football World Cup, 1930–2026, in Japanese: tournaments, knockout charts, matches, goals and players. Built for two children (aged 8 and 10) to browse on an iPad.

Live site: https://masarusz.github.io/wcupedia/

A static site: no accounts, no tracking, no server.

Status: v1.3.2 complete. The site covers every tournament and match, countries, players and squads, search and rankings, records, and a dedicated Japan feature.

Features

  • Every tournament from 1930 to 2026: podium, top scorers and awards, group tables, and a TV-style knockout chart (final in the centre, both halves of the draw joined by lines) that can be stepped through round by round.
  • Every match: score with extra time and penalty shoot-outs, and a goal timeline marking penalties and own goals.
  • Japanese player names: Japan's players in kanji, other players in katakana with the Latin name in brackets, Latin only when no katakana is known.
  • 今日は何の日: matches played on today's month and day, shown only when today has a match, plus players born on today's date.
  • 記録: biggest wins, highest-scoring matches, hat-tricks and penalty shoot-outs.
  • 日本代表特集: Japan's World Cups, all 29 matches, leading scorers and squad links for every appearance.
  • iPad-first layout with no horizontal scrolling; the knockout chart stacks its two halves when the screen is narrow.

Data

The files in public/data/ are generated from:

Source Years License
Fjelstul World Cup Database v1.2.0, © 2023 Joshua C. Fjelstul, Ph.D. 1930–2022 CC BY-SA 4.0
openfootball/worldcup.json 2026 CC0 1.0
Japanese Wikipedia squad pages and article titles (player names in Japanese) 1950, 1990–2026, plus article titles CC BY-SA 4.0
FIFA men's ranking, transcribed from English Wikipedia's data module and cross-checked against the Japanese article 20 July 2026 release CC BY-SA 4.0
Japanese Wikipedia「サッカー日本代表のチーム別対戦成績」 Through 24 September 2026 CC BY-SA 4.0

Modifications: the sources are filtered to men's tournaments, combined by year, re-keyed, given Japanese names, and restructured into per-tournament JSON. The generated data is therefore distributed under CC BY-SA 4.0 — see DATA-LICENSE.md. Flags: flag-icons (MIT) and public-domain historical flags from Wikimedia Commons. Code is MIT — see LICENSE.

Development

Node.js 24 or later. No package dependencies.

node tools/fetch-sources.mjs     # download the pinned sources into .cache/sources
node tools/build-data.mjs        # generate public/data (deterministic)
node tests/run.mjs               # run the test suite
node tools/diff-sources.mjs      # cross-check the two match sources (reports/)
python3 -m http.server 4182 --directory public   # serve locally

Deploy

./scripts/deploy.sh --dry-run    # show what would be published
./scripts/deploy.sh              # publish public/ to gh-pages and verify the live site
./scripts/deploy.sh --verify-only  # re-check the published site without publishing

Only allowlisted files from public/ are published. The script refuses to deploy on a failing test suite and checks that the published branch contains exactly the allowlist. It then verifies every file in the gh-pages tree against public/ by git hash, and waits for the GitHub Pages API to report the pushed commit as built (this needs gh logged in). Finally it fetches a few live samples by checksum and confirms that unpublished paths return 404, retrying when GitHub rate-limits. Exit codes: 0 Deploy verified, 1 DEPLOY FAILED, 3 DEPLOY UNVERIFIED (rate-limited).

Changelog

v1.3.2 — 2026-11-19

  • FIFAランキング updated to the 18 November 2026 release (was 7 October 2026). The next release is due on 16 December 2026.
  • Spain's points (rank 1): English Wikipedia says 2004.48, Japanese Wikipedia says 2004.08. FIFA's ranking API gives 2004.484416, so 2004.48 is used.
  • Switzerland, Indonesia and North Korea are shown as unchanged: English Wikipedia still carried their October movement, but FIFA's API confirms each kept its rank.
  • The FIFA ranking tests now take their dates from the oracle file, so a routine refresh no longer needs a test edit.

v1.3.1 — 2026-10-08

  • FIFAランキング updated to the 7 October 2026 release (was 20 July 2026). The next release is due on 18 November 2026.

v1.3.0 — 2026-09-29

  • FIFAランキング now shows Japan's all-time record against each country — every international A-match, not only World Cup matches — for the 111 countries Japan has played, as of 24 September 2026.

v1.2.1 — 2026-09-29

  • FIFAランキング shows the change since the last ranking as +3 in green or −2 in red, instead of ▲▼.

v1.2.0 — 2026-09-28

  • FIFAランキング now shows Japan's World Cup record against each country it has played there, and Côte d'Ivoire links to its country page.

v1.1.0 — 2026-09-27

  • FIFAランキング in the ranking menu: all 211 men's national teams from the 20 July 2026 release, with points and the movement since June. Countries with a page in this site link to it.

v1.0.1 — 2026-09-13

  • 今日は何の日 now appears only on days that actually have World Cup matches, instead of showing the nearest other date.
  • New 今日誕生日の選手 on the home page: the World Cup players born on today's date, with their photo and birth year.

v1.0.0 — 2026-09-13

  • 今日は何の日 on the home page: the World Cup matches played on today's date, or the nearest date that has any.
  • 記録 (records): biggest wins, highest-scoring matches, hat-tricks and penalty shoot-outs, each linking to the match.
  • 日本代表特集: every World Cup Japan reached, all of Japan's matches and its scorers.

v0.5.4 — 2026-09-12

  • More of the interface is written in kanji rather than kana (生まれ, 戻る, 始まり, 読み込み, 探す, 含む, 全て), for readers who know 小6–中1 kanji.

v0.5.3 — 2026-09-12

  • Ages are written with the kanji 歳 (17歳) instead of the kana さい.

v0.5.2 — 2026-09-12

  • Player photos for 4,929 players, up from 3,760. The remaining photos of players from the 1930s to the early 1980s have now been downloaded and reviewed: coverage of those tournaments rises from 9% to 43%.
  • Photos for the 1986 World Cup onwards are complete.

v0.5.1 — 2026-09-12

  • Player photos for 3,760 players, up from 67: every player whose English or Japanese Wikipedia article has a freely licensed lead photo with one clearly detectable face. Players without one keep the silhouette card. Every photo is credited to its photographer with its licence and a note that it was cropped and resized.
  • Photos of players from the 1986 World Cup onwards are complete; earlier tournaments follow once their photos have been downloaded and reviewed.

v0.5.0 — 2026-09-11

  • 選手名鑑 (player guide): pick a World Cup, then a country, then browse its players as cards with photo, shirt number and position, age at that World Cup, club (from the 1950 and 1990–2026 squad lists on Japanese Wikipedia) and World Cup goals and matches. Filter by position; each card opens the player page.
  • Player photos: freely licensed photos from Wikimedia Commons (CC0, public domain, CC BY, CC BY-SA), cropped around the face and self-hosted as small WebP images without metadata. Each photo is credited on the player page and on a photo credits page. Players without a suitable photo get a silhouette with their shirt number. This release includes the photos reviewed so far; more follow in a later update.
  • Recent first: every list spanning several World Cups now shows the most recent first (country results, matches against an opponent, player awards, tournaments in search results, the 名鑑 tournament picker).
  • Tournament and country pages link to their 選手名鑑.

v0.4.1 — 2026-09-11

Changes from the children's first session on the iPad.

  • 「‹ もどる」 back button in the header, because the Home Screen web app has no browser back button. It returns to the previous page, or to the natural parent when a page was opened directly.
  • Player ages: birth date on the player page, the age at each World Cup (on the tournament's opening day), and new rankings for the youngest and oldest players in a World Cup squad. One wrong source birth date is corrected, and the build now refuses impossible ages.
  • Countries on the match page, podium, host list and group tables link to their country page.
  • Group tables fit iPad portrait with all columns visible, including 勝ち点.
  • Player pages list the most recent World Cup first, headed with the full tournament name (e.g. 2018年 ロシア大会).

v0.4.0 — 2026-09-11

  • Search (検索): one box, in the menu and at the top of the home page, that finds countries, players and tournaments from hiragana, katakana, kanji or Latin letters. Results update while typing without disturbing Japanese input, and going back from a result restores the search.
  • Results are ranked for "tap the first one": exact names first, then surname or given name, then names that start with or contain the query. Near-miss spellings (a missing small っ or ー, as in えむばっぺ for エムバペ) are found after exact matches, and a few nicknames are known (にっぽん, くりろな). Tournaments are also found by host country.
  • The search index loads only when a search box is first used.

v0.3.0 — 2026-09-11

  • Country list (国), grouped by region (Asia, Europe, South America, North and Central America and the Caribbean, Africa, Oceania).
  • Country pages: overall record, result at every World Cup, head-to-head record against every opponent with the matches between them, and the country's top scorers. Former teams (West Germany, Soviet Union, Yugoslavia, Czechoslovakia, Zaire, Serbia and Montenegro) keep their own pages and count towards their successor, following FIFA.
  • Player pages: every World Cup with shirt number and position, goals with links to their matches, awards, and matches played (recorded from 1970; players from earlier World Cups show no count rather than a partial one).
  • Rankings (ランキング): countries by titles, appearances, wins and goals; players by career goals, goals in one tournament, awards, World Cup squads and matches played. Penalty shoot-outs count as draws, as FIFA counts them.
  • Player names link to player pages across the site.
  • Data: 2026 late squad replacements (e.g. Shuto Machino for Wataru Endo) and the 2026 Silver and Bronze Ball and Boot winners added; 2026 line-ups resolved to players.

v0.2.12 — 2026-09-11

  • Soccer-ball app icon for "Add to Home Screen" on iPad, generated by scripts/generate_icon.py (Pillow), plus a web app manifest and iPad web-app meta tags so the site opens full screen from the Home Screen.
  • Soccer-ball mark next to the Wcupedia title in the header.
  • Podium rows aligned in fixed columns; more space above the awards; compact one-row header title; podium and awards panels stack on iPad portrait.
  • README rewritten in English.

v0.2.11 — 2026-09-11

First public release on GitHub Pages.

  • Data: all 23 tournaments, 1,068 matches and 3,028 goals generated as verified JSON.
  • Japanese text normalisation (kana, full/half width, accents) and a furigana markup parser (readings are kept in the data for kana search and not displayed).
  • Pages: home (all 23 tournaments), tournament (results, top scorers, awards, group tables, knockout chart), match (score, extra time, penalties, goal timeline) and credits.
  • iPad layout; flags (flag-icons MIT, historical flags public domain).
  • TV-style knockout chart with round-by-round states ("before any match" through "after the final"); the two halves stack when the screen is narrow, with team names at 14 px or larger and no horizontal scrolling.
  • Knockout stage shown above the group stages.
  • Player names: Japan's players in kanji, other players as katakana (Latin), Latin only when no katakana is known.
  • Top scorers and awards: award names and goal counts shown as coloured labels, distinct from player names.

About

Wcupedia (ワールドカップペディア) — a kid-friendly Japanese encyclopedia of every men's football World Cup, 1930–2026: tournaments, knockout charts, matches, goals and players.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages