Skip to main content

Logseq Graph

@dieter/logseq-graphv2026.11.05.1· MIT(was none)· 16d agoBEHAVIORSACCEPTED WARNINGS
01README

Read a local Logseq Markdown graph into typed, queryable page and block resources.

02Behaviors1
@dieter/logseq-graphv2026.11.05.3extensions/models/logseq-graph/logseq_graph.ts

Global Arguments

ArgumentTypeDescription
graphPathstringAbsolute 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.
ArgumentTypeDescription
date?iso.dateExact scheduled date or upper bound
before?booleanInclude 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.
ArgumentTypeDescription
dryRun?booleanReport 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.
ArgumentTypeDescription
dryRun?booleanReport proposed changes without writing files; defaults to true
namespacestringNamespace to remove from page references and page titles
propertyKeystringPage property key to add or update
propertyValuestringPage property value to add or update
mergeExistingPages?booleanMerge a namespaced page into an existing page with the target title
titleMappings?recordExplicit 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
ArgumentTypeDescription
propertyKeystringPage property key to match and update
fromValuestringCurrent property value to match
toValuestringReplacement property value
tagstringTag to add to the tags page property, with or without a leading #
tagsProperty?stringPage 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 Versions7
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

06Platforms