Function playground
Function playground
The core functions behind the grid, the agents and the page tools, available on their own. Pick one, change the input, run it on 120 sample staff rows, and copy the call for your stack.
Playground
lib/example.ts
// pick a functionapp.js
// pick a function| Group | Functions |
|---|---|
| Grid queries | parseAmount, parseGridQuery, executeGridQuery, runGridQuery, answerGridQuestion, findMentionedColumn |
| Anomalies and summaries | detectAnomalies, summarizeRows |
| BI | askInsight, groupBy, comparePeriods, trend, aggregate |
| Tasks | planTasks, runTasks |
| QA | runQaAudit, auditToMarkdown, auditToJSON, AUDIT_RULES |
| Copilot | createA11yCopilot |
| Page understanding | askAboutPage, analyzePage, detectPageIntent |
| Page and data RAG | createContextIndex, tokenize, pagePassages, gridPassages |
| Forms and design | reviewForms, reviewForm, readFormFields, reviewDesign |
| Voice | parseVoiceA11yCommand, createVoiceA11yController, moveGridRowFocus |
| Grid tools | createGridTools, getRowId, applyGridFilters, toGridToolColumns, searchGrid, countGrid, filterGrid, sortGrid … |
| Colour | contrastRatio, parseColor, relativeLuminance, accessibleName |
| Icons | icon (vanilla), iconSvg, iconContrast, pickGlyphColor, ICON_NAMES |