WorldX: generating an AI-driven world from one sentence, and what it takes to run it locally
One sentence creates an AI-driven world - generate maps, characters, and watch stories emerge on their own.
At a glance
- What is it?
- WorldX is a TypeScript and Node.js project that turns a one sentence prompt into a map, characters and a running simulation. Running it means managing four separate model roles, a narrow Node version window and proxy quirks, and the project calls itself Alpha.
- Who is it for?
- WorldX suits developers who already hold an LLM API key and are happy to run an Alpha project from a git clone. It is a poor fit if you need a packaged release, if your Node is older than 22.13, or if you cannot get Node.js traffic through your proxy; check the Node version and the SIMULATION_ lines before anything else.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 40 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- YGYOOO/WorldX1,640 ★ · +171
| Repository | 2026-09-10 | 2026-11-22 |
|---|---|---|
| YGYOOO/WorldX | 1.5k | 1.6k |
171 Stars in the last 73 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Built-in SQLite narrows Node to 22.13 or newer, with a hole in the middle
WorldX stores simulation state with the SQLite module that ships inside Node, node:sqlite, so installing dependencies never compiles a native module. The price is a strict version window. The engines field in package.json reads >=22.13 <23 || >=23.4, and the README spells out what that excludes: 22.5 through 22.12 and 23.0 through 23.3 do not work, because node:sqlite was still behind the --experimental-sqlite flag in those releases. Node 24 LTS is the suggested choice.
The consequence is that an ordinary Node 22 install from a year ago may fail even though it is a 22.x release. Check node --version before cloning anything. The root postinstall script then runs npm install in four folders, client, server, orchestrator and generators, so a single npm install at the top pulls dependencies for all four packages. The root package itself is marked private at version 0.1.0, so this is a project you run from a clone rather than a package you add to another codebase.
The quick path needs only the SIMULATION_ model, because two worlds are pre-generated
The cheapest way to see WorldX working skips world generation altogether. Two pre-generated worlds ship with the repository, so you only need to configure the model that drives runtime character behaviour.
git clone https://github.com/YGYOOO/WorldX.git
cd WorldX
cp .env.example .env
# 编辑 .env —— 只填 SIMULATION_* 三行即可
npm install
npm run devThe three lines are SIMULATION_BASE_URL, SIMULATION_API_KEY and SIMULATION_MODEL. After that you open http://localhost:3200, pick one of the built-in worlds and press play. The .env.example comment says the simulation role powers decisions, dialogue and memory, and that any model works, with a cheap one such as gemini-2.5-flash named as fine.
What this path cannot do is create anything new. The create page at /create calls the orchestrator, image and vision roles, which are empty in this setup. If you stop here you can only watch and poke the two bundled worlds.
Creating your own world means filling four independent model roles
Full creation uses four model roles, each configured on its own with a prefix: ORCHESTRATOR_ designs the world structure, characters and rules and wants a stronger reasoning model; IMAGE_GEN_ generates map art and character portraits; VISION_ reviews map quality and locates regions and elements, so it needs a multimodal model; SIMULATION_ drives runtime behaviour. Except for image generation, which can use Google's native image API, every role speaks the OpenAI compatible chat/completions protocol.
Each role takes the same three variables.
{ROLE}_BASE_URL=https://openrouter.ai/api/v1 # API 地址
{ROLE}_API_KEY=sk-or-v1-xxxx # API Key
{ROLE}_MODEL=google/gemini-3.1-pro-preview # 模型标识Once all four are filled, npm run dev serves http://localhost:3200/create, or you can skip the browser.
npm run create -- "赛博朋克风格的深夜拉面馆,黑客和仿生人在这里交换情报"Because the roles are separate, you can mix providers: Google AI Studio for design and art, and a cheaper vendor such as DeepSeek for the high frequency simulation calls. The cost is four sets of credentials to keep consistent.
IMAGE_GEN_PROVIDER decides whether Google image generation works at all
The image role has one extra switch. IMAGE_GEN_PROVIDER accepts openai-compatible, which is the default and suits OpenRouter, or google-native, which is required for Google AI Studio image generation. The two example configurations show the difference. On OpenRouter the base URL is https://openrouter.ai/api/v1 with provider openai-compatible and the model google/gemini-3.1-flash-image-preview. On Google AI Studio the base URL is https://generativelanguage.googleapis.com/v1beta/openai with provider google-native and the model gemini-3.1-flash-image-preview.
If you point the image role at Google while leaving the provider on its default, the request goes to the wrong protocol, so set the variable explicitly. The README also gives a model warning: nano banana2, meaning gemini-3.1-flash-image, is the suggested image model, while gpt-image-2 draws a nicer style but follows instructions less well and, in this project, causes various problems that hurt the final result. The Google AI Studio route is marked as having a free quota, which is the only cost hint given for any platform.
Browser works but Node fails: the proxy trap behind fetch failed and ETIMEDOUT
The most specific troubleshooting section in the README concerns proxies. If a browser can reach OpenRouter or Google AI Studio but npm run dev or world creation reports This model is not available in your region, fetch failed or ETIMEDOUT, the usual cause is that the browser goes through your proxy while the Node.js process does not.
The first suggestion is to enable TUN, virtual network card or global transparent proxy mode in your proxy software. If that is not available, find the local port on macOS first.
scutil --proxyThen read the HTTPPort and HTTPSPort values and export them before starting the project, replacing 7890 with your own port.
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
export ALL_PROXY=socks5://127.0.0.1:7890
npm run devThe consequence of skipping this is that every model call fails at the network layer, long before any model quality question matters. The scutil command is macOS specific, so on another system you need to find the proxy port by other means.
Four packages share one repository, and three scripts run the art pipeline by hand
The layout explains why a single npm run dev starts two servers. The client is served on http://localhost:3200 and the server on http://localhost:3100. The orchestrator folder holds the world designer and config generator, with a design-world.md prompt template and an index.mjs pipeline entry that turns one sentence into a world. The generators folder splits map generation, described as multi step with a review loop, from character portrait generation, which includes background removal. The server folder is the simulation engine on Express and SQLite, with a WorldManager, a CharacterManager, a SimulationEngine, a DecisionMaker and a DialogueGenerator.
The root scripts expose the pieces separately: dev:server, dev:client, stop, generate:map, generate:character, demo:region-overlay and compare:models. That last one is useful because the four roles make model choice a real decision. The project structure section in the README is cut off partway through, so the full folder tree is best read from the repository itself.
Alpha status, no releases and what that costs you
The README states that the project is in Alpha: the core works and is being tuned. The repository has no GitHub releases and the package version is 0.1.0, so there is nothing to pin to except a commit. The last push to main was on 2026-10-14, which is recent, but with no tags a pull can change behaviour between two sessions without any version marker.
The feature list promises a lot: AI generated maps and characters rather than template assembly, characters that remember and form behaviour patterns, simulation across several day and night cycles, multiple timelines for one world, a god mode for broadcasting events, editing character personas and memories and holding hypothetical conversations, and Chinese and English support. None of that tells you how long a run costs, because cost depends on the provider you choose for each of the four roles and the README gives no figure. The project is MIT licensed, and the Chinese hosting mirror on AtomGit is mentioned for faster access from mainland China.
Editorial conclusion
WorldX suits developers who already hold an LLM API key and are happy to run an Alpha project from a git clone. It is a poor fit if you need a packaged release, if your Node is older than 22.13, or if you cannot get Node.js traffic through your proxy; check the Node version and the SIMULATION_ lines before anything else.
Frequently asked questions
What Node.js version does WorldX need?
WorldX needs Node.js >=22.13 <23 or >=23.4. Versions 22.5 to 22.12 and 23.0 to 23.3 do not work because node:sqlite was still behind the experimental flag.
Do I need all four model keys to try WorldX?
No. The two built-in worlds run with only the three SIMULATION_ lines filled in .env. Creating a new world with npm run create needs all four model roles configured.
Why does WorldX report fetch failed or ETIMEDOUT?
Usually the browser reaches the model provider through a proxy while the Node.js process does not. Enable TUN mode in your proxy software or export HTTP_PROXY, HTTPS_PROXY and ALL_PROXY before npm run dev.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ygyooo-worldx)Star history chart for your README
[](https://hysenlabs.com/projects/ygyooo-worldx)Was this useful?