Socket
Book a DemoInstallSign in
Socket

@clockwork-engine/platform-memory

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@clockwork-engine/platform-memory

Headless memory platform layer for Clockwork Engine - testing and replay validation

latest
Source
npmnpm
Version
2.9.0
Version published
Maintainers
1
Created
Source

@clockwork-engine/platform-memory

NPM Version

Headless memory platform layer for Clockwork Engine - ideal for testing and replay validation.

What's Included

  • MemoryPlatformLayer - Headless platform implementation
  • MemoryRenderingLayer - In-memory rendering (stores node state without visual output)
  • MemoryAudioLayer - Mock audio layer
  • MemoryInputLayer - Programmatic input simulation

Use Cases

  • Unit and integration testing
  • CI/CD pipelines (no browser required)
  • Replay validation and determinism verification
  • Server-side game state processing

Installation

bun add @clockwork-engine/core @clockwork-engine/platform-memory

Usage

import { GameCanvas } from '@clockwork-engine/core'
import { MemoryPlatformLayer } from '@clockwork-engine/platform-memory'

// Create headless platform
const platform = new MemoryPlatformLayer({
  screenWidth: 800,
  screenHeight: 600,
  worldWidth: 800,
  worldHeight: 600,
})
await platform.init()

// Create canvas for testing
const canvas = new MyGameCanvas(options, platform)
await canvas.initialize()

// Run game logic without visual rendering
game.start()

Peer Dependencies

See the main README for full documentation.

Keywords

game-engine

FAQs

Package last updated on 18 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts