What problem does it solve?
Building HTML micro-apps inside SuperMagic requires exact knowledge of the pre-injected window.Magic API surface, permission scopes, and file storage conventions, which are otherwise easy to get wrong.
Core Features & Use Cases
- Complete API Reference: Covers fs (readFile, writeFile, listDir, watchFile, getFileUrl, deleteFile, moveFile, renameFile), llm (chat, stream, getModels), agent, project (createTopicAndSend, sendMessage, uploadFiles, downloadFiles), and user.getInfo with permission scopes.
- Data Storage Conventions: Defines file-per-record storage, list projection file names, watchDir-based list rendering, and safe rename/collision rules for shared CRUD apps.
- Permission & Manifest Rules: Explains app.json manifest fields, high-risk scope declarations, user info authorization, and backward compatibility mappings.
- Use Case: Ask the agent to build a todo list or visitor management micro-app, and it generates a complete HTML app using listDir/watchDir for lists, one JSON file per record, and addEventListener-based event binding.
Quick Start
Ask the agent to create an HTML micro-app such as a todo list that reads and writes workspace files using the window.Magic API.