Generate a portable task log with storage inside its document
At a glance
Capsule's documented AI creation flow produces an HTML tool whose interface and saved records travel together in one local file. This workflow is listed under Local Apps, Personal Tools, Persistent Storage.
- Agents / tools
- Capsule, AI coding assistant, SQLite
SourceBuilding a tool for these workflows? See weekly rates.
What they did
1) Install Capsule Desktop for your operating system and open a coding assistant. Describe a small task log with an entry box, an Add task button and a saved-task list. 2) Ask for one HTML file containing its CSS and JavaScript, with capsule-api-version set to 1. Specify a tasks collection accessed through window.capsule.collection('tasks'), storing title and created_at. 3) Have the generated code await insertion when the button is pressed and query the collection to render saved tasks on load and after each addition. Capsule's creation guide supplies this concrete example. 4) Save the generated HTML and open it in Capsule Desktop to create the document. Add a sample task, close and reopen it, then check that the record persists. Keep the resulting .capsule file with your data.
Worth knowing
Separate copies can diverge; Capsule provides merging rather than shared live state. Documents require permission for network access.