Skip to content

Releases

Bases Serializer 0.1.1

Choose a tag to compare

@github-actions github-actions released this 13 Oct 01:00

Bases Serializer 0.1.1

Freeze a Bases view into real Markdown — links, tasks and text that exist
outside the .base, so they show up in the Graph, in Search, in Publish and in
exports.

Bases views are dynamic by nature, which means their results aren't text anywhere.
Bases Serializer writes the current result as ordinary Markdown, wrapped in sentinel
comments, so you can re-run it any time and update the block in place.

Highlights

  • A new Bases view type — Serializer — add it like any other view. You get a
    live preview of exactly what will be written, plus a row count and target.
  • Four formats — List, Checklist, Numbered, Table, switchable from the
    toolbar without opening the view options.
  • Refresh in place — output is wrapped in %% bases-serializer key="…" %%
    sentinels, so re-serializing replaces only that block. Send several, keyed
    independently, into the same note.
  • Groups — respects Bases' Group by, with a header template
    (### {group} ({count}) by default).
  • Embedded or standalone — embed the base in a note and serialize right below the
    embed (![[tasks.base#Today]] → its frozen snapshot), or point a view at a Target
    note
    / Section heading.
  • Freeze — optionally swap the live embed for plain Markdown, leaving no embed and
    no sentinels behind: a fully "baked" note.
  • Make it yours — row templates ({link}, {note.due}, {title}, …), inline or
    sub-item details, property labels, link style, preamble, no-results text.
  • No lock-in — a .base plus whichever plugins you already use; no new syntax to
    learn, and nothing added to the notes you query.

Install

Settings → Community plugins → Browse → "Bases Serializer", or from the
community directory. Until
it's listed there, install with
BRAT
(pedroilidio/obsidian-bases-serializer), or copy main.js, manifest.json and
styles.css into <vault>/.obsidian/plugins/bases-serializer/.

Requirements

  • Obsidian 1.10.0+ (the public Bases API) with Bases enabled.
  • The plugin is a view type: it serializes its own Serializer views, not the
    built-in Table/Cards views.
  • Read-only with respect to the notes it queries — it only ever writes the target note.

Changes since the 0.1.0 build

Following automated review for the community directory; no behaviour changes:

  • Dropped the builtin-modules build dependency in favour of Node's built-in
    node:module.
  • Removed an Object.fromEntries() call that TypeScript widened to any
    (no-unsafe-assignment / no-unsafe-call).

Feedback and bug reports welcome via issues. If it saves you time, you
can buy me a coffee. ❄️