Add runtime loader for validated JSON animation packs #78

Open
opened 2026-05-23 00:45:42 -04:00 by JackFrostbyte · 0 comments

Objective

Add runtime support for loading and executing validated JSON animation packs.

RGB Aura should remain the execution engine. The animation pack should only describe data. The runtime interprets the validated data using safe internal logic.

Scope

Implement the first runtime loader for JSON animation packs.

The loader should:

  • Accept a path to a JSON animation pack.
  • Validate or require validation before execution.
  • Map pack logical zones to the current device mapping.
  • Convert supported effects into existing RGB Aura runtime operations.
  • Preserve existing safety behavior.

Required runtime behavior

The loader must preserve:

  • Existing runtime guardrails.
  • Reserved ARGB zone protection.
  • Dark-blue restore behavior.
  • Safe shutdown behavior.
  • Logging behavior.
  • Dry-run behavior where applicable.
  • Existing OpenRGB connection safety.

Required CLI behavior

Add a way to run a JSON animation pack from the command line.

The exact option name can be chosen during implementation, but it should be clear and documented.

Possible example:

  • --animation-pack path/to/pack.json

Out of scope

  • Executing arbitrary Python from packs.
  • Downloading animation packs.
  • GUI pack selection.
  • Full pack marketplace support.
  • Advanced unsupported effects.

Acceptance criteria

  • RGB Aura can load the first built-in JSON animation pack.
  • The runtime refuses invalid packs.
  • The runtime refuses packs that use the reserved ARGB zone.
  • The runtime refuses out-of-range LED indexes.
  • Existing safety features remain intact.
  • Tests cover loader behavior.
  • Documentation explains how to run a JSON animation pack.
# Objective Add runtime support for loading and executing validated JSON animation packs. RGB Aura should remain the execution engine. The animation pack should only describe data. The runtime interprets the validated data using safe internal logic. # Scope Implement the first runtime loader for JSON animation packs. The loader should: - Accept a path to a JSON animation pack. - Validate or require validation before execution. - Map pack logical zones to the current device mapping. - Convert supported effects into existing RGB Aura runtime operations. - Preserve existing safety behavior. # Required runtime behavior The loader must preserve: - Existing runtime guardrails. - Reserved ARGB zone protection. - Dark-blue restore behavior. - Safe shutdown behavior. - Logging behavior. - Dry-run behavior where applicable. - Existing OpenRGB connection safety. # Required CLI behavior Add a way to run a JSON animation pack from the command line. The exact option name can be chosen during implementation, but it should be clear and documented. Possible example: - --animation-pack path/to/pack.json # Out of scope - Executing arbitrary Python from packs. - Downloading animation packs. - GUI pack selection. - Full pack marketplace support. - Advanced unsupported effects. # Acceptance criteria - RGB Aura can load the first built-in JSON animation pack. - The runtime refuses invalid packs. - The runtime refuses packs that use the reserved ARGB zone. - The runtime refuses out-of-range LED indexes. - Existing safety features remain intact. - Tests cover loader behavior. - Documentation explains how to run a JSON animation pack.
JackFrostbyte added reference develop 2026-05-23 00:45:45 -04:00
Sign in to join this conversation.
No labels
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
JackFrostbyte/rgb-aura#78
No description provided.