@ufjs/runtime
@ufjs/runtime
JS runtime for ufjs. Provides the
element API, the batched binary UI-op protocol spoken with the flutter_fjs
native host, and a Vue 3 custom renderer that maps HTML-like tags onto Flutter
widgets.
Published as TypeScript source — it is compiled by
@ufjs/cli, which is how you should
consume it:
npm i -D @ufjs/cli @ufjs/runtime
Inside an app you import it through the fjs aliases the toolchain sets up:
import { createFjsApp } from 'fjs/app';
import { toast, Worker, nowMs, fetch } from 'fjs';
Entry points
| Export | Contents |
|---|---|
. |
element API, host bridge, toast, Worker, fetch, timing |
./vue |
Vue 3 custom renderer |
./router |
vue-router integration with native navigation |
./app |
createFjsApp bootstrap |
./web |
DOM fallback so the same app runs in a browser |
./volar |
Volar plugin for tag typing in SFC templates |
Editor setup
{
"vueCompilerOptions": { "plugins": ["@ufjs/runtime/volar"] }
}
MIT
Related Packages
@ufjs/iconmind
IconMind icons for fjs — one tag, painted by Flutter on the app and inline SVG o...
315
15
@ufjs/webview
web-view for fjs — one tag, a WKWebView/WebView on the app and an iframe on the...
312
15
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.7 | ^3.5.42 | MIT | |
| 0.1.6 | ^3.5.42 | MIT | |
| 0.1.4 | ^3.5.42 | MIT | |
| 0.1.3 | ^3.5.42 | MIT | |
| 0.1.1 | ^3.5.42 | MIT |