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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Chessboard Viewer

Davide AversaDavide Aversa10k downloads

Render chess positions diagrams in note preview.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates25

This plugin adds the capability to visualize Chess FEN positions on an SVG chessboard directly in preview mode.

By design, this plugin is focused on visualization. It renders static SVG boards for FEN positions, supports experimental PGN rendering, and can optionally add interactive navigation controls for PGN diagrams. It is optimized for diagrams and HTML/PDF exports rather than full game analysis or editing.

If you want a more fully featured interactive chess plugin, I recommend Chesser.

How to use it

After you installed the plugin, just write the FEN position representation inside a code block with the chessboard language.

Example

For example, something like this

```chessboard
fen: r2qrbk1/1bp2pp1/p2p1n1p/1p6/Pn1PP3/5N1P/1P1N1PP1/RBBQR1K1 b - - 2 17
annotations: Hf5 He5 Hd5 Ae1-e8/g Ab1-h7/g Ad4-d5
annotations: Hf6/g
```

will be rendered as in the following picture:

Change Board Orientation

Use the orientation command. It can be white (default) or black.

```chessboard
fen: r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R
orientation: black
```

Annotations (Beta)

You can annotate your schema with arrows, highlights and icons:

```chessboard
fen: r1bqkbnr/pppp1ppp/2n5/1B2p3/4P3/5N2/PPPP1PPP/RNBQK2R
annotations: Af8-b4 Hf8 Ha7/g !!f8 ??a7 ?e4 Fe8 !?d8
orientation: white
```

Annotation Syntax

The annotations are written in the annotations field, and you can use the following syntax:

  • A<square>-<square>, draws an arrow from the first square to the second square. E.g., Af8-b4.
  • H<square>, highlight a specific square. E.g., Hf8. If you add /g or /r or /b you can highlight the square in green, red or blue.
  • S<square>, draws a box around a square.
  • C<square>, draws a circle around a square.
  • Q<square>, draws a squircle around a square.
  • !!<square>, adds a "brilliant move" icon to the specified square. E.g., !!e5.
  • ??<square>, adds a "blunder" icon to the specified square. E.g., ??e5.
  • ?<square>, adds a "questionable move" icon to the specified square. E.g., ?e5.
  • !<square>, adds a "excellent move" icon to the specified square. E.g., !e5.
  • !?<square>, adds a "okay move" icon to the specified square. E.g., !?e5.
  • F<square>, adds a "forced move" icon to the specified square. E.g., Fe5.

Not that the annotation syntax is is beta and may change in the future. If you have suggestions, don't hesitate to open an issue.

Experimental: PGN

It is also possible to render games written in PGN. This is done by using the chessboard-pgn code block.

```chessboard-pgn
[Event "Casual Game"]
[Site "Berlin GER"]
[Date "1852.??.??"]
[EventDate "?"]
[Round "?"]
[Result "1-0"]
[White "Adolf Anderssen"]
[Black "Jean Dufresne"]
[ECO "C52"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "47"]

1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.b4 Bxb4 5.c3 Ba5 6.d4 exd4 7.O-O
d3 8.Qb3 Qf6 9.e5 Qg6 10.Re1 Nge7 11.Ba3 b5 12.Qxb5 Rb8 13.Qa4
Bb6 14.Nbd2 Bb7 15.Ne4 Qf5 16.Bxd3 Qh5 17.Nf6+ gxf6 18.exf6
Rg8 19.Rad1 Qxf3 20.Rxe7+ Nxe7 21.Qxd7+ Kxd7 22.Bf5+ Ke8
23.Bd7+ Kf8 24.Bxe7# 1-0
```

Select Game Position

It is also possible to specify which ply (half-move) to render in the diagram. You can do that by using the ply property. In the following example, we will render the 10th ply (that is, after black moves Ba5 on move 5).

```chessboard-pgn
ply: 10
show-move: squares
[Event "Casual Game"]
[Site "Berlin GER"]
[Date "1852.??.??"]
[EventDate "?"]
[Round "?"]
[Result "1-0"]
[White "Adolf Anderssen"]
[Black "Jean Dufresne"]
[ECO "C52"]
[WhiteElo "?"]
[BlackElo "?"]
[PlyCount "47"]

1.e4 e5 2.Nf3 Nc6 3.Bc4 Bc5 4.b4 Bxb4 5.c3 Ba5 6.d4 exd4 7.O-O
d3 8.Qb3 Qf6 9.e5 Qg6 10.Re1 Nge7 11.Ba3 b5 12.Qxb5 Rb8 13.Qa4
Bb6 14.Nbd2 Bb7 15.Ne4 Qf5 16.Bxd3 Qh5 17.Nf6+ gxf6 18.exf6
Rg8 19.Rad1 Qxf3 20.Rxe7+ Nxe7 21.Qxd7+ Kxd7 22.Bf5+ Ke8
23.Bd7+ Kf8 24.Bxe7# 1-0
```

It is also possible to highlight the ply. By using show-move you can select the style:

  • squares: it highlights green the origin and destination squares of the move.
  • arrow: it draws an arrow from the origin to the destination square of the move.
  • none: no highlighting (default).

Interactive Mode

It is possible to specify a PGN diagram as interactive by using the interactive: true option. If a diagram is interactive, the plugin will show buttons to go to the previous or next move (or the first and the last).

Interactive PGN Mode Example

Current Limitations

This supports the full PGN specification but, for now, the feature is experimental and has limitations:

  1. At the moment, this mode do not support annotations.

Moreover, the syntax in PGN games is still unstable. I may change it in new versions.

Syntax

  • A<square>-<square>, draws an arrow from the first square to the second square. E.g., Af8-b4.
  • H<square>, highlight a specific square. E.g., Hf8.

How to compile the plugin

First, install the dependencies with

npm i

Then, you can compile the plugin with:

npm run build

This will create a main.js file in the project root. That is the entry point of the plugin.

Planned Features

  • Chessboard color customization.
  • Pieces color customization.
  • Chessboard annotation and highlights.
  • Custom annotation shapes.

Chess Pieces

The SVG pieces were made by jurgenwesterhof (adapted from work of Cburnett), CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0, via Wikimedia Commons.

92%
HealthExcellent
ReviewSatisfactory
About
Render Chess FEN positions as static SVG chessboards directly in preview and in HTML/PDF exports. Add annotations—arrows, highlights, shapes and icons—and set board orientation for clear, export-friendly diagrams.
VisualizationAnnotationUtilities
Details
Current version
0.17.1
Last updated
2 days ago
Created
5 years ago
Updates
25 releases
Downloads
10k
Compatible with
Obsidian 1.11.0+
Platforms
Desktop, Mobile
License
GPL-3.0
Report bugRequest featureReport plugin
Sponsor
Ko-fi
PayPal
Author
Davide AversaDavide Aversathek3nger
www.davideaversa.it/
GitHubthek3nger
Blueskydavideaversa.it
  1. Community
  2. Plugins
  3. Visualization
  4. Chessboard Viewer

Related plugins

Markmind

Mind map, outline and PDF annotation tool. (Closed source)

Image Layouts

Add beautiful image layouts to your notes.

Advanced Canvas

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

Breadcrumbs

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

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

Mermaid Tools

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

Maps

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

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

HiNote

Add comments to highlighted notes, use AI for thinking, and flashcards for memory.

Life Tracker

Capture and visualize the data that matters in your life.