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

WaveJSON

udarentudarent42 downloads

Render WaveJSON timing diagrams in your notes and edit them in place.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates10

An Obsidian plugin that renders WaveJSON timing diagrams inside your notes — and lets you edit them in place, without leaving the note.

A WaveJSON block rendered in a note

Features

  • Write, don't draw. Put a wavejson code block in any note and the diagram appears in reading view.
  • Edit in place. Click the pencil, change the waveform, click the checkmark. The code block is updated for you — no round trip to an external editor.
  • Renders like the original. Same arrow shapes, group brackets, phase shifts and data labels as WaveDrom.
  • Fits your note. The diagram scales to the width of the code block; Ctrl/⌘ + scroll to zoom.
  • Stays out of the way. Styles are scoped inside the plugin, so your theme and the plugin never fight.

Installation

BRAT (recommended while the plugin is not in the community list)

  1. Install BRAT and enable it.
  2. Run BRAT: Add a beta plugin for testing.
  3. Enter udarent/obsidian-plugins-wavejson and confirm.

Manual

  1. Download manifest.json, main.js and styles.css from the latest release.
  2. Put all three in <your-vault>/.obsidian/plugins/wavejson/.
  3. Reload Obsidian (Ctrl/⌘ + R), then enable WaveJSON under Settings → Community plugins.

This plugin is not in the community plugin list yet, so it will not show up in Browse.

Usage

Add a fenced code block with the language wavejson:

```wavejson
{ "signal": [
  { "name": "clk",  "wave": "p......" },
  { "name": "data", "wave": "x.34.5x", "data": ["head", "body", "tail"] }
] }
```

In reading view the block renders as a diagram (see the screenshot at the top of this page).

Editing

  • Hover the diagram and click the pencil in the top-right corner.
  • Change the source, or click directly on waveform cells.
  • Click the checkmark (or press Esc) to leave editing. The code block is rewritten with your changes.
  • While editing, the toolbar offers undo, redo, split direction, and a source/diagram toggle.

The file is only written when you leave editing — the plugin never writes to your vault while you type.

Supported syntax

Each object in the signal array is a row:

Field Meaning
name Row label
wave Waveform string — one character per time slot
data Labels for bus rows, in order ("x.34." + ["head","body"] → 3 = head, 4 = body)
node Anchor letters used by edge (.a.... puts anchor a in slot 1)
phase Shift the row left (0.5) or right (-0.5) by a fraction of a slot
period Stretch each character across period slots

Common wave characters: 0/1 low/high, x undefined, z high-impedance, p/P positive clock, n/N negative clock, d/u falling/rising edge, =/2–9 data, . hold previous value.

Groups, blank rows and edges:

{ "signal": [
  { "name": "a", "wave": "01....", "node": ".a...." },
  { "name": "b", "wave": "0..1..", "node": "...b.." },
  {},
  ["bus", { "name": "d0", "wave": "x.3.x" }]
], "edge": ["a~>b", "b->a"] }

edge entries connect node anchors, not row names — a row without a node field cannot be an endpoint, and such an edge is skipped silently.

When a diagram fails to parse

If the source has a syntax error, the diagram area is left empty and a red line appears under the block:

Parse error shown below the block

The message comes straight from the parser (Draft: expected , or ] @48 …). Nothing is lost — fix the JSON and the message disappears.

Two behaviours worth knowing:

  • Unknown characters in wave are ignored, not reported. 0@1 renders as if the @ were not there. That is the parser's tolerant mode, not a bug.
  • Only syntax errors are reported. A structurally valid but visually wrong diagram will simply look wrong.

Limitations

  • The block is written back only when you leave editing. If you switch to another note mid-edit and return to the same tab (Obsidian keeps the view alive), your unsaved changes are still there and will be saved when you click the checkmark.
  • The editing area has a fixed height of min(72vh, 560px).
  • Diagrams are not searchable — Obsidian only indexes the code block source.

Development

The renderer and editor come from TimingBench; this repository only contains the plugin shell. To build, clone both repositories side by side:

<workspace>/
  TimingBench/                    # renderer + editor core
  obsidian-plugins-wavejson/      # this repo
npm install
npm run build     # bundles the core into main.js
npm run sync      # copies the build into a test vault (--dest=<vault path> to point elsewhere)

main.js is committed: it is what users install, and the release workflow ships it as-is without rebuilding.

Credits

  • Renderer and editor: TimingBench
  • Diagram syntax: WaveDrom by Aliaksei Chapyzhenka

License

MIT © udarent

HealthExcellent
ReviewSatisfactory
About
Render WaveJSON code blocks into interactive timing diagrams using the TimingBench engine, keeping editor and preview visually identical. Edit diagrams inline with the pencil icon and write changes back to the code block on exit, with inline parse-error messages and tolerant handling of unknown characters.
VisualizationEditingMarkdown
Details
Current version
0.1.9
Last updated
6 days ago
Created
Last week
Updates
10 releases
Downloads
42
Compatible with
Obsidian 1.4.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
udarentudarent
GitHubudarent
  1. Community
  2. Plugins
  3. Visualization
  4. WaveJSON

Related plugins

Text Format

Format selected text upper/lower/capitalize.

Various Complements

Complete words similar to auto-completion in an IDE.

Heading Shifter

Easily Shift and Change Markdown headings.

Shortcuts extender

Use shortcuts for input special symbols without language switching.

Easy Copy

Easily copy the text within inline code, bold text (and many other formats), or quickly generate an elegant link to a heading or block.

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced Canvas

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

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.

ExcaliBrain

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

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.