How davidmyersdev/octo works
Octo is a local-first knowledge-management app for creating and organizing plain-text documents, working offline, and syncing private data across devices. The principal workflow is to edit documents, organize and find them, and retain them locally; optional capabilities include encryption, attachments, workspaces, import/export, and an assistant. The graph reflects README-described capabilities and a few source-visible package/database relationships; many runtime connections are not shown in the sampled excerpts, so those links are omitted.
Main entry points: index.ts Local database · app.vue App entry · DocEditor.vue Document editor · doc.ts Document model
Components 22
App experience
- App entry
app.vue - App shell
layouts/dashboard.vue - Page routes
pages/_routes.vue - Core link
components/CoreLink.vue - User settings
composables/useSettings.ts
Knowledge workflow
- Document editor
components/DocEditor.vue - Document model
src/models/doc.ts - Document search
composables/useSearch.ts - Hashtag parsing
lib/hashtagged/parser.ts - Recent documents
src/stores/useRecentDocs.ts - Workspaces
composables/useWorkspaces.ts - Import and export
components/settings/Import.vue
Local data and sync
- Local database
src/db/databases/legacy/index.ts - Encryption
src/common/crypto/asymmetric.js - Cloud sync
src/store/plugins/sync.ts - Firebase services
src/firebase.js - File attachments
src/firebase/storage.ts - Index helper
src/db/utils/toIndexes.ts
Extended capabilities
- AI assistant
components/Assistant.vue - Package manager
src/packages/manager.js - Package interface
src/packages/interface.js
Other components
- User
Connections 18
- User → App entry: uses
- App entry → App shell: opens workspace
- User → Document editor: edits documents
- Document editor → Document model: edits plain-text
- User → Document search: searches documents
- User → Hashtag parsing: organizes with
- User → Workspaces: organizes in
- User → Recent documents: revisits documents
- Document model → Local database: stored locally
- Local database → Cloud sync: syncs data
- Cloud sync → Firebase services: syncs across devices
- User → Encryption: enables encryption
- User → File attachments: adds attachments
- User → Import and export: imports or exports
- User → User settings: configures appearance
- User → AI assistant: uses assistant
- Package manager → Package interface: creates interface
src/packages/manager.js - Local database → Index helper: uses indexes
src/db/databases/legacy/index.ts