DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to add a new place to the yard simulation with Factory

Follow the repo's folder layout to add a new building or area to the isometric world.

Short answer: Read the 'How the code is laid out' table and identify the folder for the new place, usually yard/world/ for static parts and yard/sim/ for moving ones; then use the Part, Path and corridor graph helpers in yard/kernel/ to draw and route the new place; register the new place in yard/index.ts, which builds everything in a fixed order. All steps.

Who it is forA developer who wants to extend the town with a new place, such as a new district, and needs to know which folders hold the engine and the simulation.

The problemThe codebase is split into kernel, models, world and sim folders, and a change in the wrong place can break the fixed build order.

The outcomeA new place added in the correct folder with its own card, built and running in the local dev server.

What you need first

  • Node.js 20 or later with npm
  • A terminal and a web browser
  • Git, if you plan to clone the repo and change its code

Steps

  1. Read the 'How the code is laid out' table and identify the folder for the new place, usually yard/world/ for static parts and yard/sim/ for moving ones.
  2. Use the Part, Path and corridor graph helpers in yard/kernel/ to draw and route the new place.
  3. Register the new place in yard/index.ts, which builds everything in a fixed order.
  4. Run npm run dev and click the new place to check that its card shows.
  5. Run npm run build to confirm the change compiles into out/.

Prompt for your agent

In the repo Khalidabdi1/factory, add one new static building under yard/world/ and register it in yard/index.ts, then run `npm run build`. Verify that the build finishes without errors and that the new building appears when `npm run dev` runs.

Caveat. The README does not document an API for adding places, so the steps depend on reading the code and matching the existing patterns.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for Khalidabdi1/factory and "Add a new place to the yard simulation"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer