NewsCrawler.org

Imeng Engine Local: proxy that turns chat models into text games for Open WebUI

Imeng Engine Local: proxy that turns chat models into text games for Open WebUI
Dungeon Adventure in Open WebUI
Image: Reddit

Imeng is an Express server that sits between Open WebUI and Ollama and turns any chat model into a stateful text game, such as an RPG, a game show or interactive fiction. The project says LLMs are bad at remembering state, so the server keeps it: HP, inventory, who has left the game, standing rules and similar data. The model only narrates. After each turn the server updates the state and adds it to every prompt.

A game is a folder of files, and the system prompt[1] is the game itself. The repository includes three games: the default Dungeon Adventure in AD&D style, The Lighthouse (a 120-day horror about a sole keeper) and Backrooms (a quiet horror where the player describes what scares them). Several people can play one game at one table, and in production sessions can be stored in Redis.

Setup needs Node 22.9 or newer, Redis through Docker Compose and Ollama. In Open WebUI you add an OpenAI-compatible connection to http://localhost:3001/v1, and start Open WebUI with ENABLE_FORWARD_USER_INFO_HEADERS=true so each chat gets its own session. The post title notes that the Discord integration is untested.

Read the original github.comDiscussion

Sources

Published: First seen: Читать по-русски

Open as a page