How Does it Work?

Welcome to the Runtime

A runtime that lets you create, share, and play multiplayer browser games instantly.

Start Creating

Runtime

Every Codetoy runs inside of a web worker in it's own subdomain, with access to it's own OffscreenCanvas for rendering and drawing things to the screen. Any input or output events are handled through a message based API (see addEventListener and postMessage for more info).

Modules

Codetoy supports vanilla javascript import and export module syntax. This allows you to organize your code into multiple files in your project.

Multiplayer

Every codetoy is multiplayer by default using a peer-to-peer websocket. When someone joins a codetoy their username will show up at the bottom. If they are not signed in then it will show @guest. Because of the message based API you never have to worry about managing a websocket yourself within Codetoy's environment (see multiplayer for more info).

© 2025 Codetoy. All rights reserved.