655d3e83cde2528da66a9d316856f90a19e849f4
Build & Deploy / build-and-deploy (push) Successful in 53s
Root cause: Dosbox.conf was missing the [sdl] section with 'usescancodes=true' — without it DOSBox doesn't translate keyboard scan codes and WASD keys don't register as game input. Fix: - Generate a complete dosbox.conf matching js-dos v8 standards (all sections: sdl, dosbox, cpu, mixer, render, midi, sblaster, gus, speaker, joystick, serial, dos, ipx, autoexec) - Key setting: usescancodes=true + mapperfile=mapper-jsdos.map - Uses svga_s3 machine type with SB16 audio (same as dos.zone) Bonus: Auto-detect Doom-engine games (DOOM.WAD / DOOM2.WAD) and inject a DEFAULT.CFG with WASD controls: W=forward, S=backward, A=strafe-left, D=strafe-right Arrows=turn, Ctrl=fire, Space=use, Alt=strafe, Shift=run Mouse enabled for looking Note: Existing uploaded games still have the old dosbox.conf. They need to be re-uploaded to get the fix.
Dostalgia — Quarkus Edition
A nostalgic DOS game hub. Upload your old DOS games, scrape artwork, and play them directly in the browser via js-dos (WebAssembly DOSBox).
Quick Start
# Build and run with Docker
docker build -t dostalgia .
docker run -p 8765:8765 -v $(pwd)/data:/data dostalgia
Development (without Docker)
Terminal 1 — Frontend dev server:
cd frontend && npm install && npm run dev
Terminal 2 — Quarkus dev server:
mvn quarkus:dev
Open http://localhost:5173 (Vite proxies API calls to Quarkus on port 8765)
Production build (local)
cd frontend && npm install && npm run build
mvn package -DskipTests
java -jar target/quarkus-app/quarkus-run.jar
Architecture
- Backend: Quarkus (Java 21, JAX-RS) — ~5 REST resource classes, zero database
- Frontend: Svelte 5 SPA with hash-based routing
- Emulation: js-dos v8 loaded from CDN, runs DOSBox in WebAssembly
- Storage: JSON-per-game under
/data/games/{id}/game.json
API
| Method | Path | Description |
|---|---|---|
| GET | /api/games |
List all games |
| GET | /api/games/:id |
Get game details |
| PATCH | /api/games/:id |
Update game metadata |
| DELETE | /api/games/:id |
Delete a game |
| POST | /api/upload |
Upload a game ZIP (multipart) |
| POST | /api/games/:id/cover |
Upload cover art |
| GET | /api/igdb/search?q= |
Search IGDB (placeholder) |
Game JSON Schema
{
"id": "doom",
"title": "Doom",
"year": 1993,
"genre": "FPS",
"developer": "id Software",
"bundle_type": "standard",
"bundle_file": "doom.jsdos",
"has_cover": true,
"ready": true
}
Languages
Java
62.2%
Svelte
24.7%
JavaScript
8.8%
CSS
3.4%
Dockerfile
0.5%
Other
0.4%