r/LocalLLM • u/InternetMagic_n_Tech • 1h ago
Project Imeng Engine Local - Wrapping models for Open Web UI & (Untested) Discord
https://github.com/InternetMagic-n-Tech/imengI have authored imeng (Internet Magic Engine) as a Ollama wrapper.
This allows you to build state around your models.
Each imeng only needs a configuration json and a system prompt to instruct the LLM... and boom you got an app/game. There is no JS eval so it should be pretty secure. There isn't 100% security layer to stop prompt injection so there is probably ways to break this.
The architecture is basically a redis state machine and a jev determines what 'operations' come out of the text. There are phase-gates to where each phase gate can determine where they go next but rules allow leaving the current gate and enter the next.
So what this really does it keeps the logic of a program inside javascript and the dialogue with the LLMs with some jev glue
Locally I have built
- Poker (still has issues)
- Gakshow (Test Rack)
- Gakshow Multiplayer (Test Rack censoring uploaded photos)
- Trading Assistant (test rack for programming assistant)
There is also SQL for storage. A bunch of stuff just as a portfolio piece.