Skip to content

jayendra-ram/svelte-chess-pgn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svelte-chess-pgn

a svelte component chess pgn reader

bsd issues Build Status codecov npm Documentation

Overview

if you have a svelte-based blog, let's you show off your epic chess games.

  • supports PGN, FEN reading
  • move viewer lets you browse entire game
  • completely svelte native

Installation

npm install svelte-chess-pgn

Demo

This is what the PGN reader looks with a game:

Screen Shot 2023-05-12 at 9 53 07 PM

Quickstart

in your import statement:

<script>
  import {PgnReader} from "svelte-chess-pgn";
</script>

in the <main> tag:

<PgnReader pgn={`(insert PGN here)`}/>