3 releases
| 0.1.3 | Feb 15, 2026 |
|---|---|
| 0.1.1 | Jan 7, 2026 |
| 0.1.0 | Dec 10, 2025 |
#1818 in Game dev
Used in 3 crates
(via jugar-ai)
48KB
999 lines
Aprender Package Resource (.apr) model format.
Per spec Section 4.1: The .apr format is a compact, portable container for trained AI behaviors that can be hot-swapped like trading cards.
File Structure
┌─────────────────────────────────────────────────────────────┐
│ .APR File Structure │
├─────────────────────────────────────────────────────────────┤
│ Magic Number: "APNR" (4 bytes) │
│ Version: u16 (2 bytes) │
│ Checksum: CRC32 (4 bytes) │
├─────────────────────────────────────────────────────────────┤
│ Metadata (CBOR encoded): │
│ - name, version, author, license │
│ - difficulty_levels, input_schema, output_schema │
├─────────────────────────────────────────────────────────────┤
│ Model Data (compressed): │
│ - weights: [f32; N] │
│ - biases: [f32; M] │
│ - architecture: string │
└─────────────────────────────────────────────────────────────┘
Dependencies
~2.5–4MB
~68K SLoC