initial commit

This commit is contained in:
2026-04-02 19:52:26 +02:00
commit 9af250092d

38
CONTEXT.md Normal file
View File

@@ -0,0 +1,38 @@
# Project Context
## Concept
Interactive encyclopedia/learning app for the Primal Diet by Aajonus Vonderplanitz.
Graph-like structure as the primary navigation metaphor:
- Interactive human body map as entry point
- Body parts/systems → link to ailments
- Ailments → link to recipes
- Recipes → link to ingredients
- Ingredients → link to properties/details
## Content
Sourced from books by Aajonus Vonderplanitz. Curated by the owner only — no community editing, no authoring UI. All data hardcoded or loaded via config files, embedded in the binary at compile time.
## Deployment Targets
- Native executable (all data embedded in binary)
- Browser via WASM (same codebase, two build targets)
## UX Vision
Game-engine style — custom rendering, animations, smooth transitions, physics-based graph layouts. Not a traditional web UI.
## Tech Stack — Under Consideration
- **Raylib + C++ + Emscripten** — leading candidate. Mature WASM story, true native binary, lean output.
- **Raylib + Zig** — elegant `@embedFile` for data embedding, but friction between Zig's WASM target and raylib's Emscripten dependency.
- **Mach (Zig game engine)** — native + WASM via WebGPU, but pre-1.0 and still maturing.
- ~~Three.js + Electron~~ — discarded. Electron too heavy, sidesteps WASM.
## Constraints
- No widget toolkits — fully custom rendered
- No authoring UI — content is defined in code or config
- Same codebase must target both native and WASM