Clockwork

Clockwork is a TypeScript-first, modular game engine workspace focused on ECS-driven runtime systems and a WebGL2 renderer stack.

Welcome to Clockwork

Welcome to Clockwork

What is Clockwork?

Clockwork is a TypeScript/JavaScript-first modular game engine package ecosystem focused on ECS runtime systems, deterministic scheduling, and a WebGL2 renderer stack. Core runtime systems (ECS, scheduler, events, serialization, assets, app/plugin runtime) are isolated from platform and renderer concerns, so teams can install only the pieces they need.


Key Features

  • Modular Packages - Install only the engine modules your project needs
  • ECS Runtime Core - Generational entities, component stores, queries, command buffering, and resources
  • Deterministic Scheduler - Fixed-step update loop with ordered stages and determinism checks
  • Event and Asset Pipelines - Typed event bus plus asset loading, dependency tracking, and hot-reload support
  • Plugin-Driven App Runtime - App builder, plugin lifecycle management, and ownership-safe registries
  • WebGL2 Renderer Stack - Dedicated renderer packages for GL, shaders, materials, and render passes

Quick Example

import { AppBuilder, HeadlessRendererPlugin } from 'qti-clockwork-app'

const app = new AppBuilder().use(HeadlessRendererPlugin).build()

app.run()
await app.step(1 / 60)
await app.shutdown()

Getting Started

New to Clockwork? Start here:

  1. Installation Guide - Install qti-clockwork-* packages in your project
  2. Quick Start - Run your first engine loop
  3. Getting Started - Learn core runtime concepts and package layout

Documentation Structure

Core Concepts

Package Reference

Tooling

  • Configuration - tsconfig/jsconfig, Vitest aliases, ESLint, and Prettier
  • Installation - Environment setup and package installation
  • Testing - Testing Clockwork-based code in your project
  • Quick Start - Fastest way to run Clockwork in your app

Workflows

Policies


Community


Version Information

Current Version: 1.0.0

Clockwork is actively evolving. Core APIs exist and are tested, while some planned modules are still intentionally stubbed.


License

Clockwork is licensed under the MIT License.


Created with care by Kohan Mathers

Last updated: February 17, 2026