Workspaces are grouped by sub-domain. Each arrow shows what one sub-domain provides to another.
Note
Every workspace name below drops the @jolly-pixel/ scope: network is @jolly-pixel/network.
- network - Rooms, peers and state sync for the collaborative editors
- accounts - User accounts and session tokens
- history - Command documents and per-person undo history that survives collaboration
- studio - One project, its assets and one editor per tab
- server - HTTP and WebSocket server for projects and accounts
- desktop - Electron app that runs a local studio server and opens studio windows
- editor.host - Shared launch, session and runtime boot for the editors
- preferences - Preference scopes, validation and overrides for the studio and the editors
- editor.voxel-map - Voxel map and blockset editor
- editor.voxel-model - Voxel model and animation editor
- editor.pixel-art - Pixel-art texture editor
- editor.terrain - Heightfield terrain editor
- editor.scene - Scene editor for actors and their components
- editor.environment - Environment editor
- editor.script - Code editor for scripts, shaders and text files
- editor.sound - Sound player
- editor.model - 3D model viewer
- editor.texture - Image viewer
Each asset.<name> workspace owns the asset kinds that its editor reads and writes and that asset-server stores.
- asset.voxel-map -
.voxelmap.jsonworlds and the.blockset.jsonblocksets they link - asset.voxel-model -
.voxelmodel.jsonmodels - asset.voxel-animation -
.voxelanim.jsonanimation sets - asset.pixel-art -
.pixelarttextures - asset.terrain -
.terrain.jsonheightfield terrains - asset.scene -
.scene.jsonscenes - asset.environment -
.environment.jsonenvironments - asset.script -
.tsand.jsscripts,.tsl.tsshaders and text files - asset.sound -
.oggsounds - asset.model -
.glb,.gltf,.fbxand.objmodels - asset.font -
.typeface.jsonfonts - asset.common - Code shared by the asset workspaces
- ui - Lit design system for the editors
- resize-handle - Resize handles and splitters
- console - Command palette and developer console for the editors
- lantern - Guided tours for the editors
- asset - Asset references, catalogs and loading for browser and Node.js
- asset-server - Event-sourced asset projection, reconciliation and catalog delivery
- asset-source - Asset storage on the filesystem, in memory or in IndexedDB
- event-store - Append-only event log
Planned. It will turn a project's assets into the catalog manifest the runtime loads.
- runtime - Renderer-agnostic game runtime for browsers and Electron
- ecs - Renderer-agnostic actor, component and scene framework
- backend.three - Three.js backend for the ECS
- loop - Game loop and frame scheduling
- controls - Keyboard, mouse, touchpad, gamepad and screen input
- scripting - Compiles and loads game scripts and TSL shaders
- physics - Engine-neutral physics contract and ECS components
- physics.rapier - Rapier backend for physics
- voxel.renderer - Voxel engine and renderer
- terrain.renderer - Heightfield terrain engine and renderer
- pixel-draw.renderer - Pixel-art drawing canvas and renderer
Generic packages used by more than one sub-domain.
- three - Three.js components shared by the editors
- color - Color parsing, palettes, color spaces and conversions
- image - PNG codecs and browser raster decoding
- math - Vector, quaternion and matrix math on plain number tuples
- utils - Small standalone helpers
- bench - Benchmarking harness and CLI
- cdp - Chrome DevTools Protocol recording and profile readers
- e2e - Playwright config, locators and editor fixtures for e2e suites
- golem - Connects a local AI agent to a running studio as a peer
- golem.kit - Contract and test studio for asset kinds that support golems
Public packages are published on npm and can be installed with npm or yarn.
$ npm i @jolly-pixel/ecs @jolly-pixel/backend.three
# or
$ yarn add @jolly-pixel/ecs @jolly-pixel/backend.threeTo install and compile all workspaces, just run the following command at the root
$ pnpm install
$ pnpm run buildstudio is the full application
$ pnpm --filter @jolly-pixel/studio devRun tests for one workspace, then run the repository type checks:
$ pnpm --filter <workspace> test
$ pnpm run typecheckLint all workspaces with oxlint (the script also checks package exports and CSS):
$ pnpm run lintEach public package has its own prepublishOnly script that builds the TypeScript source before publishing.
$ pnpm publish --filter <workspace>Thanks goes to these wonderful people (emoji key):
Thomas.G 💻 📖 🐛 |
Alexandre Malaj 💻 📖 🐛 |
PierreDemailly 💻 |
Clement Gombauld 💻 |
MIT