How tr4shcanwesha/obake-os works
Purpose and Runtime
OBAKE-OS is a static, browser-run retro operating-system interface built for the GDG Tech Hunt. It uses vanilla HTML, CSS, and JavaScript; no build system, backend, or service integration is described. The deployable entry document is index.html, runnable directly or through a static server.
Bootstrap and Asset Composition
index.html assembles the desktop shell and loads global OS assets plus application assets. The core runtime is loaded from script.js and global presentation from style.css; the bundled Wordle app is included through wordle/wordle.js and wordle/wordle.css. New applications are expected to be added as separately loaded directories rather than folded into the core script.
Core OS Shell
The primary OS implementation is script.js. It owns reusable desktop-level behavior: desktop/icon interactions, taskbar, Start menu, window lifecycle and management, virtual filesystem behavior, message boxes, and shared utilities. This file is the boundary between generic OS capabilities and individual applications.
Grounding paths:
• script.js
• index.html
• style.css
Window and Application Integration Boundary
Applications should invoke shared OS APIs—explicitly including addDesktopIcon(...), openWindow(...), and showMessageBox(...)—to appear as first-class desktop applications. This establishes a control flow in which user actions on desktop or menu UI enter the OS layer, which creates/manages a window, then hosts or coordinates application-specific behavior. Application logic should not be added to script.js unless it is reusable OS functionality.
Grounding paths:
• script.js
• index.html
• wordle/wordle.js
Application Module: Wordle
Wordle is the current dedicated application module. Its behavior is isolated in wordle/wordle.js, while its visual rules are isolated in wordle/wordle.css. It is expected to reuse the global OS/window integration rather than independently recreating desktop chrome. This module demonstrates the intended extension model for future apps such as Browser, Terminal, Mail, or File Explorer.
Grounding paths:
• wordle/wordle.js
• wordle/wordle.css
• script.js
Presentation Layers
Styling is split by architectural scope: style.css provides the visual language for the desktop OS shell and shared components, while wordle/wordle.css contains application-specific styling. This prevents individual apps from coupling their presentation directly to global OS styles.
Grounding paths:
• style.css
• wordle/wordle.css
• index.html
Deployment and Operational Constraints
The project is served as static files, with a live Vercel deployment referenced by the README. Development is directed to the development branch before merge to main. Hunt-specific logic and clues are intended to remain separate from reusable OS features, preserving the core runtime as a general application platform.
Grounding paths:
• README.md
• index.html
• script.js
Main entry points: script.js OS runtime · index.html Entry document · wordle.js Wordle logic · style.css OS styles
Components 12
OS Shell
Reusable desktop platform.
- OS runtime · Desktop, taskbar, menus, windows, filesystem, and dialogs.
script.js - OS styles · Desktop visual language and shared components.
style.css - Desktop and menus
script.js - Window manager · Creates and manages application windows.
script.js - Application APIs · Includes addDesktopIcon, openWindow, and showMessageBox.
script.js - Virtual filesystem
script.js
Wordle App
Dedicated application module.
- Wordle logic · Isolated application behavior.
wordle/wordle.js - Wordle styles · Application-specific visual rules.
wordle/wordle.css
Other components
- Static hosting · Serves the repository as static files.
- Entry document · Assembles the desktop shell and application assets.
index.html - Future app modules · Separate application directories reuse OS APIs.
- Project guidance · Documents deployment and branch workflow.
README.md
Connections 17
- Static hosting → Entry document: serves
- Entry document → OS runtime: loads
- Entry document → OS styles: loads
- Entry document → Wordle logic: loads
- Entry document → Wordle styles: loads
- OS runtime → Desktop and menus: implements
- OS runtime → Window manager: implements
- OS runtime → Application APIs: exposes
- OS runtime → Virtual filesystem: implements
- OS styles → Desktop and menus: styles
- Desktop and menus → Application APIs: user actions enter
- Application APIs → Window manager: opens and coordinates
- Wordle logic → Application APIs: uses
- Window manager → Wordle logic: hosts
- Wordle styles → Wordle logic: styles
- Future app modules → Application APIs: reuse
- Project guidance → Static hosting: documents deployment