Leonida Fieldnotes

Local development

Run Leonida on your computer

Use this guide to run the bridge-mind browser sandbox from its MIT-licensed source. You'll need Node.js, npm and a desktop browser. The hosted demo is the quickest route if you just want to drive.

1. Get the browser project

Download the source ZIP, extract it, and open a terminal in the folder containing package.json. To get the same files with Git, use these commands instead.

git clone https://github.com/bridge-mind/leonida.git
cd leonida

2. Check Node.js and npm

Run the following in your terminal. This project uses Vite 8. A supported Node.js LTS such as Node 22.12 or newer in the 22.x line meets Vite's requirements. npm comes with the standard Node.js installation. Vite requirements.

node --version
npm --version

3. Start the local server

Run both commands in the project folder. The first installs dependencies. The second starts a development server and prints a local URL. Open the exact address it prints, usually http://localhost:5173. Keep the terminal open while playing. Press Ctrl+C there to stop the server. Project instructions.

npm install
npm run dev

If setup stalls

  • npm cannot find package.json. Open the extracted folder containing the file. A ZIP can create an extra directory level.
  • Vite reports an unsupported engine. Check node --version in the same terminal where you ran npm. Reopen the terminal after installing a supported Node.js version.
  • The local address won't connect. Look for the URL beside Local in the running terminal. Vite can choose another port when the default is occupied.
  • The page opens but input does nothing. If the title menu ignores mouse clicks, focus New Game with Tab and press Enter. Once in the city, click inside the game to capture the pointer. Use a desktop browser with WebGL2. For a bug report, include the URL, browser version, and the first console error you saw. Browse or open an issue.

You can build the static site with npm run build and view that build with npm run preview. For the controls and known gameplay limitations, see the browser guide.