webf-native-plugin-dev

Create WebF native plugins by wrapping Flutter packages into JavaScript APIs.

4|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/VIDLG/webfly --skill webf-native-plugin-dev-vidlg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: webf-native-plugin-dev
Source: https://github.com/VIDLG/webfly/tree/main/.claude/skills/webf-native-plugin-dev
Command: npx skills add https://github.com/VIDLG/webfly --skill webf-native-plugin-dev-vidlg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill enables developers to create custom native plugins for WebF, bridging the gap between web technologies and native device capabilities or existing Flutter packages.

Core Features & Use Cases

  • Wrap Flutter Packages: Integrate existing Flutter libraries into your WebF application.
  • Expose Native APIs: Make device features like camera, sensors, or payments accessible from JavaScript.
  • Create Reusable Modules: Build functional libraries that can be shared across projects.
  • Use Case: You need to access a device's Bluetooth Low Energy (BLE) capabilities, but no official WebF plugin exists. This Skill guides you through creating a custom plugin that wraps a Flutter BLE package, exposing its functionality to your web application.

Quick Start

Use the webf-native-plugin-dev skill to create a new WebF native plugin named 'MyCameraPlugin' based on the Flutter package located at './flutter_packages/webf_camera'.

Frequently Asked Questions about webf-native-plugin-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom WebF plugin to access native device capabilities?

To create a custom WebF plugin, you wrap existing Flutter packages or native platform capabilities into JavaScript APIs. This process involves module creation, writing TypeScript definitions, and generating an npm package using the WebF CLI.

Can I wrap Flutter packages to use them in my WebF web application?

Yes, you can wrap Flutter packages to expose their functionality to your WebF application. This allows you to integrate existing Flutter libraries, making features like camera access or sensor integration available via JavaScript.

How do I expose native APIs like camera or Bluetooth to JavaScript in WebF?

You expose native APIs by building a custom WebF native plugin that bridges platform features to JavaScript. This involves creating a module that wraps the native functionality and writing TypeScript definitions for the exposed JavaScript API.

Do I need TypeScript to write a WebF native plugin?

Yes, writing TypeScript definitions is a required step when developing a WebF native plugin. These definitions provide the necessary type structure for the JavaScript API that exposes your wrapped Flutter packages or native platform capabilities.

When should I build a custom WebF native plugin instead of using existing ones?

You should build a custom WebF native plugin when you need to access device functionalities like camera, payments, or sensors that are not covered by existing plugins. It allows you to wrap specific Flutter packages into reusable JavaScript modules.

How do I generate an npm package for a WebF native module?

You generate an npm package for a WebF native module by using the WebF CLI. This finalizes the plugin development process, which includes wrapping your Flutter package and writing the TypeScript API definitions into a shareable library.