mirror of
https://github.com/Dasemu/Logseq-SemiLinear-Graph.git
synced 2026-11-26 07:16:18 +00:00
1.4 KiB
1.4 KiB
Architecture
How it works
parse_graph.pywalks thejournals/andpages/folders of a Logseq graph, extracts[[...]]links and#tags, resolves journal-date links (format[[Apr 27th, 2026]]) against theyyyy_MM_dd.mdfiles, and dumps everything tograph_data.json(nodes, edges, and each node's degree).build_html.pytakesgraph_data.jsonand generatesgraph_view.html: a self-contained page (D3.js vendored invendor/d3.min.js, no network dependencies) with the interactive visualizer.
Both scripts default to reading the graph from ~/Notas; edit the NOTAS,
DATA_PATH/OUT_PATH constants at the top of each script to point elsewhere.
Viewer
- Zoom / pan: mouse wheel and drag on the background.
- Drag a node: pins it at that position.
- Search box: highlights notes by name.
- "Layout forces" panel: live controls for the simulation — vertical spread, repulsion between notes, attraction to journals, cohesion between related notes, distance to journal, and anti-collision padding. Buttons to reheat the simulation or restore the defaults.
Generated artifacts
graph_data.json and graph_view.html contain the actual content of a personal
Logseq graph (page names, dates, note titles) and are excluded via .gitignore —
they are never committed. Only the generator code is versioned.