Nebble v1.0.0
Nebble v1.0.0: The Modern Full-Stack Nim Wrapper for Pebble
We are thrilled to announce the official v1.0.0 release of Nebble, a comprehensive, type-safe Nim wrapper for the Pebble SDK. Nebble transforms the Pebble development experience, bringing modern language features, deterministic memory management, and a unified full-stack workflow to the platform.
🚀 Key Features
- Unified Full-Stack Nim: Write both your watch firmware (compiled to C) and your phone-side logic (compiled to JS) entirely in Nim. Share enums, constants, and logic seamlessly across the entire stack with 100% type safety.
- Automatic Memory Management: Stop fighting manual resource cleanup. Nebble’s Managed Handles leverage Nim’s ARC (Automatic Reference Counting) to handle object lifecycles and SDK memory handoffs automatically.
- Declarative UI DSL: Build responsive UIs with the powerful
nebbleAppmacro. Define your app’s structure, text layers, and click configurations in a clean, declarative block that eliminates repetitive boilerplate. - Modern Build Pipeline: Seamless integration with the modern Pebble/Rebble SDK. The CLI automatically manages the transition to
package.jsonand handles complex multi-platform build matrices. - Zero Runtime Overhead: Nebble compiles directly to optimized C code. You get high-level abstractions with the same performance and binary footprint as native C.
- Strong Compile-Time Safety: Nim’s type system catches logic errors, invalid enum values, and handle-type mismatches at compile time, ensuring your app is robust before it ever reaches the watch.
- Complete Platform Coverage: Full support for all 6 Pebble platforms—from the original Aplite to the Pebble Time Round (Chalk) and Emery.
🛠 Modern Tooling
The dedicated nebble CLI provides everything you need to develop:
nebble new: Scaffold new full-stack Nim projects.nebble build: Automatic Nim-to-C and Nim-to-JS transpilation.nebble clean: Comprehensive workspace purging of generated C, JS, and build artifacts.nebble logs: Unified logging from the emulator or hardware.
📦 Installation
# Install Nebble
nimble install nebble
# Build the CLI
cd cli && nimble install_local📖 Documentation
We’ve launched a comprehensive documentation suite to get you started:
- Full-Stack Guide: Master writing phone components in Nim.
- Architecture: Deep dive into Managed Handles and the build pipeline.
- Getting Started: Create your first app in minutes.
Nebble: Type-safe, Full-Stack, Modern. Pebble development, evolved. ⌚️✨