Skip to content

[Feature]: PGN export — download position and move history as a standard PGN file #164

Description

@BilgeGates

What problem does this solve?

ChessVision currently exports positions as images (PNG/JPEG/SVG) or FEN strings. There is no way to export a game or study as a PGN file — the universal format accepted by every chess tool (Lichess, Chess.com, ChessBase, Scid, Arena, etc.).

Composers, analysts, and teachers who build positions in ChessVision cannot hand off their work to other chess software without manually re-entering the position.

Proposed solution

Add a PGN Export action that generates a standards-compliant .pgn file from the current board state.

Minimum viable output:

[Event "ChessVision Export"]
[Site "https://chessvision.org"]
[Date "2026.06.26"]
[White "?"]
[Black "?"]
[Result "*"]
[FEN "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"]
[SetUp "1"]

*

Scope for this release:

  • Export current FEN as a PGN with standard headers (Event, Site, Date, FEN, SetUp)
  • Optional editable fields before export: White, Black, Event, Result
  • Download as chess_position.pgn
  • Works from both the main board editor and the Advanced FEN page

Out of scope for this release:

  • Move list / game notation (requires a move input UI — separate future issue)
  • Batch PGN export
  • PGN import / parsing

Why this matters for composers and professionals

PGN is the interchange format of the chess world. Composers preparing diagrams for books or publications, analysts sharing positions with students, and puzzle setters submitting to databases all need PGN. Without it, ChessVision is a dead end — the position cannot travel further.

Before submitting

  • I searched existing requests and this is not a duplicate.

Metadata

Metadata

Assignees

Labels

Fields

No fields configured for Feature.

Projects

Status
Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions