Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

bibmd

Daniel Christian MadsenDaniel Christian Madsen40 downloads

Draws fenced bib blocks live: small programs over the note's data, shown as sliders, choices, cards, tables and charts.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates4

Notes that compute. Write a small program in a fenced bib block and Obsidian shows it as sliders, choices, buttons, cards, tables and charts that update as you move them, right inside the note.

---
data:
  rooms: [{ name: Kitchen, m2: 12 }, { name: Living room, m2: 28 }, { name: Bedroom, m2: 16 }]
---
```bib
let coats = state("coats", 2)
let price = slider("Paint, EUR a litre", 10, 60, value: 25, step: 5)
row(fit: true) {
  if button("One coat", style: ghost, disabled: coats == 1).clicked { set("coats", 1) }
  if button("Two coats", style: ghost, disabled: coats == 2).clicked { set("coats", 2) }
}
```

Walls are about three times the floor, and a litre covers 10 m².

```bib
for r in data.rooms {
  let litres = r.m2 * 3 * coats / 10
  stat(r.name, round(litres * price), unit: "EUR")
}
```

Drag the slider or press a button, and the costs under the prose change with it.

What you get

  • One note, one program. Every bib block in a note is part of the same program. A let in one block can be used in the next, so a slider at the top can drive a chart three paragraphs down, with ordinary writing in between.
  • Your data stays in the note. The front matter's data: and any bib data blocks (plain YAML) are what the program reads. A bib data block doesn't draw anything.
  • Buttons that do things. state() and set() give a note its own memory: presets that move sliders, steps through a checklist or a wizard, another roll of the dice.
  • Looks like Obsidian. Blocks pick up your theme's colours, the note's font and text size, and Obsidian's own text fields and sliders, in light and dark mode.
  • Doesn't change your file. What you type and pick stays while Obsidian is open, and isn't lost when you edit the note. None of it is written to the file.

The language is bibdoc, and its reference lists every widget. The same notes open in bibmd, the desktop reader, and on bibmd.app.

Installing

From the latest release, put main.js, manifest.json and styles.css in <vault>/.obsidian/plugins/bibmd/. Then turn on bibmd under Settings → Community plugins. Desktop only (Obsidian 1.5 or later).

Disclosures

  • Network: none. bibmd and its .NET runtime are inside main.js (about 4 MB) and are unpacked in memory; nothing is downloaded or sent.
  • Files outside the vault: on Linux, the plugin runs fontconfig (fc-list, fc-match) to find the note's font and reads that font's files, so the blocks match the note. Nothing else outside the vault is read or written.

Building it

With the .NET 10 SDK and its wasm-tools workload (dotnet workload install wasm-tools):

npm install
wasm/fetch-sources.sh    # bibmd, bibdoc and bibui at the commits wasm/sources.json pins,
                         # and bibui's FreeType and HarfBuzz for the browser
npm run wasm             # the .NET app, in wasm/out
npm run package          # it and its licences as dist/bibmd-wasm.zip
npm run build            # main.js: the plugin, .NET's loader and that zip
npm run lint             # Obsidian's own lint rules
./install.sh <vault>     # copies the build into <vault>/.obsidian/plugins/bibmd/

The build is deterministic: the same sources give the same main.js, so you can check a release against one you build yourself.

How it works

Each block is a <canvas> drawn by bibmd's own renderer, the same code the desktop reader uses, compiled to WebAssembly with bibui as its UI toolkit.

  • src/main.ts registers the bib code block processor; src/scan.ts finds a note's blocks.
  • src/wasm.ts unpacks the .NET app in memory and starts it once, handing .NET's loader each file it asks for. It gives each block a canvas and reads the theme (colours, font, control sizes) from Obsidian's CSS variables.
  • wasm/ is the .NET app: bibmd's Bib.cs, Charts.cs, Document.cs, Blocks.cs, Fences.cs and Text.cs, compiled as they are, with bibdoc's interpreter and bibui's browser platform. All the blocks of a note run as one program. wasm/patch-node.mjs makes .NET's loader treat Obsidian (Electron, with Node in it) as the browser it is, and gives the modules it runs from memory an address to resolve relative paths against.

License

MIT (LICENSE). Inside main.js: bibmd and bibdoc (MIT), bibui (Apache-2.0, with its NOTICE), the .NET runtime (MIT), FreeType (FTL) and HarfBuzz (MIT). Their licence texts are in the embedded zip's licenses/ folder, and at the links above.

HealthExcellent
ReviewSatisfactory
About
Render fenced bib blocks live using bibmd's renderer on .NET WebAssembly, drawing each block as an interactive canvas. Treat all bib blocks in a note as one program that shares variables, and use front-matter and bib data blocks as the program's data. Preserve input values while Obsidian is open; desktop only.
DrawingVisualization
Details
Current version
0.1.4
Last updated
7 days ago
Created
2 weeks ago
Updates
4 releases
Downloads
40
Compatible with
Obsidian 1.5.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
Daniel Christian MadsenDaniel Christian Madsenrelu24
GitHubrelu24
  1. Community
  2. Plugins
  3. Drawing
  4. bibmd

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

tldraw

Integration with tldraw, allowing users to draw and edit content on a virtual whiteboard.

Kroki

Render Kroki diagrams.

Simple mind map

A mind map that combines aesthetics and functionality. 一个颜值与功能并存的思维导图。

Mermaid Flow

Create and edit Mermaid flowcharts visually by dragging nodes and drawing connections. No Mermaid syntax required.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.