LyalinDotCom/the-world — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a prototype called The World. I want it to feel like a small playable fantasy demo, but the real goal is a TypeScript SDK that lets game developers use a local Gemma model as the game brain without giving it full control.

The SDK should let a game define lore, NPC personalities, scene context, memory, safety rules, and structured recipes for things like NPC dialogue, ambient barks, overheard conversations, area events, threats, and fallback responses. The model can suggest dialogue, danger, emotions, and events, but the game must stay in charge of combat, health, inventory, rewards, quests, and permanent state.

Please include a playable Electron canvas demo where you can walk around, talk to NPCs, trigger generated events, see light combat and recovery, and choose which local runtime to use at startup, Ollama by default, plus oMLX and experimental LiteRT LM if available. Add diagnostics, warmup, cancellation, caching, schema validation, safe renderer to main process calls, and mock tests so it works even without a model.

Want more depth? Deep Reverse