archview-ai avatar

openwebf-bridge-module-codegen

Build a WebF bridge module/native plugin using the module-codegen workflow (*.module.d.ts → codegen

by archview-ai|Open Source

OpenWebF Bridge: Module Codegen Workflow

Instructions

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

More:

openwebf-bridge-module-codegen - AI Agent Skill for Claude Code & Cursor | Agent Skills