
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@l8b/runtime
Advanced tools
Runtime Orchestrator - Core runtime system for the l8b game engine.
Note: This package is for engine developers integrating l8b into applications.
The runtime package provides RuntimeOrchestrator, which coordinates all engine subsystems:
pnpm install @l8b/runtime
import { RuntimeOrchestrator } from "@l8b/runtime";
// Create runtime instance
const runtime = new RuntimeOrchestrator({
canvas: document.getElementById("game-canvas"),
listener: {
// Optional callbacks
codeStarted: () => console.log("Game started"),
codePaused: () => console.log("Game paused"),
codeEnded: () => console.log("Game ended"),
reportError: (error) => console.error("Runtime error:", error),
},
});
// Load and run LootiScript code
const code = `
function update() {
// Game logic
}
function draw() {
screen.clear("#000")
screen.drawText("Hello World", 10, 10, 16)
}
`;
await runtime.loadCode(code);
runtime.start();
interface RuntimeOptions {
canvas?: HTMLCanvasElement;
width?: number;
height?: number;
listener?: RuntimeListener;
preserveStorage?: boolean;
}
canvas - Canvas element for rendering (optional, creates one if not provided)width - Canvas width in pixels (default: 1080)height - Canvas height in pixels (default: 1920)listener - Event callbacks for runtime lifecyclepreserveStorage - Keep existing storage data (default: false)interface RuntimeListener {
codeStarted?: () => void;
codePaused?: () => void;
codeEnded?: () => void;
reportError?: (error: string) => void;
}
Load and compile LootiScript code.
await runtime.loadCode(sourceCode: string): Promise<void>
Start the game loop.
runtime.start(): void
Pause the game loop.
runtime.pause(): void
Resume the game loop.
runtime.resume(): void
Stop the game loop and reset.
runtime.stop(): void
Get the canvas element.
const canvas = runtime.getCanvas(): HTMLCanvasElement
The RuntimeOrchestrator initializes and coordinates:
@l8b/screen) - 2D/3D rendering@l8b/audio) - Sound and music playback@l8b/input) - Keyboard, mouse, touch, gamepad@l8b/io) - Persistent data storage@l8b/scene) - Scene and routing management@l8b/vm) - LootiScript execution@l8b/stdlib) - Standard library functionsAll subsystems are exposed to LootiScript via global objects.
import { RuntimeOrchestrator } from "@l8b/runtime";
class GameEngine {
private runtime: RuntimeOrchestrator;
constructor(canvas: HTMLCanvasElement) {
this.runtime = new RuntimeOrchestrator({
canvas,
listener: {
codeStarted: () => this.onGameStart(),
codePaused: () => this.onGamePause(),
codeEnded: () => this.onGameEnd(),
reportError: (error) => this.onError(error),
},
});
}
async loadGame(code: string) {
await this.runtime.loadCode(code);
}
start() {
this.runtime.start();
}
pause() {
this.runtime.pause();
}
private onGameStart() {
console.log("Game started");
}
private onGamePause() {
console.log("Game paused");
}
private onGameEnd() {
console.log("Game ended");
}
private onError(error: string) {
console.error("Game error:", error);
}
}
// Usage
const canvas = document.getElementById("game-canvas");
const engine = new GameEngine(canvas);
await engine.loadGame(gameCode);
engine.start();
runtime/
├── src/
│ ├── core/
│ │ └── orchestrator.ts # Main RuntimeOrchestrator
│ ├── assets/
│ │ └── loader.ts # Asset loading
│ ├── input/
│ │ └── manager.ts # Input management
│ ├── system/
│ │ └── api.ts # System API
│ └── types/
│ └── index.ts # TypeScript types
└── index.ts
FAQs
**Runtime Orchestrator** - Core runtime system for the l8b game engine.
The npm package @l8b/runtime receives a total of 30 weekly downloads. As such, @l8b/runtime popularity was classified as not popular.
We found that @l8b/runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.