Chess Viewer [v1.1.1 2025-12-12]
chess viewer v1.1.1 published!
Features
- Import chess games from LiChess or Chess.com
- Config chess game folder
chess viewer v1.1.1 published!
does it import only PGN or FEN is supported as well?
Currently, it only support PGN.
If you have any other needs, post them and I'll try to implement them when I have time.
The menu item shouldn’t be under File. File is fundamental to the application itself, Importing chess games is related to editing a particular note. I would go for the Tools menu. I don’t think even Edit menu is a good place for it.
I played over 2000 games on Lichess only this year. I have no interest in importing all of them! The context menu should be polished to allow user to only import the games they want.
An option to import games from a pgn file should be added.
ChessBase’s CBH support and Scid’s db support should be added.
FEN support should be added, for diagrams.
A separate FEN with arrows, highlighting squares with different colors like red, green, blue, yellow, also adding stars.
It doesn’t work for me at all:
I tried to paste both the annotated and raw PGN from this game: Caucasus_Eagle vs banan314: Zukertort Opening: Queenside Fianchetto Variation • lichess.org
Optional adding some metadata to the frontmatter like
White: Caucasus_Eagle
Black: banan314
date: 2023
to integrate nicely with the Formatter Overview Plugin
The menu item shouldn’t be under File. File is fundamental to the application itself, Importing chess games is related to editing a particular note. I would go for the Tools menu. I don’t think even Edit menu is a good place for it.
-- ok, I'll fix it
I played over 2000 games on Lichess only this year. I have no interest in importing all of them! The context menu should be polished to allow user to only import the games they want.
-- the lichess api only support paginated query by timestamp,if you want to choose the games,it must be fetch all first, so if you can accept the time required to load all game data this functionality is achievable
An option to import games from a pgn file should be added.
-- This is achievable.
ChessBase’s CBH support and Scid’s db support should be added.
-- add db and then?covert data to note?
FEN support should be added, for diagrams.
A separate FEN with arrows, highlighting squares with different colors like red, green, blue, yellow, also adding stars.
-- FEN format data cannot carry the kind of marking information you require.
It doesn’t work for me at all:
-- Try updating the plugin and then paste the original PGN. Because both the first and last steps contain two consecutive comment blocks, the library I used failed to parse the code.
Optional adding some metadata to the frontmatter like
-- ok, i'll achivea it
No, no, no. Hold on. Read the API carefully: Lichess.org API Docs. You have many options. You can query games since & until, you have to convert the datetime to an epoch first, and then send it. You have an option to get a maximum number of requested games as well, max=30 for example: https://reqbin.com/jqg7yxni. reqbin is like pastebin, but instead of text I share the example request. Please take a look, it works. You shouldn't fetch all games first. I can help you with the query if you struggle to figure it out.
CBH doesn't store games in PGN, so first you would have to convert them to PGN and then add them to a note, possibly with filters like max games to import or since & until, or who played etc. But mind it's brutally massive, like 15-30MD to implement, it's just an idea, I don't know how much motivation you have to develop this plugin.
You can take a look at Obsidian plugins as well, there's probably a lot of code you can copy & paste: Plugins for Chess - Obsidian Hub - Obsidian Publish.
Yes, that's why it's so tricky. You would have to add a separate config on top of fen like
```diagram
fen: rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP
arrow a4->c6 : red
arrow h2->c2: yellow
highlight: c5 blue
\```
Thank you for your effort! Now it works, just tested.
Thanks for your advice,
Importing CBH data might be complicated, so its priority is lowered. I will support the other features when I have time in the near future.