explaingit

theusefulnerd/shopkeeper-ai

0CSSAudience · developerComplexity · 4/5ActiveSetup · hard

TLDR

Planned retro pixel-art game where eight LLM and deterministic agents run a shop, and the player can swap between customer and shopkeeper roles mid-session.

Mindmap

mindmap
  root((ShopKeeper-AI))
    Inputs
      Player chat
      Walk-in orders
      Inventory state
    Outputs
      Agent decisions
      Live dashboard
      Simulated UPI payments
    Use Cases
      Demo multi-agent design
      Learn LangGraph patterns
      Roleplay a shopkeeper sim
    Tech Stack
      LangGraph
      FastAPI
      Supabase
      Phaser
      Groq

Things people build with this

USE CASE 1

Study a worked example of a LangGraph multi-agent system with mixed LLM and deterministic agents

USE CASE 2

Prototype a game where AI NPCs run a shop and a human can drop into any role

USE CASE 3

Learn how to wire FastAPI WebSockets to a Phaser 3 front end with live agent state

USE CASE 4

Use the structured-state-only agent communication pattern as a template for your own crew

Tech stack

LangGraphFastAPISupabaseRedisReactPhaserGroq

Getting it running

Difficulty · hard Time to first run · 1day+

Project is design-only with no build yet; standing it up needs LangGraph plus Supabase, Upstash, Groq, and a Phaser front end before anything runs.

In plain English

ShopKeeper AI is a planned project that wraps a multi-agent AI system inside a retro pixel-art game. The README is upfront that the work is still in development: the design and architecture are done, and the build phase has not started yet. The idea is that a small shop is run by eight software agents who handle sales, inventory, payments, and fulfillment, while a human player can drop into the world from either side of the counter. As the customer, you wake up at home, open an in-game phone, chat with a Sales Agent, walk to the store, and check out. As the shopkeeper, you stand behind the counter and watch both walk-in customers and online orders on a live dashboard that shows what every agent is doing and why. You can swap roles mid-session, and whichever character you leave behind keeps running on its own. There are eight agents listed in a table. Some are powered by a large language model, including the Sales Agent that orchestrates conversations, a Recommendation Agent, a Supplier Agent that watches demand and suggests restocking, and a Post-Purchase Agent for returns and complaints. Others are plain deterministic code, including Inventory, Payment (a simulated UPI state machine), Fulfillment, and a Loyalty and Offers agent. The README notes that agents only talk to each other through a small structured state object, never through natural language. The planned stack uses LangGraph for agent orchestration, FastAPI with WebSockets for the API, Supabase Postgres for storage, Upstash Redis for cache, LangSmith and OpenTelemetry for tracing, Groq as the LLM provider, and a React plus Phaser 3 frontend deployed on Vercel and Render. The README does not state a license.

Copy-paste prompts

Prompt 1
Sketch the LangGraph node and edge layout for the 8 ShopKeeper-AI agents based on the README design
Prompt 2
Implement the Inventory and Payment deterministic agents in ShopKeeper-AI as Python classes that mutate the shared state object
Prompt 3
Build the live shopkeeper dashboard in React that subscribes to ShopKeeper-AI agent updates over FastAPI WebSockets
Prompt 4
Replace the Groq LLM provider in ShopKeeper-AI with a local Ollama model for the Sales Agent
Open on GitHub → Explain another repo

Generated 2026-05-22 · Model: sonnet-4-6 · Verify against the repo before relying on details.