|
| 1 | +# Trilium Technical Documentation - Quick Reference |
| 2 | + |
| 3 | +> **Start here:** [TECHNICAL_DOCUMENTATION.md](TECHNICAL_DOCUMENTATION.md) - Complete index of all documentation |
| 4 | +
|
| 5 | +## 📖 Documentation Files |
| 6 | + |
| 7 | +| Document | Description | Size | Lines | |
| 8 | +|----------|-------------|------|-------| |
| 9 | +| [TECHNICAL_DOCUMENTATION.md](TECHNICAL_DOCUMENTATION.md) | Main index and navigation hub | 13KB | 423 | |
| 10 | +| [ARCHITECTURE.md](ARCHITECTURE.md) | Complete system architecture | 30KB | 1,016 | |
| 11 | +| [DATABASE.md](DATABASE.md) | Database schema and operations | 19KB | 736 | |
| 12 | +| [SYNCHRONIZATION.md](SYNCHRONIZATION.md) | Sync protocol and implementation | 14KB | 583 | |
| 13 | +| [SCRIPTING.md](SCRIPTING.md) | User scripting system guide | 17KB | 734 | |
| 14 | +| [SECURITY_ARCHITECTURE.md](SECURITY_ARCHITECTURE.md) | Security implementation details | 19KB | 834 | |
| 15 | + |
| 16 | +**Total:** 112KB of comprehensive documentation across 4,326 lines! |
| 17 | + |
| 18 | +## 🎯 Quick Access by Role |
| 19 | + |
| 20 | +### 👤 End Users |
| 21 | +- **Getting Started:** [User Guide](User%20Guide/User%20Guide/) |
| 22 | +- **Scripting:** [SCRIPTING.md](SCRIPTING.md) |
| 23 | +- **Sync Setup:** [SYNCHRONIZATION.md](SYNCHRONIZATION.md) |
| 24 | + |
| 25 | +### 💻 Developers |
| 26 | +- **Architecture:** [ARCHITECTURE.md](ARCHITECTURE.md) |
| 27 | +- **Development Setup:** [Developer Guide](Developer%20Guide/Developer%20Guide/Environment%20Setup.md) |
| 28 | +- **Database:** [DATABASE.md](DATABASE.md) |
| 29 | + |
| 30 | +### 🔒 Security Auditors |
| 31 | +- **Security:** [SECURITY_ARCHITECTURE.md](SECURITY_ARCHITECTURE.md) |
| 32 | +- **Encryption:** [SECURITY_ARCHITECTURE.md#encryption](SECURITY_ARCHITECTURE.md#encryption) |
| 33 | +- **Auth:** [SECURITY_ARCHITECTURE.md#authentication](SECURITY_ARCHITECTURE.md#authentication) |
| 34 | + |
| 35 | +### 🏗️ System Architects |
| 36 | +- **Overall Design:** [ARCHITECTURE.md](ARCHITECTURE.md) |
| 37 | +- **Cache System:** [ARCHITECTURE.md#three-layer-cache-system](ARCHITECTURE.md#three-layer-cache-system) |
| 38 | +- **Entity Model:** [ARCHITECTURE.md#entity-system](ARCHITECTURE.md#entity-system) |
| 39 | + |
| 40 | +### 🔧 DevOps Engineers |
| 41 | +- **Server Installation:** [User Guide - Server Installation](User%20Guide/User%20Guide/Installation%20&%20Setup/Server%20Installation.md) |
| 42 | +- **Docker:** [Developer Guide - Docker](Developer%20Guide/Developer%20Guide/Development%20and%20architecture/Docker.md) |
| 43 | +- **Sync Server:** [SYNCHRONIZATION.md#sync-server-configuration](SYNCHRONIZATION.md#sync-server-configuration) |
| 44 | + |
| 45 | +### 📊 Database Administrators |
| 46 | +- **Schema:** [DATABASE.md#database-schema](DATABASE.md#database-schema) |
| 47 | +- **Maintenance:** [DATABASE.md#database-maintenance](DATABASE.md#database-maintenance) |
| 48 | +- **Performance:** [DATABASE.md#performance-optimization](DATABASE.md#performance-optimization) |
| 49 | + |
| 50 | +## 🔍 Quick Topic Finder |
| 51 | + |
| 52 | +### Core Concepts |
| 53 | +- **Becca Cache:** [ARCHITECTURE.md#1-becca-backend-cache](ARCHITECTURE.md#1-becca-backend-cache) |
| 54 | +- **Froca Cache:** [ARCHITECTURE.md#2-froca-frontend-cache](ARCHITECTURE.md#2-froca-frontend-cache) |
| 55 | +- **Entity System:** [ARCHITECTURE.md#entity-system](ARCHITECTURE.md#entity-system) |
| 56 | +- **Widget System:** [ARCHITECTURE.md#widget-based-ui](ARCHITECTURE.md#widget-based-ui) |
| 57 | + |
| 58 | +### Database |
| 59 | +- **Schema Overview:** [DATABASE.md#schema-overview](DATABASE.md#schema-overview) |
| 60 | +- **Notes Table:** [DATABASE.md#notes-table](DATABASE.md#notes-table) |
| 61 | +- **Branches Table:** [DATABASE.md#branches-table](DATABASE.md#branches-table) |
| 62 | +- **Migrations:** [DATABASE.md#database-migrations](DATABASE.md#database-migrations) |
| 63 | + |
| 64 | +### Synchronization |
| 65 | +- **Sync Protocol:** [SYNCHRONIZATION.md#sync-protocol](SYNCHRONIZATION.md#sync-protocol) |
| 66 | +- **Conflict Resolution:** [SYNCHRONIZATION.md#conflict-resolution](SYNCHRONIZATION.md#conflict-resolution) |
| 67 | +- **Entity Changes:** [SYNCHRONIZATION.md#entity-changes](SYNCHRONIZATION.md#entity-changes) |
| 68 | + |
| 69 | +### Scripting |
| 70 | +- **Frontend Scripts:** [SCRIPTING.md#frontend-scripts](SCRIPTING.md#frontend-scripts) |
| 71 | +- **Backend Scripts:** [SCRIPTING.md#backend-scripts](SCRIPTING.md#backend-scripts) |
| 72 | +- **Script Examples:** [SCRIPTING.md#script-examples](SCRIPTING.md#script-examples) |
| 73 | +- **API Reference:** [SCRIPTING.md#script-api](SCRIPTING.md#script-api) |
| 74 | + |
| 75 | +### Security |
| 76 | +- **Authentication:** [SECURITY_ARCHITECTURE.md#authentication](SECURITY_ARCHITECTURE.md#authentication) |
| 77 | +- **Encryption:** [SECURITY_ARCHITECTURE.md#encryption](SECURITY_ARCHITECTURE.md#encryption) |
| 78 | +- **Input Sanitization:** [SECURITY_ARCHITECTURE.md#input-sanitization](SECURITY_ARCHITECTURE.md#input-sanitization) |
| 79 | +- **Best Practices:** [SECURITY_ARCHITECTURE.md#security-best-practices](SECURITY_ARCHITECTURE.md#security-best-practices) |
| 80 | + |
| 81 | +## 📚 Learning Paths |
| 82 | + |
| 83 | +### New to Trilium Development |
| 84 | +1. Read [ARCHITECTURE.md](ARCHITECTURE.md) - System overview |
| 85 | +2. Setup environment: [Environment Setup](Developer%20Guide/Developer%20Guide/Environment%20Setup.md) |
| 86 | +3. Explore [DATABASE.md](DATABASE.md) - Understand data model |
| 87 | +4. Check [Developer Guide](Developer%20Guide/Developer%20Guide/) |
| 88 | + |
| 89 | +### Want to Create Scripts |
| 90 | +1. Read [SCRIPTING.md](SCRIPTING.md) - Complete guide |
| 91 | +2. Check [Script API](Script%20API/) - API reference |
| 92 | +3. Review examples: [SCRIPTING.md#script-examples](SCRIPTING.md#script-examples) |
| 93 | +4. Explore [Advanced Showcases](https://triliumnext.github.io/Docs/Wiki/advanced-showcases) |
| 94 | + |
| 95 | +### Setting Up Sync |
| 96 | +1. Understand protocol: [SYNCHRONIZATION.md](SYNCHRONIZATION.md) |
| 97 | +2. Configure server: [SYNCHRONIZATION.md#sync-server-configuration](SYNCHRONIZATION.md#sync-server-configuration) |
| 98 | +3. Setup clients: [SYNCHRONIZATION.md#client-setup](SYNCHRONIZATION.md#client-setup) |
| 99 | +4. Troubleshoot: [SYNCHRONIZATION.md#troubleshooting](SYNCHRONIZATION.md#troubleshooting) |
| 100 | + |
| 101 | +### Security Review |
| 102 | +1. Read threat model: [SECURITY_ARCHITECTURE.md#threat-model](SECURITY_ARCHITECTURE.md#threat-model) |
| 103 | +2. Review authentication: [SECURITY_ARCHITECTURE.md#authentication](SECURITY_ARCHITECTURE.md#authentication) |
| 104 | +3. Check encryption: [SECURITY_ARCHITECTURE.md#encryption](SECURITY_ARCHITECTURE.md#encryption) |
| 105 | +4. Verify best practices: [SECURITY_ARCHITECTURE.md#security-best-practices](SECURITY_ARCHITECTURE.md#security-best-practices) |
| 106 | + |
| 107 | +## 🗺️ Documentation Map |
| 108 | + |
| 109 | +``` |
| 110 | +docs/ |
| 111 | +├── TECHNICAL_DOCUMENTATION.md ← START HERE (Index) |
| 112 | +│ |
| 113 | +├── Core Technical Docs |
| 114 | +│ ├── ARCHITECTURE.md (System design) |
| 115 | +│ ├── DATABASE.md (Data layer) |
| 116 | +│ ├── SYNCHRONIZATION.md (Sync system) |
| 117 | +│ ├── SCRIPTING.md (User scripting) |
| 118 | +│ └── SECURITY_ARCHITECTURE.md (Security) |
| 119 | +│ |
| 120 | +├── Developer Guide/ |
| 121 | +│ └── Developer Guide/ (Development setup) |
| 122 | +│ |
| 123 | +├── User Guide/ |
| 124 | +│ └── User Guide/ (End-user docs) |
| 125 | +│ |
| 126 | +└── Script API/ (API reference) |
| 127 | +``` |
| 128 | + |
| 129 | +## 💡 Tips for Reading Documentation |
| 130 | + |
| 131 | +1. **Start with the index:** [TECHNICAL_DOCUMENTATION.md](TECHNICAL_DOCUMENTATION.md) provides an overview |
| 132 | +2. **Use search:** Press Ctrl+F / Cmd+F to find specific topics |
| 133 | +3. **Follow links:** Documents are cross-referenced for easy navigation |
| 134 | +4. **Code examples:** Most docs include practical code examples |
| 135 | +5. **See Also sections:** Check bottom of each doc for related resources |
| 136 | + |
| 137 | +## 🔗 External Resources |
| 138 | + |
| 139 | +- **Website:** https://triliumnotes.org |
| 140 | +- **Online Docs:** https://docs.triliumnotes.org |
| 141 | +- **GitHub:** https://github.com/TriliumNext/Trilium |
| 142 | +- **Discussions:** https://github.com/TriliumNext/Trilium/discussions |
| 143 | +- **Matrix Chat:** https://matrix.to/#/#triliumnext:matrix.org |
| 144 | + |
| 145 | +## 🤝 Contributing to Documentation |
| 146 | + |
| 147 | +Found an error or want to improve the docs? See: |
| 148 | +- [Contributing Guide](../README.md#-contribute) |
| 149 | +- [Documentation Standards](TECHNICAL_DOCUMENTATION.md#documentation-conventions) |
| 150 | + |
| 151 | +--- |
| 152 | + |
| 153 | +**Version:** 0.99.3 |
| 154 | +**Last Updated:** November 2025 |
| 155 | +**Maintained by:** TriliumNext Team |
0 commit comments