Status: v1.1.0 Release (Ready) Last Updated: February 20, 2026
---
Release Date: February 20, 2026 Tag: v1.1.0 Key Commits: 006460c, 9e39532, 7047c29
Commit: 006460c
Merged the CLI tool into the main package and improved the FixedString API.
Changes:
---
Commit: 9e39532
Moved all examples to a separate repository to reduce package size.
Changes:
Migration:
# Clone examples separately git clone https://github.com/Brokezawa/nebble-examples
---
Commit: 7047c29
Zero-copy sprite management with two API options for different use cases.
ARC-managed handles with automatic lifecycle management.
Types:
Example:
var sheet = newSpriteSheetHandle(RESOURCE_ID_SPRITES, 32, 32) var player = newAnimatedSpriteHandle(sheet, 8, 100) player.update(elapsedMs) player.draw(ctx, pos) # Auto-cleanup when out of scope
Stack-allocated types for maximum performance.
Types:
Example:
var bitmap = newBitmap(RESOURCE_ID_SPRITES) var sheet = newSpriteSheet(bitmap, 32, 32) var player = newAnimatedSprite(sheet.addr, 8, 100) # Manual cleanup required destroy(bitmap)
Features:
Files:
---
Commit: 9e39532
Moved all examples to a separate repository to reduce package size.
Completed:
Migration:
# Clone examples separately git clone https://github.com/Brokezawa/nebble-examples
---
---
---
Goal: Declarative macro-based menu definition hiding pointer arithmetic
Implementation: Create nebble/ui/menu_dsl.nim with compile-time macro:
Features:
API Design:
# User writes: nebbleApp: menu: section "Main Menu": item "Start", icon = ICON_PLAY, callback = onStart item "Settings", icon = ICON_SETTINGS, callback = onSettings section "System": item "About", subtitle = "v1.0", callback = onAbout # Macro expands to: # - Static array of SimpleMenuItem # - Static array of SimpleMenuSection # - Proper pointer setup (hidden from user) # - Automatic callback wiring
Implementation Strategy:
Complexity: Medium Effort: 3-4 days Breaking Changes: None (adds new DSL)
---
Goal: Macro-driven object mapping with automatic versioning
Implementation: Create nebble/comms/typed_serialization.nim:
Features:
API Design:
type MyMessage* {.version: 1.} = object command*: uint8 value*: int32 name*: FixedString[32] # Macro generates: proc serialize(msg: MyMessage, iter: ptr DictionaryIterator) proc deserialize(iter: ptr DictionaryIterator): MyMessage # Usage: proc sendCommand(cmd: uint8, val: int32) = var msg = MyMessage(command: cmd, value: val, name: "test") outbox.send(msg) # Auto-serializes with version header proc inboxHandler(iter: ptr DictionaryIterator) = let msg = iter.deserializeAs(MyMessage) # Auto-deserializes, handles versioning case msg.command: of CMD_START: start()
Schema Versioning:
Complexity: Medium-High Effort: 5-7 days Breaking Changes: None (new module)
---
Goal: Enable background worker binaries for persistent background tasks
Implementation: Create nebble/worker/ module for worker binary support:
Features:
API Design:
# worker.nim - Background worker entry point nebbleWorker: init: # Subscribe to tick timer in worker context tickTimer.subscribe(TimeUnits.SECOND_UNIT, handleTick) proc handleTick(tickTime: ptr tm, unitsChanged: TimeUnits) {.cdecl.} = # Increment counter in background s_ticks.inc # Send data to foreground app let msg = AppWorkerMessage(data0: s_ticks) workerSendMessage(WORKER_TICKS, msg) # main.nim - Foreground app nebbleApp: init: # Subscribe to worker messages workerMessage.subscribe(handleWorkerMessage) proc handleWorkerMessage(data: AppWorkerMessage) {.cdecl.} = # Update UI with data from worker counter = data.data0 updateText()
CLI Support:
nebble new my_worker --worker # Create worker binary project nebble build --worker # Build worker binary
Implementation Strategy:
Complexity: Medium-High Effort: 4-6 days Breaking Changes: None (adds new module)
---
Goal: Safe iterator for direct pixel manipulation
Implementation: Create nebble/graphics/framebuffer.nim:
Features:
API Design:
type FrameBufferContext* = object pCtx: ptr GContext width, height: int16 proc lock*(win: WindowHandle): FrameBufferContext ## Lock framebuffer for direct access proc unlock*(ctx: FrameBufferContext) ## Release framebuffer iterator pixels*(ctx: FrameBufferContext, region: GRect = GRectZero): (int16, int16, var GColor) = ## Yields (x, y, color) for each pixel in region ## Allows: `color = GColorRed` proc getPixel*(ctx: FrameBufferContext, x, y: int16): GColor proc setPixel*(ctx: FrameBufferContext, x, y: int16, color: GColor)
Usage Pattern:
let fb = window.lock() for x, y, color in fb.pixels(): # Direct pixel manipulation color = calculatePixel(x, y) window.unlock()
Complexity: Medium Effort: 2-3 days Breaking Changes: None
---
Goal: Fluent builders for complex sequences (Nim-idiomatic)
Implementation: Create nebble/ui/animation_dsl.nim with declarative style (consistent with nebbleApp):
Features:
API Design:
# Declarative style (consistent with nebbleApp) nebbleApp: # ... other components ... animation: on: buttonPress sequence: parallel: layer1.moveTo(100, 50).duration(500).easeInOut layer2.fadeTo(GColorClear).duration(300) then: layer1.scale(1.5).duration(200).easeOut then: parallel: layer1.moveTo(0, 0).duration(400) layer2.fadeTo(GColorBlack).duration(400) onComplete: vibes.shortPulse() animationState = done
Implementation Strategy:
Complexity: Medium Effort: 4-5 days Breaking Changes: None (adds new API)
---
---