idlebox is a TypeScript + Svelte playground for building incremental / idle games.
This repository is organized as a small monorepo with three main parts:
framework/ — a reusable game framework (logic, state, saves, tick loop, utilities)games/ — one or more incremental game projects built on top of the frameworkdocs/ — notes, design decisions, and documentationThe goal is to iterate on the framework and the games in parallel: games provide real use cases, and the framework evolves based on what is actually needed (instead of trying to design a generic engine upfront).
At the moment, this repo focuses on being simple to install, easy to run locally, and friendly for experimentation.
To work on this repository, you’ll need:
Follow these steps to get the repository running locally:
Clone the repository
git clone https://github.com/your-username/idlebox.git
cd idlebox
Install dependencies
npm install
This will install dependencies for all workspace packages (framework + games).
node -v
npm -v
Make sure Node.js and npm are correctly installed.
Within games directory:
npx sv create my-game
cd games/my-game
npm run dev -- --open