ai-town
AI Town is an MIT-licensed deployable starter kit for building and customizing your own virtual town. In AI Town, AI characters live, chat, and socialize. The project is inspired by the paper "Generative Agents: Interactive Simulacra of Human Behavior," and its main goal is to provide a platform with a robust foundation that is easy to extend. Its backend natively supports shared global state, transactions, and a simulation engine, making it suitable for scenarios ranging from simple projects to scalable multiplayer games. The second goal is to provide a JS/TS framework. Installation methods support cloud, local, Docker, and more. LLMs such as Ollama, OpenAI, Together.ai, and others can be configured. It includes a game engine, database, and vector search (Convex), optional authentication (Clerk), with the default chat model llama3 and embedding model mxbai-embed-large. Local inference supports Ollama and also other OpenAI-compatible APIs. Background music generation uses Replicate (MusicGen), and pixel art generation uses Replicate and Fal.ai. All interactions, background music, and rendering are powered by PixiJS.