orca-chat-visuals

Featured

Show a chart, diagram, table, report or mockup inline in this Orca chat as an HTML page. Use when a visual would help the user understand your answer. Only available when the ORCA_CHAT_SCRATCH_DIR environment variable is set.

AI & Automation 128,625 stars 8156 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Inline visuals in an Orca chat Orca can show an HTML page inside your reply. Use one whenever a visual would make the answer clearer. ## Writing the page - Save it in the folder named by `ORCA_CHAT_SCRATCH_DIR` (`printenv ORCA_CHAT_SCRATCH_DIR`; in PowerShell `$env:ORCA_CHAT_SCRATCH_DIR`). If it's unset or you can't write there, skip the visual. This folder belongs to this chat and is kept as long as the chat. Save files meant for the project in the workspace. - One complete HTML file per visual, directly in that folder, under 512 KB, with a new file name each time (e.g. `latency-by-region-7c1e.html`): letters, digits, `.`, `_`, `-`, ending in `.html`. - Inline your styles, scripts and data. Libraries and fonts may load only from cdn.jsdelivr.net, unpkg.com, cdnjs.cloudflare.com, esm.sh, fonts.googleapis.com and fonts.gstatic.com. The page can't make network requests; use inline SVG or `data:` URLs for images. - Don't size anything to the viewport height (`100vh`); Orca fits the frame to your content. - Use Orca's theme variables for surfaces, text, and controls; pair hover `--accent` with `--accent-foreground`. Scope fixed-palette CSS to its mockup. Orca updates tokens and `color-scheme` live. Charts use `--chart-1` to `--chart-5`. - Make the saved HTML readable in an ordinary browser too: use paired fallback values such as `background:var(--background,#fff);color:var(--foreground,#171717)` for every theme-token use. Scripts reading chart colors need...

Details

Author
stablyai
Repository
stablyai/orca
Created
8 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category