Template Builder
The Template Builder is a visual editor for Chronos templates. It lets you browse your library, load a template, edit the tree, and save back to YAML via /api/template.
Layout
- Library (left) - browse items and templates, filter by type, quick search.
- Template (center) - drag and drop nodes to reorder or reparent.
- Inspector (right) - edit name, duration, ideal start/end, and dependencies.
Supported Types
- Templates: week, day, routine, subroutine, microroutine.
- Items: task, note, goal, habit, appointment, commitment, milestone, reward, alarm, reminder, inventory items, tools, and more.
Editing Rules
- Hierarchy: week > day > routine > subroutine > microroutine > items.
- Drag within the tree to reorder. Drop into a node to nest, drop near the left edge to outdent.
- Use duration minutes for sequential work, or
parallelto group child durations.
Endpoints
GET /api/template/list?type=TYPEGET /api/template?type=TYPE&name=NAMEPOST /api/templatewith YAML payload (type, name, children).
Tips
- Use the fx toggle to expand variables like
@nicknamein labels. - Drag from Library to add nodes quickly.
- Use the inspector Apply button to persist edits to the selected node.
