Applets are self-contained interactive applications that Portal Agent generates and embeds on your canvas as cards. They are built from HTML, CSS, and JavaScript, so they run live — you can click buttons, hover over data points, and interact with them just like a real app. Applets are generated in Compose mode and placed as cards in your workspace.Documentation Index
Fetch the complete documentation index at: https://docs.asquareportal.com/llms.txt
Use this file to discover all available pages before exploring further.
What applets are
When you ask the agent to “build a chart”, “create a calculator”, or “visualize this data”, it callscreate_applet to generate a complete, working mini-app from your description. The result appears as a card on the canvas that you can resize, move, and interact with immediately.
Applets are not static images or embeds from external services — they are generated code that runs locally inside your workspace.
Applet types
Thecreate_applet tool supports six categories of applets:
chart
Line charts, bar charts, pie charts, and area charts. Include specific data in your prompt and the applet will render it accurately.
graph
Data visualizations beyond standard charts — scatter plots, network graphs, and custom data displays.
interactive
Interactive widgets and demos — sliders, toggles, configurators, and custom input components.
calculator
Calculation tools with inputs and outputs — BMI calculators, unit converters, financial estimators, and more.
game
Simple browser games — memory games, quizzes, click targets, and other playable mini-games.
demo
Physics simulations, animation demos, and generative art — anything that runs as a dynamic visual.
create_applet tool parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
appletType | string | Yes | One of: chart, graph, interactive, calculator, game, demo |
description | string | Yes | Detailed description of what to build, including any specific data values |
requirements | string | No | Extra requirements like color theme, specific features, or animation style |
Example prompts
Charts and data visualizations
Calculators and tools
Interactive widgets
Games and demos
How applets are generated
Applets are generated through the Compose engine, which produces complete HTML/CSS/JS output as a streaming render. The agent:- Receives your description and any data you provide (or fetches it via
web_searchfirst) - Calls
create_appletwith the type and a detailed description - The Compose engine generates the full applet code
- The applet is embedded as a live card on your canvas
Applets are generated using the same AI pipeline as Compose mode app generation. If you want a full-page application rather than a canvas card, switch to Compose mode and generate an app there directly.
Using web search to power applets with real data
The most powerful applet workflow combinesweb_search with create_applet. Ask the agent to find real data, then immediately visualize it.
Interacting with applets on the canvas
Once an applet is placed on the canvas, you can:- Click and interact — all buttons, inputs, and hover states work as normal
- Resize — drag the card corners to resize the applet viewport
- Move — drag the card to reposition it anywhere on the canvas
- Update — ask the agent to modify the applet by describing the change you want