Embeddable chess board widget. Drop it in an <iframe> and configure via URL params.
<iframe src="https://bishops-exe.github.io/embedchess/?pos=start&draggable=true&only_legal=true"></iframe>| Param | Values | Default | Description |
|---|---|---|---|
pos |
FEN string or start |
start |
Board position |
draggable |
true / false |
false |
Allow piece dragging |
only_legal |
true / false |
false |
Restrict drops to legal moves |
orientation |
white / black |
white |
Board perspective |
theme_string |
path template | img/chesspieces/alpha/{piece}.png |
Piece image template |
bun install
bun run devbun run build # outputs to dist/- chessboard2 — board rendering
- chess.js — move validation
- Vite + TypeScript
Deploys to GitHub Pages on push to main.