How enigmaspy/atomnote works
AtomNote is an Electron knowledge-management environment for organizing a worldline as atoms and note-like electrons, with graph navigation, Markdown editing, structural warnings, and study tools. The main workflow runs from the Garden UI through the preload/IPC boundary to directory parsing and note access; parsed data then drives navigation, editing, and study. The README documents safe metadata IPC and a two-level directory rule. Some IPC handlers, storage services, and graph/study views were not excerpted, so uncertain implementation links are omitted.
Main entry points: GardenView.tsx Garden view · index.ts Main process · worldline-parser.ts Worldline parser · atom-parser.ts Atom parser
Components 26
Garden interface
- Garden view
src/renderer/src/views/GardenView.tsx - Note editor
src/renderer/src/components/editor/NoteEditor.tsx - Note metadata
src/renderer/src/components/editor/NoteMeta.tsx - Worldline navigation
src/renderer/src/components/worldline/WorldlineNav.tsx - Atoms tree
src/renderer/src/components/worldline/AtomsTree.tsx - Worldline graph
src/renderer/src/components/graph/WorldlineGraph.tsx - Create atom UI
src/renderer/src/components/worldline/CreateAtomModal.tsx - Worldline state
src/renderer/src/store/worldlineStore.ts
Electron boundary
- Main process
src/main/index.ts - Preload bridge
src/preload/index.ts - Worldline IPC
src/main/ipc/worldline.ipc.ts - Note file IPC
src/main/ipc/electron.ipc.ts - Study IPC
src/main/ipc/study.ipc.ts - Path helper IPC
src/main/ipc/helpers.ipc.ts
Worldline parsing
- Worldline parser
src/main/services/worldline/worldline-parser.ts - Atom parser
src/main/services/atom/atom-parser.ts - Electron parser
src/main/services/electron/electron-parser.ts
Study workflow
- Study sync
src/renderer/src/components/providers/StudySyncManager.tsx - Study state
src/renderer/src/store/studyStore.ts - Flashcard session
src/renderer/src/components/Study/FlashcardSession.tsx - Flashcard preview
src/renderer/src/components/Study/FlashcardsPreview.tsx - Quiz preview
src/renderer/src/components/Study/QuizPreview.tsx
Shared contracts
- IPC contract
src/shared/ipc-contract.ts - JSON metadata I/O
src/shared/utils/json.ts
Other components
- User
- Worldline files
Connections 23
- User → Garden view: uses
- Garden view → Note editor: renders
src/renderer/src/views/GardenView.tsx - Garden view → Note metadata: renders
src/renderer/src/views/GardenView.tsx - Garden view → Worldline navigation: renders
src/renderer/src/views/GardenView.tsx - Garden view → Worldline graph: renders
src/renderer/src/views/GardenView.tsx - Garden view → Create atom UI: renders
src/renderer/src/views/GardenView.tsx - Garden view → Study sync: wraps
src/renderer/src/views/GardenView.tsx - Garden view → Flashcard session: renders
src/renderer/src/views/GardenView.tsx - Garden view → Flashcard preview: renders
src/renderer/src/views/GardenView.tsx - Garden view → Quiz preview: renders
src/renderer/src/views/GardenView.tsx - Worldline navigation → Atoms tree: renders
src/renderer/src/components/worldline/WorldlineNav.tsx - Study sync → Worldline state: reads selection
src/renderer/src/components/providers/StudySyncManager.tsx - Study sync → Study state: loads study
src/renderer/src/components/providers/StudySyncManager.tsx - Main process → Worldline IPC: registers
src/main/index.ts - Main process → Note file IPC: registers
src/main/index.ts - Main process → Study IPC: registers
src/main/index.ts - Main process → Path helper IPC: registers
src/main/index.ts - Preload bridge → IPC contract: uses channels
src/preload/index.ts - Worldline IPC → Worldline parser: invokes parse
src/main/ipc/worldline.ipc.ts - Worldline parser → Atom parser: parses atoms
src/main/services/worldline/worldline-parser.ts - Atom parser → Electron parser: parses notes
src/main/services/atom/atom-parser.ts - Worldline parser → Worldline files: reads metadata
src/main/services/worldline/worldline-parser.ts - Atom parser → Worldline files: reads and adopts metadata
src/main/services/atom/atom-parser.ts