How cooldude2349/offline-html-games-pack works
Purpose and distribution model
This is a static archive of 300+ self-contained browser games, intended to run without a network connection or under restricted browsing conditions. There is no application server, build system, package manifest, or shared runtime visible; each game is distributed as a standalone HTML artifact under offline/.
Primary game runtime
The game catalog is the system’s core boundary: opening an individual file loads that game directly in a browser, including its embedded HTML, JavaScript, CSS, and likely inlined assets. Representative entries: offline/2048.html, offline/amongus.html, offline/vex8.htm. Games are intentionally isolated rather than integrated through a common launcher or API.
Direct entry points
Users normally open a selected game file from offline/, locally via file:// after downloading/extracting the repository. epicviewer.htm appears to be a separate viewer entry point. Because files use both .html and .htm, catalog consumers must not assume one extension.
Browser-constrained import paths
Two standalone browser utilities support environments where direct local-file opening is blocked or inconvenient:
• file-input.html provides local user-file selection/import as an alternative launch boundary.
• single-file.html is a compact loader intended for pasting into online editors, fetching a game from the web, or importing user-supplied HTML.
These are client-side browser entry points; the user’s local file selection and browser security model are important operational boundaries.
Inlining and portability pipeline
The repository includes utilities for converting external-resource HTML into portable single-file documents. inline-tools/full_inliner.html, inline-tools/compressed.html, and inline-tools/convertfilestodatauris.py represent the inlining/conversion stage. Supporting JavaScript such as inline-tools/dataURI.js and inline-tools/rewriteurl2.js indicates handling for asset-to-data-URI conversion and URL rewriting.
Flow: source HTML/resources → inliner or Python converter → embedded/data-URI HTML → offline/<game>.html artifact. The resulting size increase is the stated tradeoff for offline independence.
Alternative embedding/integration methods
The methods/ directory contains environment-specific approaches for running or embedding content in external educational/code-hosting contexts, rather than being part of the offline game runtime. Paths include methods/code-org.html, methods/codehs.html, and methods/canvas.md.
External dependencies and infrastructure
Runtime infrastructure is primarily the user’s browser and local filesystem; the game files are designed to avoid required network services. Optional external services are distribution and fallback channels: GitHub repository/issues, online code editors, Google Drive, and Dropbox. Game suggestions enter through GitHub’s issue-template workflow at .github/ISSUE_TEMPLATE/game_request.md.
Main entry points: file-input.html File import launcher · single-file.html Single-file loader · 2048.html 2048 game · amongus.html Among Us game
Components 16
Browser entry points
Standalone pages opened directly by users.
- Epic viewer · Separate browser entry point.
epicviewer.htm - File import launcher · Lets users select local files when direct opening is restricted.
file-input.html - Single-file loader · Loads pasted, fetched, or user-supplied HTML.
single-file.html
Offline game catalog
Isolated portable game artifacts.
- 2048 game · Self-contained HTML game artifact.
offline/2048.html - Among Us game · Self-contained HTML game artifact.
offline/amongus.html - Vex 8 game · Self-contained HTM game artifact.
offline/vex8.htm - 300+ isolated games · Each catalog file embeds its own runtime and assets.
Portability pipeline
Tools that embed external resources into one HTML file.
- Full inliner · Embeds external resources into portable HTML.
inline-tools/full_inliner.html - Compressed inliner · Alternative compact inlining tool.
inline-tools/compressed.html - Data-URI converter · Converts file resources into embedded data URIs.
inline-tools/convertfilestodatauris.py - URI and URL rewriting · Supporting scripts resolve data URIs and rewritten references.
inline-tools/dataURI.js
External integration methods
Guides and embeds for third-party environments.
- Embedding methods · Environment-specific approaches outside the game runtime.
Other components
- User browser · Provides the client-side execution and security boundary.
- Local filesystem · Games are commonly opened through file:// after extraction.
- Game request template · Accepts game suggestions through GitHub issues.
.github/ISSUE_TEMPLATE/game_request.md - External distribution channels · GitHub, online editors, Google Drive, and Dropbox are optional fallbacks.
Connections 18
- Local filesystem → 300+ isolated games: contains/opened from
- 300+ isolated games → 2048 game: includes
- 300+ isolated games → Among Us game: includes
- 300+ isolated games → Vex 8 game: includes
- 2048 game → User browser: runs directly
- Among Us game → User browser: runs directly
- Vex 8 game → User browser: runs directly
- Epic viewer → User browser: opens in
- File import launcher → User browser: runs in
- Local filesystem → File import launcher: user selects files
- Single-file loader → User browser: runs in
- External distribution channels → Single-file loader: optional fetch/editor path
- Full inliner → 300+ isolated games: produces portable HTML
- Compressed inliner → 300+ isolated games: produces portable HTML
- Data-URI converter → 300+ isolated games: produces data-URI HTML
- URI and URL rewriting → Full inliner: supports conversion
- Embedding methods → External distribution channels: targets external environments
- External distribution channels → Game request template: GitHub issue workflow