How neruvy/duckmath works
Purpose and Runtime
DuckMath is a static browser-games portal intended for deployment on GitHub Pages, Vercel, Cloudflare Pages, or another CDN-backed static host. The repository contains HTML, CSS, browser JavaScript, image assets, and one Python maintenance script; no backend, package manifest, serverless function, or game binaries are present in the supplied tree.
Primary Entry Points
• The public landing/catalog entry is index.html, with client behavior concentrated in assets/js/index.js.
• Game selection routes to the game player/catalog page at g4m3s/index.html, typically using a title query parameter.
• Site-wide browser initialization and reusable UI behavior are centered in assets/js/main.js and assets/js/app_functions.js.
• Fallback/loading entry documents are 404.html, g404.html, and loading.html.
Catalog and Game-Launch Boundary
The site’s key product flow is: visitor opens the homepage, browses/searches catalog UI, then navigates to g4m3s/index.html?title=<game>. The README describes games as HTML5/WebGL content or iframe wrappers, so the player page is the boundary between first-party static portal UI and externally hosted or embedded game content. Relevant paths: index.html, g4m3s/index.html, assets/js/index.js.
Shared Presentation and Client State
Common navigation, styles, and interaction code are delivered directly to the browser rather than compiled from a framework. assets/css/main.css and assets/css/topnav.css define shared presentation; assets/js/main.js and assets/js/app_functions.js provide cross-page behavior. This makes each HTML page independently deployable but requires shared assets to remain path-compatible across root and nested directories.
Community and Ranking Surface
Leaderboard presentation is a separate page/client module: leaderboard.html and assets/js/leaderboard.js, styled by assets/css/leaderboard.css. The README claims score submission, verification, authentication, coins, and seasonal progression, but the visible tree does not include their backend/API implementation. Treat Supabase, moderation workflows, image scanning, and transaction storage as external or undisclosed service boundaries rather than repository-owned components.
Access, Cloaking, and External Integrations
Browser-side cloaking and alternate-access features are represented by assets/js/ab-blank.js, more/tab-cloak.html, and proxy-related app pages under more/apps/ such as more/apps/ram2.html. The README also identifies third-party proxy backends and WidgetBot/Discord integration; these are external runtime dependencies configured or embedded by static pages, not local services in this tree.
Static Content, Discovery, and Operations
Informational and utility routes live as standalone documents, including about.html, links/index.html, and more/index.html. Search-engine exposure is controlled by robots.txt and sitemap.xml; advertising inventory is declared in ads.txt and supported by advertise.html. backup_classes.json is a repository data artifact, while duck-to-ducky.py is an offline Python utility, not part of the browser request path.
Main entry points: index.html Catalog landing · leaderboard.html Leaderboard page · tab-cloak.html Cloaking and alternate access · g4m3s/index.html Game player
Components 23
Static portal
Browser-delivered pages and shared assets.
- CDN static host · Serves independently deployable static files.
- Catalog landing
index.html - Catalog UI · Provides browsing and search behavior.
assets/js/index.js - Shared UI behavior
assets/js/main.js - UI helpers
assets/js/app_functions.js - Shared styles
assets/css/main.css - Top navigation styles
assets/css/topnav.css - Fallback and loading pages
404.html
Feature surfaces
- Game player · Receives the selected game through the title query parameter.
g4m3s/index.html - Leaderboard page
leaderboard.html - Leaderboard UI
assets/js/leaderboard.js - Leaderboard styles
assets/css/leaderboard.css - Cloaking and alternate access
more/tab-cloak.html - Blank-tab cloaking
assets/js/ab-blank.js - Proxy app pages
more/apps/ram2.html - Info and utility routes
more/index.html
External boundaries
Dependencies not implemented in this repository.
- Hosted game content · HTML5, WebGL, or iframe game content.
- Community services · Auth, scores, verification, coins, and seasons are undisclosed.
- Proxy and community integrations · Third-party proxy and WidgetBot/Discord services.
Discovery and maintenance
- Search discovery
robots.txt - Advertising inventory
ads.txt - Class backup data
backup_classes.json - Offline maintenance utility · Not part of the browser request path.
duck-to-ducky.py
Connections 22
- CDN static host → Catalog landing: serves
- CDN static host → Game player: serves
- CDN static host → Leaderboard page: serves
- CDN static host → Cloaking and alternate access: serves
- CDN static host → Info and utility routes: serves
- CDN static host → Fallback and loading pages: serves
- Catalog landing → Catalog UI: loads
- Catalog landing → Shared UI behavior: loads
- Catalog landing → UI helpers: uses
- Catalog landing → Shared styles: styles
- Catalog landing → Top navigation styles: styles
- Catalog UI → Game player: navigates with title
- Game player → Hosted game content: loads or embeds
- Leaderboard page → Leaderboard UI: loads
- Leaderboard page → Leaderboard styles: styles
- Leaderboard UI → Community services: depends on
- Cloaking and alternate access → Blank-tab cloaking: uses
- Cloaking and alternate access → Proxy app pages: links to
- Proxy app pages → Proxy and community integrations: connects to
- CDN static host → Search discovery: publishes
- CDN static host → Advertising inventory: publishes
- Offline maintenance utility → Class backup data: maintains