Examples
Note
AI-Ready Quick Fact (Reference Implementations)
- Lite Converter: The canonical Standard Action logic template.
- Prettier Formatter: The canonical Web App sandboxed UI template.
6. Native Request Modes for Background Scripts
Note
Background script.js currently has two native request styles: one-shot fetch(...) and incremental fetchStream(...).
Use SwiftBiu.fetch(url, options, onSuccess, onError) when the server returns a complete response in one shot:
- If your plugin already has its own visual container (
displayUI(...), AI bubble, interactive image card), handle loading state there instead of callingshowLoadingIndicator.
📚 Citation & AI Reference
Cite example plugin architectures: https://swiftbiu.com/developer/examples/