- synapse-ffi: graph_data() returns the whole page-level graph (links, tags,
property refs, block refs/embeds per page, unlinked mentions, decayed
synapses) as parallel arrays with degree, backlinks, Louvain clusters and
primary tags; cached by op seq, synapse state and hour.
- synapse-ffi: ForceLayout, a Barnes-Hut force layout stepped from Dart on a
Rust worker thread (pin/unpin for dragging, reheat).
- app: Graph view with a mode selector (Network, Local, Synapses, Clusters,
Namespaces, Timeline), filters (title, tag, date range, min links,
orphans, journals, mentions), pan/zoom, node drag, hover highlighting,
activation pulse, cluster hulls, radial namespace/tag tree, and a local
graph panel on every page. Edges render as one vertex mesh, nodes in
colour/size batches, culled to the viewport.
- Tests: Rust extraction/mentions/cache/clusters/layout; widget tests for
mode switching, filters and layout restarts; a real-app integration
smoke test with frame timings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Single operations skip their own savepoint when an enclosing transaction
exists, SQL goes through the prepared-statement cache, and the page cache
and temp store stay in memory. 208k-block import: 65 s -> 19 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- empty bullets no longer panic the outline parser
- weekday names with non-ASCII letters (miércoles) no longer panic the date parser
- journal refs are recognised in the configured title format and in Logseq's
default one, so graphs whose format changed keep their date links
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- upload_blob resumes until the server confirms the blob (202/409 are not success)
- missing local blob skips its PutAsset instead of blocking all later ops
- failed blob downloads are counted and retried, not fatal to the cycle
- server validates pushed ops (hash, hlc, clock skew) and returns per-op rejections
- pulled ops that can never apply are quarantined; storage errors stay fatal
- SYNAPSE_MAX_CLOCK_SKEW_MINUTES; document Arc<Mutex<Graph>> handle for the FFI
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Both run inside Graph::transaction so a failure halfway rolls every change
back. Adds a fault-injection hook and a regression test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- indent, outdent and merge run in one Graph::transaction, so a failure
part-way no longer duplicates merged text or strands siblings.
- Placements check that the anchor block exists and is on the target page.
- SynapseGraph holds Arc<Mutex<Graph>> and exposes shared() (not bridged)
for the sync client.
- docs: rustup's cargo must come first in PATH; sync wording.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- page_tree shows orphans and parent cycles (from concurrent moves) as roots;
descendants CTE and move_block ancestor walk are cycle-safe
- title conflicts compare titles only (not aliases), journals keep their title,
and loser suffixes use the random id tail so they cannot collide
- aliases get an HLC and tombstones (last-writer-wins)
- remote page deletes cascade to blocks; LastChildOf validates the parent
- reject empty and date-shaped titles on create/rename; ensure_page redirects
dates to journals; rename rewrites refs inside block properties
- single-row writes run inside savepoints; invalid remote asset hashes are
ignored and never reach blob paths; HLC counter cannot overflow its width
- busy_timeout for multi-connection use; schema v2 migration
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Importer runs its write phase in one transaction (replaces the
synchronous=OFF workaround); the FFI journals feed uses journals_before
instead of walking back one day per query.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Page and journal views read through the write queue after the previous
view's pending saves, so they never load stale text.
- A failed write reloads the current view and shows a message instead of
leaving blocks on temporary ids; inserts also trigger reconciliation.
- Completion replaces the query range, not up to the caret, and closes
when the caret moves away.
- Renaming a page reloads it so rewritten links are not overwritten.
- Dropping below an expanded parent lands as its first child, where the
indicator is drawn.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Logseq-like outliner (render/edit Markdown per block, Enter/Tab/Shift-Tab,
backspace merge, arrow navigation, drag to reorder, collapse, [[ # ((
autocomplete, TODO/DONE), journals feed with prev/next links, page view with
linked references and related panel, virtualised CustomPainter timeline,
Ctrl+K quick switcher, sidebar with recents, light/dark theme with bundled
Inter, Noto Serif and Source Code Pro. Edits are optimistic and serialised
to the core through one write queue. Cargokit builds synapse-ffi; its build
tool is patched to use the library name (synapse_ffi) of hyphenated crates.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merging a first child into its parent now gives its children the merged
block's slot instead of appending them after the parent's other children.
PageView clashed with Flutter's PageView widget in Dart.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deterministic Logseq-compatible Markdown export committed to a bare gix
repository, incremental snapshots driven by the op log, snapshot policy,
page history/diff, restore through the Graph API and pure-Rust HTTP push.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Domain model, SQLite graph store, link parser, journals chained in time,
page origin/activity anchors, weighted synapses with spreading activation,
content-addressed blob store and HLC op log with LWW remote apply.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add root CLAUDE.md, LESSONS.md, .env.example, .claude/settings.json
hooks (PostToolUse lint, Stop lint+test via bb dev:lint-and-test), and
a .gitea/workflows/ci.yml lint+test workflow. No development branch
exists here, so CI targets main; version.yml automation is skipped
since this repo already has its own tag-driven release/version flow
(scripts/bump-version.sh, build.yml on v* tags).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Rebrands user-facing product identity from Logseq to Synapse (package
metadata, Electron appId/protocol scheme, Android/iOS display names, HTML
titles, and the English UI dictionary), authored by Darío Sevilla
<dario@dariosevilla.es>. Internal Clojure namespaces, :logseq.class/*
and :logseq.property/* DB schema idents, and deps.edn's upstream git
dependency coordinates are intentionally left untouched -- those are
either persisted data in existing graphs or point at real upstream repos,
and renaming them has no user-visible benefit.
Also:
- .gitea/workflows/build.yml: Linux (AppImage/deb/rpm), Windows (nsis),
and Android (debug APK) build jobs.
- deploy/: systemd unit + Caddyfile templates for a self-hosted VPS
(daemon on loopback, Caddy reverse-proxies /v1/*, /mcp, /healthz and
serves the static web client with TLS).
- gulpfile.js / prepare-desktop-runtime-js.mjs: LOGSEQ_SKIP_CLI_BUNDLE
skips the cli/ OCaml package (no toolchain in this environment) instead
of failing the build; LOGSEQ_ELECTRON_BUILDER_ARGS lets CI override the
packaged Linux targets independently of the local default.
- resources/electron-builder.yml: drop the extraResources entry for a
SKILL.md that doesn't exist in this fork, and the author.email fix
needed for the rpm/deb targets' Packager/Maintainer metadata.
B8 - executable code blocks with a real kernel:
- worker/handler/kernel.cljs: one persistent SCI interpreter session per
page, reused across block evaluations so defs/state survive between runs.
Deliberately scoped to the same privileges the existing client-side
single-shot evaluator already had (no shell/fs access, no call-api).
- Run button + result display wired into block.cljs's code-block UI.
- New :logseq.property.code/result and /executed-at properties (65.38).
B9 - live notes: pages tagged #LiveNote that fetch external content on a
refresh schedule and render it via the render-resource pipeline:
- worker/handler/live_notes.cljs: per-block credential storage, scheduled
refresh (Node-only), thread-apis for manual refresh and auth.
- worker/handler/render_resource/live_note.cljs: reads back fetched content,
watching [:entity block-uuid] for reactive invalidation.
- New :logseq.class/LiveNote + :logseq.property.livenote/* properties (65.39).
Bugs found and fixed along the way while actually exercising page creation
through page-handler/create! for the first time in a test (previously only
pure-fn tests existed for CalDAV/Event/Contact):
- logseq-property-namespaces (property.cljs) was missing the citation/event/
contact/caldav/livenote namespaces, causing auto-create-ontology to treat
already-built-in properties as new user idents.
- outliner/page.cljs's build-page-tx always added the generic #Page tag even
when the caller tagged with a built-in class that extends #Page, which
malli-schema rejects as conflicting; it also lost the property type when
building ref-typed property values for new pages, breaking non-:default
types like :number.
- entity-util/page? never recognized Event/Contact/LiveNote as pages (only
Journal/Whiteboard/Tag/Property/Page had dedicated recognition), so pages
tagged with those classes alone weren't treated as pages anywhere in the
app; added built-in-page-child? alongside the existing per-class checks.
- caldav.cljs's upsert-page! passed a bare keyword as a tag where an entity
was required, and two error logs passed raw error objects to glogi that
triggered runaway recursion in this test environment; both fixed.
- New built-in classes Event and Contact (schema 65.37), plus a
Calendar View view type alongside table/list/gallery, backed by a new
fixed month-grid calendar-view component in components/views.cljs
reusing the existing scheduled/deadline properties.
- New worker/handler/caldav.cljs: a deliberately-scoped CalDAV
(VEVENT/VTODO) + CardDAV (VCARD) client against a single Nextcloud
calendar/addressbook collection, with its own minimal iCalendar/vCard
encoder-decoder and namespace-agnostic multistatus XML extraction
(no external ical/rrule/xml dependency exists in this project).
- RRULE <-> :logseq.property.repeat/* translation covers only the
`plus` (advance-from-scheduled) repeat mode with a bare FREQ(;INTERVAL)
rule -- dotted-plus/double-plus and anything with BYDAY/COUNT/UNTIL
are left untranslated on purpose rather than mistranslated.
- Credentials live in the platform keychain (save-secret-text!), never
in the graph. Sync runs Node-only, every 15 minutes per open repo,
started/stopped alongside the repo's lifecycle in db_core.cljs.
Conflicts are last-write-wins via ETag: a 412 on push is skipped and
retried after the next pull refreshes the stored ETag.
- combine-results now applies a bounded (never below 0.5x) exponential
decay based on :block/updated-at, so more recently touched blocks/pages
rank slightly higher for otherwise-equal matches.
- New search/similar-blocks reuses the existing zvec index: fetch a
block's own already-indexed embedding (new :fetch capability on
open-vector-index, via zvec's fetchSync) and re-query the index with
it instead of embedding a fresh query string.
- Exposed as a :similar-pages render-resource (worker/handler/render-resource/similar.cljs),
consistent with how linked/unlinked references are already wired, plus
a raw :thread-api/search-similar-blocks for non-UI callers.
- New "Similar pages" section on the page view, above the existing
linked/unlinked references.
Adds a third :temporal view mode alongside :tags-and-objects and
:all-pages. The backend reuses build-all-pages-graph's node/link shape
unchanged (every node already carries :block/created-at); only the
client-side pixi layout differs, arranging nodes along a fixed
chronological timeline (oldest first, staggered across a few lanes)
instead of running the force simulation, following the existing
grid-layout fixed-position precedent.
B3: registers :logseq.class/Project and :logseq.class/Area as
built-in page-like classes (the TODO in class.cljs already asked for
this), so users can tag pages/journals with them out of the box.
Fixed a markdown-mirror test whose "Custom Tag" fixture used to be
titled "Project" and collided with the new built-in class.
B4: adds :logseq.class/Citation plus /target and /context properties,
following the :logseq.class/Comments pattern. Since target is a
:node-typed ref, citation blocks automatically show up in the
existing block/citation reference graph without any changes there.