Logseq Graph
@dieter/logseq-graphv2026.11.05.1
01README
Read a local Logseq Markdown graph into typed, queryable page and block resources.
02Behaviors
@dieter/logseq-graphv2026.11.05.3extensions/models/logseq-graph/logseq_graph.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| graphPath | string | Absolute path to the Logseq graph |
fn scan()
Read pages and journals and emit typed page, block, and summary resources.
fn scheduled(date?: iso.date, before?: boolean)
Find blocks with scheduled dates, optionally selecting one date or dates before it.
| Argument | Type | Description |
|---|---|---|
| date? | iso.date | Exact scheduled date or upper bound |
| before? | boolean | Include dates before the selected date |
fn journalFormats()
List the current journal page-title format and distinct formats recorded in Git history.
fn journalLinks()
Print and store Markdown lines containing journal links in a historical title format.
fn rewriteJournalLinks(dryRun?: boolean)
Rewrite historical journal links using the current title format; dry-run is the default.
| Argument | Type | Description |
|---|---|---|
| dryRun? | boolean | Report proposed changes without writing files; defaults to true |
fn convertNamespaceToPropertyBasedItems(dryRun?: boolean, namespace: string, propertyKey: string, propertyValue: string, mergeExistingPages?: boolean, titleMappings?: record)
Convert references in a configurable namespace into un-namespaced pages and add a configurable page property; dry-run is the default.
| Argument | Type | Description |
|---|---|---|
| dryRun? | boolean | Report proposed changes without writing files; defaults to true |
| namespace | string | Namespace to remove from page references and page titles |
| propertyKey | string | Page property key to add or update |
| propertyValue | string | Page property value to add or update |
| mergeExistingPages? | boolean | Merge a namespaced page into an existing page with the target title |
| titleMappings? | record | Explicit replacements keyed by the unqualified name or <namespace>/<name>; use this for spell corrections that cannot be inferred from underscores or camel case |
fn updatePagePropertyAndTag(propertyKey: string, fromValue: string, toValue: string, tag: string, tagsProperty?: string)
Update matching page properties and add a tag to each matching page
| Argument | Type | Description |
|---|---|---|
| propertyKey | string | Page property key to match and update |
| fromValue | string | Current property value to match |
| toValue | string | Replacement property value |
| tag | string | Tag to add to the tags page property, with or without a leading # |
| tagsProperty? | string | Page property containing tags |
Resources
page(infinite)— A Logseq page and its outgoing references
block(infinite)— A Logseq block and its outgoing references
summary(infinite)— Counts and timestamp for a completed graph scan
scheduledSummary(infinite)— Counts for a scheduled-block query
scheduled(infinite)— Blocks matching a scheduled-date query
journalFormats(infinite)— Current and historical Logseq journal page-title formats
journalLinks(infinite)— Historical journal links found or rewritten by a migration run
namespaceConversion(infinite)— Planned or applied conversion of namespaced pages and references into property-based items
pagePropertyUpdate(infinite)— Pages selected by an existing property value, with that value updated and a tag added
03Previous Versions
2026.10.07.1
2026.09.20.2
2026.09.20.1
2026.08.28.4
2026.08.28.3
2026.08.28.2
2026.08.28.1
04Stats
A
100 / 100
Downloads
31
Archive size
24.4 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
deno-command2 accepted
Spawns a subprocess with Deno.Command().
- models/extensions/models/logseq-graph/journal_dates.ts:197 — no reason given
- models/extensions/models/logseq-graph/journal_dates.ts:238 — no reason given
06Platforms