World Tree
The World Tree is OpenTree's core data organization method, managing all user data in a tree structure.
Design Philosophy
The World Tree draws inspiration from the "Yggdrasil" of Norse mythology—a giant tree connecting all worlds. In OpenTree, the World Tree connects all types of data:
World Tree
├── 🔑 Keychain (keychain)
├── ⭐ Favorites (favorites)
├── 📝 Notes (notes)
├── 🎵 Music (music)
├── 🖼 Album (album)
├── ⏰ Countdown (countdown)
├── ✅ Tasks (todo)
├── 💰 Wallet (wallet)
├── 💳 Card Holder (cardHolder)
└── 📇 Address Book (address)
Data Flow
Tree Nodes
Each data item is a tree node, supporting:
- Nested hierarchy (folders/sub-items)
- Drag-and-drop sorting
- Context menu
- Search filtering
- Tag system
Caching
The World Tree panel uses in-memory caching to reduce database queries:
- Loads all data on first open
- Invalidates cache after CRUD operations (
invalidateCache) - Reloads from database on next access