fluau 0.1.0
fluau: ^0.1.0 copied to clipboard
Sandboxed Luau plugins for Flutter — bridge, permission store, loader, and @LuaWidget annotations. Requires a Flutter–Rust bridge (e.g. flutter_rust_bridge) and a host-owned UI catalog.
fluau #
Sandboxed Luau plugins for Flutter. Plugins draw from a host-owned UI catalog, talk to the app through gated host services, and can expose typed capabilities back to Dart.
Full monorepo docs (example walkthrough, architecture): see the repository Getting started.
Prerequisite: a Flutter–Rust bridge #
fluau runs Luau in Rust. A Flutter↔Rust bridge is required. This package does not create one for you.
Use flutter_rust_bridge (the example pins 2.13.0) or another bridge you already maintain. Follow FRB’s own docs to bootstrap an app from zero; then come back here to add fluau.
You also need the Rust runtime (lua_plugin_core in this repo — git/path until
published on crates.io as part of the fluau family).
Install #
dependencies:
fluau: ^0.1.0
Also depend on the Rust runtime from the monorepo (lua_plugin_core, git/path
until published on crates.io).
Bootstrap and bind #
After FRB works in your app, add fluau.yaml and stamp glue:
dart run fluau:bootstrap
flutter_rust_bridge_codegen generate
# optional: dart run fluau:bootstrap --generate-frb
Then:
await RustLib.init();
LuaPluginBridge.bind(FrbLuaPluginBridge()); // stamped adapter
await PluginRegistryLoader.registerPackages([...]);
// LuaPlugin(pluginId: '...', buildWidget: YourRegistry.buildFromMap, ...)
Pass your UI catalog into LuaPlugin / LuaPluginView via buildWidget — this
package does not ship default widgets. See
UI catalog
and
plugin permissions.
What this package provides #
LuaPluginBridge+dart run fluau:bootstrap- Package YAML loader, permission sheet helpers,
PluginGrantStore - Annotations (
@LuaWidget,@LuaCapability, …) and session host widgets LuaWidgetInterfaceonly — no default catalog
License #
MIT