Chess FEN Visualizer

AnkiWeb addon 841766736

Renders chess positions written in FEN notation within [fen] tags on Anki cards as inline SVG boards, with configurable size, square colors, and coordinate display.
AI-generated summary; may contain mistakes.

formatting

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (πŸ‘ 2 Β· πŸ‘Ž 0)
Updated
2023-08-20
Anki versions
2.1.54~
License
Unlicense (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

abandoned

  • Last update or commit: 2023-08-20 (1169 days before the snapshot).
  • Commits in the last year: 0.
  • Issues: 1 open, 4 closed.
  • Pull requests: 1 open, 0 merged.
  • Median first response: 1440 hours (2 answered issues and pull requests).

GitHub

Repository
lwerdna/anki-fen-vis Β· more by lwerdna
Stars
⭐ 2 · forks 1 · open issues 2
Last commit
2023-08-20
License
Unlicense
Languages
Python, Makefile
Tests
0

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.02.1.54+2023-08-20
History across monthly snapshots

Loading…

Similar addons

Typst Math in Anki

Converts Typst math code into MathML or SVG for Anki flashcards, offering inline and block editors plus a replace function for $...$ equations.

formattingshortcuts

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 20 Anki 26.05~ Updated 2026-07-12
Chess Opening Trainer β™ŸοΈ

Imports chess PGN game collections into Anki decks, creating opening-repertoire flashcards with board diagrams, annotations, and nested variations, while allowing re-imports without losing learning progress.

card-creationimport

12 votes 76% approval πŸ‘ 12 Β· πŸ‘Ž 0 ⭐ 19 Anki 25.09~ Updated 2026-06-15

Description

UPDATED 2023-08-20 to address issues in comments and on github! Thank you for your feedback! Please leave future issues on the linked github page.

Display a chess position in Forsyth–Edwards Notation.

Example: Just put [fen]rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1[/fen] on a card.

This add-on does the display by rendering an inline SVG produced from python-chess.

You can configure the board size, square color, and whether or not coordinates are displayed from the add-on manager.

README

anki-fen-vis

This is an Anki plugin to place chess boards in cards with FEN notation:

It's tested on Anki version 2.1.54. It's a spiritual successor to:

name date ANKI version
FEN chess visualizer 2.1 (ankiweb) 2019-03-02 2.0, 2.1
FEN chess visualizer (ankiweb) (github) 2016-11-29 2.0

AnkiWeb link: https://ankiweb.net/shared/info/841766736

installation notes

  1. Run Anki then access menu tools -> addons -> Get Add-ons and enter 841766736.

  2. Restart Anki.

  3. Try adding a card with:

    What moves constitute the Albin countergambit?
    1.d4 d5 2.c4 e5
    
    [fen]rnbqkbnr/ppp2ppp/8/3pp3/2PP4/8/PP2PPPP/RNBQKBNR w KQkq - 0 3[/fen]
    

developer notes

This works by intercepting card text (using the API provided hook gui_hooks.editor_will_munge_html), looking for [FEN]...[/FEN]. Upon finding it, python-chess is used to render an SVG which is substituted into the card text.

Package python-chess 1.9.3 is bundled here because there's no way with Anki addons to express dependencies on PyPI packages.

On MacOS, addon is stored to:

/Users/<username>/Library/Application Support/Anki2/addons21/841766736

Good documentation:

  • https://addon-docs.ankiweb.net/hooks-and-filters.html
  • https://addon-docs.ankiweb.net/addon-config.html
  • https://addon-docs.ankiweb.net/sharing.html (how to package for distribution)
  • https://docs.ankiweb.net/misc.html#debug-console

To make a new version, see Make target share. To upload it, log into https://ankiweb.net then click "Decks" then scroll to the bottom and click "My Shared Items", then select Chess FEN Visualizer, then scroll to "Update".