# Pawn. > A TypeScript 3D engine on three.js and koota ECS Entities are ids, traits are data, systems are functions run in frame phases. ## Table of Contents ### Guide - [Getting started](/pawn/docs/guide/getting-started.md): What Pawn is, its packages, and a first scene with a spinning cube. - [Engine and frame](/pawn/docs/guide/engine.md): Creating an Engine, frame phases, systems, the clock and loop drivers. - [Entities and systems](/pawn/docs/guide/entities.md): Spawning entities with traits, the transform traits, Visual, Shape, Light, Tint and Link, writing systems. - [Hierarchy](/pawn/docs/guide/hierarchy.md): Parenting entities with ChildOf and reading world positions. - [Grids and spatial queries](/pawn/docs/guide/space.md): Finding entities near a point (SpatialIndex) and mapping board cells to world points with Grid. - [Instancing](/pawn/docs/guide/instancing.md): Drawing thousands of entities as one InstancedMesh with Instance and InstanceBatch. - [Views and picking](/pawn/docs/guide/views.md): Views as camera rectangles of the canvas, views that follow DOM elements, picking. - [Input](/pawn/docs/guide/input.md): The Input plugin: keyboard, pointer and wheel state per frame, and the Pointer module. - [Sound](/pawn/docs/guide/sound.md): Sound: Web Audio playback of files and synthesized tones, master volume and mute. - [Camera rig](/pawn/docs/guide/camera.md): CameraRig: orbit, pan and zoom by pointer, plus focus, follow, fit and reset. ChaseCamera: a camera behind a moving entity. - [Labels](/pawn/docs/guide/labels.md): The Labels plugin: HTML elements pinned to entities on screen. - [Models (glTF)](/pawn/docs/guide/assets.md): Loading glTF models with Assets and the Model trait. - [Behaviors and events](/pawn/docs/guide/behaviors.md): Behaviors (Hoverable, Clickable, Draggable, Lifetime, Health, motion, SoundOn, FlashOn, Burst, your own), presets and entity events. - [Prefabs and spawning](/pawn/docs/guide/prefabs.md): Prefabs (definePrefab, engine.spawn, variants, params, named children, engine.prefabs, prefabs as JSON) and the Spawner behavior that spawns waves of them as data. - [Saving scenes](/pawn/docs/guide/snapshots.md): Saving and restoring worlds as JSON snapshots, the trait registry and EntityId. - [Headless](/pawn/docs/guide/headless.md): Running Pawn without a canvas: one scene for the browser and for tests, clicks and data from code, physics, and scripts in Node or Bun. - [Testing and debugging](/pawn/docs/guide/testing.md): Testing and debugging: seeded random numbers (engine.random), headless test helpers from @pawnjs/core/testing, and the Debug overlay with an entity inspector. - [Plugins](/pawn/docs/guide/plugins.md): Writing and installing plugins that add systems, traits and observers. - [Versions and stability](/pawn/docs/guide/stability.md): What a Pawn. version promises: semver 0.x, one version for all packages, ESM only, supported environments, pinned peers and experimental packages. - [For coding agents](/pawn/docs/guide/agents.md): Rules for coding agents that build apps with Pawn: where the docs and types are, how a scene is made, and how to test it. Every @pawnjs library package ships this page as AGENTS.md. ### Packages - [@pawnjs/react](/pawn/docs/packages/react.md): , , and hooks. - [@pawnjs/tween](/pawn/docs/packages/tween.md): Tweens of Position, Rotation and Scale, easings and tweenend. - [@pawnjs/data](/pawn/docs/packages/data.md): Feeds that keep one entity per item of an API or WebSocket stream. - [@pawnjs/physics](/pawn/docs/packages/physics.md): Rapier rigid bodies and colliders as traits, mesh and terrain colliders, a character controller, collision events, raycasts. - [@pawnjs/maps](/pawn/docs/packages/maps.md): The engine drawn into a Google Maps vector map. - [@pawnjs/json-render](/pawn/docs/packages/json-render.md): Scenes a model writes as json-render specs, from your registered prefabs. ### Examples - [Showcase](/pawn/docs/examples.md): The live showcase examples and where their sources are.