OpenWebF Bridge: Module Codegen Workflow
Instructions
- •Confirm the desired API surface and keep it minimal, typed, and versioned.
- •Follow the official flow:
- •TypeScript
*.module.d.ts - •
webf module-codegen - •Dart module implementation
- •Registration in the host
- •JS usage example
- •TypeScript
- •Add guardrails: availability checks, permission handling, explicit errors.
- •Use MCP docs for authoritative steps and templates for scaffolding.
More: