Skip to main content

open_intelligent_ui_web 3.1.0 copy "open_intelligent_ui_web: ^3.1.0" to clipboard
open_intelligent_ui_web: ^3.1.0 copied to clipboard

HtmlView and YouTube components for Open Intelligent UI, drawn in a web view.

open_intelligent_ui_web #

HtmlView and YouTube components for Open Intelligent UI, drawn in a web view. It brings webview_flutter and web.

Install:

fvm flutter pub add open_intelligent_ui_web

Use #

import 'package:open_intelligent_ui_core/open_intelligent_ui_core.dart';
import 'package:open_intelligent_ui_web/open_intelligent_ui_web.dart';

final builders = composeBuilders([webBuilders]);
final library = intelligentUiFor(builders);
final session = OpenUiSession(library)..update(textSoFar, streaming: true);

OpenUiView(session: session, builders: builders);

The library from intelligentUiFor lists HtmlView and YouTube, so library.systemPrompt(chatPromptFor(library)) tells the model they exist.

Network #

  • HtmlView renders its page in a web view, or a sandboxed frame on the web. The page may load scripts from cdn.jsdelivr.net, unpkg.com, cdnjs.cloudflare.com and esm.sh, styles and fonts from fonts.googleapis.com and fonts.gstatic.com, and images from any https host. Its Content Security Policy sets these limits.
  • YouTube embeds load from www.youtube-nocookie.com. Its thumbnail is an image, so imageLoader gates it.
  • To keep these off, leave this package out of your app. The library then does not list HtmlView or YouTube, so the model does not ask for them.

Part of open_intelligent_ui; see its README.

0
likes
140
points
73
downloads

Documentation

API reference

Publisher

verified publisherhashstudios.dev

Weekly Downloads

HtmlView and YouTube components for Open Intelligent UI, drawn in a web view.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

ai_sdk_openui, flutter, open_intelligent_ui_core, web, webview_flutter

More

Packages that depend on open_intelligent_ui_web