What problem does it solve?
Writing Native SDK application logic requires following a closed TypeScript subset that compiles ahead-of-time to native code, and violating its purity, determinism, or shape rules produces build errors that are hard to resolve without guidance.
Core Features & Use Cases
- App Core Authoring: Guides writing Model, Msg, update, and pure helper functions in src/core.ts that pass the @native-sdk/core subset checker and compile to native code.
- Subset Error Resolution: Explains every teaching diagnostic (NS1001-NS1069) covering banned ecosystem APIs, purity violations, fixed-shape rules, byte-text handling, and local mutation ownership.
- Effects and Wiring: Covers Cmd effects, Sub subscriptions, host-event channels (frameMsg, keyMsg, pinchMsg, dropMsg), derived values, and splitting cores into modules under src/.
- Use Case: When building a Native SDK app like a soundboard or notes manager, use this guide to write the deterministic core logic, fix checker errors, and wire effects such as audio playback and timers.
Quick Start
Ask the assistant to write or fix a src/core.ts app core for a Native SDK app following the TypeScript subset rules.