pixora is a lightweight reactive framework built on top of PixiJS to simplify the development of 2D web games.
It was created to solve the architectural gaps of PixiJS when building full applications such as:
- menus
- UI systems
- scenes
- responsive layout
- reactive state
- event-driven gameplay
- simple animation orchestration
pixora is not a game engine replacement and does not attempt to compete with Unity, Godot, or Phaser.
Instead, it acts as a structured runtime layer on top of PixiJS.
Primary use case:
- powering the game Catfé Express, a cozy cat café time-management game inspired by Penguin Diner.
However the framework is intentionally game-agnostic.
pixora follows these architectural principles:
- PixiJS handles rendering
- pixora handles application structure
- Reactive state drives rendering
- Scenes organize gameplay
- Components compose UI
- Layout solves responsiveness
- Event-driven architecture decouples systems
Design goals:
- minimal abstraction
- predictable reactivity
- mobile-first rendering
- composable systems
- low boilerplate
pixora architecture is divided into layers:
Handled by PixiJS
Responsibilities:
- sprites
- containers
- text
- rendering loop
Responsibilities:
- application lifecycle
- scene orchestration
- reactive state
- layout
- event bus
- UI primitives
- services
- input abstraction
- tween helpers
- asset registry
Game-specific logic:
- gameplay rules
- entities
- HUD
- services
- systems
Example: Catfé Express gameplay.
Sprites, sounds, UI graphics, backgrounds.
Bootstrapped through:
createPixoraApp()
Responsibilities:
- create Pixi application
- manage viewport
- register services
- wire ticker loop
- provide application context
Core modules:
- application context
- viewport manager
- service registry
- ticker orchestration
pixora uses a Scene Manager architecture.
Scenes represent major game states such as:
- main menu
- gameplay
- pause
- results
Scenes follow a lifecycle.
Example lifecycle:
init
mount
activate
update
resize
deactivate
destroy
Features:
- scene stack
- overlay support
- automatic cleanup
- lifecycle orchestration
Overlays allow UI layers like pause menus to run above scenes.
pixora uses a reactive architecture for state updates.
Main primitives:
- signals
- computed values
- effects
- stores
- typed event bus
Signals drive UI and rendering updates.
Example:
store -> signal change -> UI updates
This avoids manual update propagation.
pixora includes a typed event bus used for decoupled communication.
Examples:
scene.changed
button.clicked
customer.arrived
order.served
player.moved
This allows gameplay systems, UI, and scenes to communicate without tight coupling.
pixora provides a component-based UI layer on top of Pixi.
Base primitives include:
- Node
- Container
- Sprite
- Text
- Button
- Panel
Features:
- hierarchical composition
- pointer input abstraction
- reactive state binding
- reusable UI primitives
pixora includes a custom layout system to solve responsive positioning.
Layouts supported:
- fixed
- anchor
- stack
- breakpoints
Purpose:
- adapt menus and HUD across screen sizes
- simplify positioning logic
- avoid manual coordinate calculations
Example use cases:
- centered menu layouts
- pinned HUD elements
- vertical button stacks
pixora abstracts pointer interaction:
- click / tap
- hover
- pointer down/up
- disabled states
Input integrates directly with UI components.
pixora provides a minimal asset registry.
Responsibilities:
- texture loading
- spritesheet support
- centralized asset access
- asset lookup by key
This avoids scattering asset loading logic.
pixora includes lightweight tween utilities.
Use cases:
- button feedback
- UI transitions
- sprite movement
- scene transitions
Not intended to be a full animation engine.
pixora includes a minimal entity abstraction for gameplay.
Entities are lightweight objects representing:
- player
- customers
- tables
- props
This is not a full ECS system.
The architecture favors:
Entities
+ Reactive State
+ Systems/Services
instead of a full ECS implementation.
pixora is structured as a modular framework.
Example repository structure:
src/
core/
app/
scenes/
state/
events/
layout/
components/
input/
animation/
assets/
services/
utils/
game/
scenes/
entities/
ui/
stores/
services/
systems/
assets/
main.ts
The framework development followed a structured roadmap.
Architecture groundwork:
- glossary
- architecture documentation
- ADRs
- module specs
- roadmap
Library infrastructure:
- PixiJS dependency
- internal folder structure
- public API scaffold
- Nx scaffolding cleanup
Core runtime creation:
createPixoraApp- application context
- viewport manager
- service registry
- ticker integration
Scene orchestration:
- base Scene class
- scene manager
- overlay support
- lifecycle orchestration
- cleanup management
Reactive state system:
- signals
- computed
- effects
- stores
- typed event bus
UI primitives:
- node and component system
- reusable button
- reusable panel
- pointer input abstraction
Responsive layout system:
- fixed layout
- anchor layout
- stack layout
- breakpoint support
Used to power menus and HUD.
Gameplay utilities:
- asset registry
- tween helpers
- minimal entity abstraction
- gameplay helpers
Reference implementation:
- main menu scene
- gameplay scene
- pause overlay
- example services and assets
Demonstrates the full MVP architecture.
Stability improvements:
- tests
- documentation
- API cleanup
- publishability checks
- lint / typecheck / build validation
pixora has reached Phase 9 (Hardening).
This means the framework currently includes:
- stable runtime architecture
- reactive state layer
- scene system
- component-based UI
- responsive layout engine
- gameplay helpers
- Space Invaders game demo
- documentation and tests
pixora is now ready for:
- integration into the Catfé Express game
- iterative feature development
- potential publishing as a library.
pixora is designed to enable fast development of games like:
- diner dash style games
- management games
- casual mobile games
- UI-heavy games
Especially where:
- scene structure
- reactive UI
- responsive layout
are more important than complex physics or ECS.