Skip to content

Releases: paiml/jugar

Jugar v0.1.1 - Physics Toy Sandbox Demo

10 Dec 23:16

Choose a tag to compare

Jugar v0.1.1 - Physics Toy Sandbox

Minor release adding the Physics Toy Sandbox demo and completing crates.io publication.

What's New

Physics Toy Sandbox Demo

A kid-friendly Rube Goldberg machine builder showcasing:

  • 🎮 Real-time physics simulation
  • 📦 Drag-and-drop objects (balls, boxes, ramps, springs)
  • 🔧 YAML-based contraption remixing
  • 🤖 AI model support via .apr files
  • 💯 100% Rust/WASM - zero JavaScript computation

Live Demo: https://interactive.paiml.com/physics-sandbox/

New Crates Published

  • jugar-yaml - ELI5 YAML-first declarative game creation for kids (ages 5-12)
  • jugar-apr - Aprender Package Resource model format
  • jugar-probar - Rust-native testing framework for WASM games
  • jugar-probar-derive - Type-safe ECS selectors (Poka-Yoke)

All Published Crates (14 total)

[dependencies]
jugar = "0.1"           # Entry point
jugar-core = "0.1"      # ECS, Game Loop
jugar-physics = "0.1"   # Physics (Trueno)
jugar-ai = "0.1"        # AI (Aprender)
jugar-render = "0.1"    # Rendering
jugar-ui = "0.1"        # Responsive UI
jugar-input = "0.1"     # Unified input
jugar-audio = "0.1"     # Spatial audio
jugar-procgen = "0.1"   # Procedural generation
jugar-web = "0.1"       # WASM browser integration
jugar-yaml = "0.1"      # YAML game creation
jugar-apr = "0.1"       # AI model format
jugar-probar = "0.1"    # Testing framework

Assets

  • physics_sandbox_demo.mp4 - 32-second demo video
  • physics_sandbox_screenshot.png - Screenshot during gameplay

Links

v0.1.0 - Pong with SHAP AI Explainability

09 Dec 22:53

Choose a tag to compare

Jugar v0.1.0 - WASM-First Game Engine

The first release of Jugar, a WASM-native game engine with ABSOLUTE ZERO JavaScript computation.

Highlights

Pong Demo with SHAP AI Explainability

  • Real-time SHAP-style feature importance visualization
  • Watch the AI explain its decisions as it plays
  • Downloadable .apr AI profile format

Game Modes

  • SinglePlayer: Play against adaptive AI
  • TwoPlayer: Local multiplayer
  • Demo: Watch AI vs AI with full explainability widgets

Quality

  • 672 passing Rust tests
  • 38 Playwright browser tests
  • 95% code coverage
  • Load tested with chaos scenarios

Live Demo

Play now at: https://interactive.paiml.com/pong/

Installation

Add to your Cargo.toml:

[dependencies]
jugar = "0.1"
jugar-web = "0.1"

WASM Build

wasm-pack build --target web crates/jugar-web

Architecture

  • Pure Rust with wasm32-unknown-unknown target
  • JSON render commands for Canvas2D
  • Input events forwarded from minimal JS loader
  • WASM binary: 311KB

Crates

  • jugar - Main entry point
  • jugar-core - ECS and game loop
  • jugar-physics - Physics with SIMD support
  • jugar-input - Unified input handling
  • jugar-render - Render command generation
  • jugar-ui - Responsive UI system
  • jugar-audio - Audio event system
  • jugar-ai - AI with SHAP explainability
  • jugar-procgen - Procedural generation
  • jugar-web - WASM browser integration