Clockwork

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

Packages Overview

Packages Overview

This page focuses on packages you install in your own project.

Core Runtime Packages

qti-clockwork-app

  • App runtime assembly (AppBuilder, App)
  • Plugin manager with dependency ordering
  • Ownership-safe component/system/resource/asset registries
  • Runtime inspectors and mod manager primitives
  • Deep dive: Plugin System, Runtime Lifecycle

qti-clockwork-ecs

  • Entity manager with generation safety
  • Sparse component stores
  • Query API (with, without, optional, changed)
  • Resource map and command buffer
  • Deep dive: ECS Overview, Queries

qti-clockwork-scheduler

  • Staged game loop execution
  • Fixed-step accumulation
  • Optional async render stages
  • Profiler and determinism validation helpers
  • Deep dive: Scheduler Stages, Determinism

qti-clockwork-events

  • Typed event channels
  • Buffered (send) and immediate (sendImmediate) dispatch
  • Listener registration and cleanup
  • Deep dive: Event Bus

qti-clockwork-serialization

  • Versioned component schema registration
  • World snapshot serialize/deserialize
  • Optional migration support between component versions
  • Deep dive: World Serializer

qti-clockwork-assets

  • Loader registry by extension
  • Async load/wait/reload/unload lifecycle
  • Dependency tracking between assets
  • Hot-reload hooks when source watches are available
  • Deep dive: Asset Cache

qti-clockwork-audio / qti-clockwork-input

  • Optional support packages for audio and input flows
  • Structured for modular engine-level integration
  • Deep dive: Audio Engine, Input Manager

Renderer Packages

  • qti-clockwork-gl
  • qti-clockwork-shaders
  • qti-clockwork-materials
  • qti-clockwork-passes

These packages isolate rendering concerns from gameplay/runtime core code.

Deep dives:

Platform Package

qti-clockwork-tauri-bridge

Bridge layer intended for Tauri/platform integration boundaries.

Deep dive: Tauri Bridge

Last updated: February 17, 2026