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

Logic Graph

ClementeClemente36 downloads

Draw logic gate circuits and generate truth tables from a simple text code block.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Draw logic circuits, truth tables, Karnaugh maps, and timing diagrams straight from a plain-text code block.

(a,b) AND (c)
(c,b) XOR (d)
(d) NOT (y)

Circuit Example Circuit Example

Features

  • Circuit diagrams — AND, OR, NAND, NOR, XOR, XNOR, NOT, and BUF gates (2–6 inputs each), drawn as clean SVG with live signal state.
  • Truth tables — click a row to drive the circuit; rows update the diagram instantly.
  • Karnaugh maps — 2 to 6 inputs, with the Quine–McCluskey minimal cover and coloured groups (exact minimum when the search is small enough).
  • Boolean expressions — both the structural expression of your circuit and the simplified sum-of-products form, rendered as LaTeX.
  • Timing diagrams — optional per-gate delay; waveform view and/or animated bit-travelling view.
  • Bubble pushing — De Morgan symbol matching, with per-gate manual flips.
  • Circuit reduction — structural rewrites (double NOT, NOT-into-NAND/NOR, merged cascades, absorption, shared gates, buffers) and two-level methods (SOP, POS, NAND-NAND, NOR-NOR). Every reduced circuit is verified against the original before it is shown.
  • Export — copy the truth table as Markdown, the expressions as LaTeX, the circuit as Mermaid, or save the diagram as PNG/SVG into your vault.
  • Templates — half adder, full adder, multiplexer, decoder, majority, parity, XOR-from-NAND.
  • @help — drop @help into a block for a full in-app reference with live examples.

The block syntax

One gate per line: (inputs) GATE (output).

(a,b) XOR (sum)
(a,b) AND (carry)

Signals no gate drives are the inputs; signals nothing uses are the outputs. Names may contain letters, digits, and _. Comments start with # or //.

Directives (at the top of a block):

Directive Effect
@help Show the reference above the circuit.
@hide table / @show kmap Toggle table, expr, diagram, kmap, timing.
@simplify structural (or @reduce) Draw a reduced circuit. Methods: structural, best, sop, pos, nand, nor, off.
@bubbles Bubble-pushing view; click a gate to flip it by hand.
@compact Merge truth-table rows that don't depend on some inputs (shown as X).
@delay 0.5 / @delay random / @delay off Per-gate delay (0–30 s, or random 0–5 s).
@timing-graph / @timing-animation / @timing-both Delay on, with the chosen timing view.

Companion extension: image import (WIP, not ready for shipment)

The separate Logic Graph – Image Import extension turns a picture of a circuit into a block, entirely on your device. Install both plugins to use it; this plugin works fully without it. See that extension's README for details.

Installing

  1. Copy both plugin folders into <vault>/.obsidian/plugins/<id>/.
  2. Enable them in Settings → Community plugins.

(You only need the import extension if you want to import from images.)

Known limits

  • Truth tables, Karnaugh maps, and minimisation work up to 12 inputs (2ⁿ rows).
  • Diagrams and simulation work up to 32 inputs and 256 gates.
  • Very large circuits may export to PNG with fine detail compressed; SVG export is exact.
  • Timing animation is illustrative; for very fast gate chains several sprites may overlap.

Reporting issues

  • GitHub: https://github.com/Clemm0/Logic-Graph/issues
  • Discord: https://discord.gg/2cJt5CBTKa

I'll respond as soon as I can.

Support me

If Logic Graph saves you time, you can buy me a coffee or support the project on Patreon — it genuinely helps and keeps the plugin free for everyone.

  • Ko-fi: https://ko-fi.com/clemm0
HealthExcellent
ReviewSatisfactory
About
Draw logic circuits, truth tables, Karnaugh maps and timing diagrams from plain-text code blocks, rendering gates (AND/OR/NAND/NOR/XOR/XNOR/NOT/BUF) as SVG with live signal states. Drive inputs from truth tables, compute minimal covers and simplified Boolean expressions (LaTeX), animate timing waveforms, apply verified circuit reductions, and export tables, expressions or diagrams.
VisualizationTablesMath
Details
Current version
1.2.0
Last updated
5 days ago
Created
6 days ago
Updates
3 releases
Downloads
36
Compatible with
Obsidian 1.5.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Sponsor
Ko-fi
Author
ClementeClementeclemm0
GitHubclemm0
  1. Community
  2. Plugins
  3. Visualization
  4. Logic Graph

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced Canvas

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

ExcaliBrain

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

Latex Suite

Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements.

Breadcrumbs

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

Mermaid Tools

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

Advanced Tables

Improved table navigation, formatting, and manipulation.

Maps

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

Numerals

Turn any code block into an advanced calculator. Evaluate math expressions on each line of a code block, including units, currency, and optional TeX rendering.

CSV Table

Render CSV data as a table within your notes.