Clockwork

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

Runnable Examples: Tauri Bridge

Runnable Examples: Tauri Bridge

Memory File System

import { MemoryFileSystem } from 'qti-clockwork-tauri-bridge'

const fs = new MemoryFileSystem({
  'mods/demo/mod.json': new TextEncoder().encode('{"id":"demo","version":"1.0.0"}')
})

const data = await fs.readFile('mods/demo/mod.json')
console.log(new TextDecoder().decode(data))

Runtime Config Merge

import { RuntimeConfigLoader, MemoryFileSystem } from 'qti-clockwork-tauri-bridge'

const fs = new MemoryFileSystem({
  'config/runtime.json': new TextEncoder().encode('{"modRoot":"mods-live"}')
})

const loader = new RuntimeConfigLoader(fs, {
  CLOCKWORK_LOG_LEVEL: 'debug'
})

const file = await loader.loadFromFile('config/runtime.json')
const env = loader.loadFromEnv()
const merged = loader.merge(env, file)
console.log(merged)
Last updated: February 17, 2026