Class ObsidianExporter

Exports memory traces as an Obsidian-compatible Markdown vault.

Usage:

const exporter = new ObsidianExporter(brain);
await exporter.export('/path/to/obsidian-vault');

Hierarchy (view full)

Constructors

Methods

  • Export all memory traces as Obsidian-flavoured .md files.

    Pre-fetches all knowledge-edge relationships into an in-memory cache, then delegates to the parent export() method. Directory creation and file writing are handled there; only buildFileContent is overridden.

    Parameters

    • outputDir: string

      Root directory to write the Obsidian vault into.

    • Optional options: ExportOptions

      Optional export configuration.

    Returns Promise<void>

  • Build Obsidian-flavoured Markdown for a trace.

    Additions over the base implementation:

    • Tags are rendered as #tagName inline hashtags in the body.
    • Related knowledge nodes (found via knowledge_edges) are rendered as [[Node Label]] wikilinks appended at the bottom of the note.

    Parameters

    • trace: TraceRow

      Parsed trace row.

    Returns string

    Full Markdown file content with front-matter.

Properties

The SqliteBrain instance to read from.