Huashu Design
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
Lets you talk to three game characters in a small town, played by a 4B model that downloads once and runs in your browser, with the model's decisions shown under every reply.
Rein-NPC playground is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download jmc0/rein-npc-playground --repo-type space --local-dir rein-npc-playground cd rein-npc-playground
Rein-NPC playground is a static web page that jmc0 published as a Hugging Face Space. It puts you in a small town with a shopkeeper, a field medic and the gate captain. You walk up to one of them and start a conversation. A 4B model called Rein-NPC-4B plays them, and it runs inside your browser.
Game developers and model researchers who want to watch a small model drive characters and tool calls, and curious people who want to talk to game characters without installing anything.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Game development | Game developers | Talk to the three characters and read the decisions shown under each reply | Seeing how a tool call changes gold or stock in a small town |
| Machine learning | Model researchers | Try the Rein-NPC-4B model through its page | Checking when the model decides a tool call is needed and when not |
| Web development | Front-end developers | Download the files and read the js folder | Studying how a model runs in a browser through WebAssembly and WebGPU |
Skip it if you want a full game or a chatbot with a server behind it, since this page is one small town.
The playground works in these places.
| Use case | Who | What they get back |
|---|---|---|
| Talk to a character | Anyone curious | A reply in character, with the decisions listed under it |
| Watch the town change | Game developers | Gold, stock, health, the gate and the guards updated by the tool results |
| Clear the cache | People short on disk space | The model files deleted from the browser, with the option to download them again |
Online use needs a browser and a connection for the first load. A local copy needs a few more things.
pip install -U huggingface_hub hf download jmc0/rein-npc-playground --repo-type space --local-dir rein-npc-playground cd rein-npc-playground
Online, open the Space's page, wait for the one-time model download and walk up to a character to talk. Under every reply the page lists the decisions the model made. With a local copy, go into the folder and open index.html in your browser.
cd rein-npc-playground
| Tool | What it does |
|---|---|
| js/config.js | Keeps every constant in one place |
| js/rein.js | Implements the decision protocol |
| js/chat.js | Builds the chat prompt, runs generation and reads tool calls out of the output |
| js/npcs.js | Defines the three characters and what their actions do in the game |
| js/game.js | Runs the town |
| js/model.js | Downloads the model, caches it and loads it |
| js/ui.js | Draws the panels |
| js/main.js | Connects the other files |
You walk up to the shop keeper and talk about buying something. The model first answers the character's rules, then writes the reply, and the page lists the decisions under it. A tool result can then change your gold or the shop's stock.
If you are new, open the page in Chrome or Edge, wait for the download to finish and talk to the field medic. Read the decisions under each reply to see what the model chose.
If you know the field, Rein-NPC-4B is built on Qwen3.5-4B, with Rein's decision model packed into the same file. It runs through wllama, which is llama.cpp built for WebAssembly and WebGPU. The same model answers the character's rules before it writes a line. It decides whether a tool is called and which one. It also checks whether someone is rewriting the character's name and whether a fact of the world is under attack. The page applies the answers the way a game would. It fills in the tool call, blocks a tool call when none is wanted, and when a rule fires it reminds the model of that rule's base. The Q4_K_M file is cut into four pieces under 1 GB each, because wllama needs files under 2 GB.
Everything runs in your browser, but the first load needs the network.
Lets you talk to three game characters in a small town, played by a 4B model that downloads once and runs in your browser, with the model's decisions shown under every reply.
Made by jmc0 on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.
What it is: Rein-NPC playground is a static web page that jmc0 published as a Hugging Face Space. It puts you in a small town with a shopkeeper, a field medic and the gate captain. You walk up to one of them and start a conversation. A 4B model called Rein-NPC-4B plays them, and it runs inside your browser.
Who it suits: Game developers and model researchers who want to watch a small model drive characters and tool calls, and curious people who want to talk to game characters without installing anything.
Industry | Who uses it | How they use it | Example
Game development | Game developers | Talk to the three characters and read the decisions shown under each reply | Seeing how a tool call changes gold or stock in a small town
Machine learning | Model researchers | Try the Rein-NPC-4B model through its page | Checking when the model decides a tool call is needed and when not
Web development | Front-end developers | Download the files and read the js folder | Studying how a model runs in a browser through WebAssembly and WebGPU
Skip it if you want a full game or a chatbot with a server behind it, since this page is one small town.
Where to use it: The playground works in these places.
Use case | Who | What they get back
Talk to a character | Anyone curious | A reply in character, with the decisions listed under it
Watch the town change | Game developers | Gold, stock, health, the gate and the guards updated by the tool results
Clear the cache | People short on disk space | The model files deleted from the browser, with the option to download them again
How to set it up: Online use needs a browser and a connection for the first load. A local copy needs a few more things.
pip install -U huggingface_hub
hf download jmc0/rein-npc-playground --repo-type space --local-dir rein-npc-playground
cd rein-npc-playground
How to use it: Online, open the Space's page, wait for the one-time model download and walk up to a character to talk. Under every reply the page lists the decisions the model made. With a local copy, go into the folder and open index.html in your browser.
cd rein-npc-playground
Tool | What it does
js/config.js | Keeps every constant in one place
js/rein.js | Implements the decision protocol
js/chat.js | Builds the chat prompt, runs generation and reads tool calls out of the output
js/npcs.js | Defines the three characters and what their actions do in the game
js/game.js | Runs the town
js/model.js | Downloads the model, caches it and loads it
js/ui.js | Draws the panels
js/main.js | Connects the other files
Example: You walk up to the shop keeper and talk about buying something. The model first answers the character's rules, then writes the reply, and the page lists the decisions under it. A tool result can then change your gold or the shop's stock.
For newcomers and experts: If you are new, open the page in Chrome or Edge, wait for the download to finish and talk to the field medic. Read the decisions under each reply to see what the model chose.
If you know the field, Rein-NPC-4B is built on Qwen3.5-4B, with Rein's decision model packed into the same file. It runs through wllama, which is llama.cpp built for WebAssembly and WebGPU. The same model answers the character's rules before it writes a line. It decides whether a tool is called and which one. It also checks whether someone is rewriting the character's name and whether a fact of the world is under attack. The page applies the answers the way a game would. It fills in the tool call, blocks a tool call when none is wanted, and when a rule fires it reminds the model of that rule's base. The Q4_K_M file is cut into four pieces under 1 GB each, because wllama needs files under 2 GB.
You walk up to a character and talk
The model answers the character's rules
The model writes the reply
The page applies the decisions to the town
Good to know: Everything runs in your browser, but the first load needs the network.
Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| Rein-NPC playground This page | 1 | static | apache-2.0 | |
| InferenceSupportShares static | 764 | static | afl-3.0 | |
| HuggyShares static | 463 | static | cc-by-nc-sa-4.0 | |
| Z-Image Lookalike LoRA IndexShares static | 189 | static | apache-2.0 | |
| Granite Docling 258M WebGPUShares static | 163 | static | apache-2.0 | |
| DINOv3 WebShares static | 162 | static | apache-2.0 |
alchaincyf · Skill
Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…
op7418 · Skill
Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.
alibaba · Kit
Reviews Git changes with an AI agent that reads files and searches the codebase, then writes comments tied to exact lines. It suits developers who want automat…