npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

remotion-go-board

v0.1.1

Published

A Remotion component that renders animated Go board sequences from SGF game records

Readme

remotion-go-board

A Remotion component that renders animated Go board sequences from SGF game records.

日本語版 README

Installation

npm install remotion-go-board

react and remotion are peer dependencies.

Agent Skill (for AI coding tools)

If you use AI coding tools such as Claude Code or Antigravity, install the agent skill to get accurate code generation:

npx skills add j2masamitu/remotion-go-board

This teaches the AI the correct GoBoard API, SGF format rules, and best practices.

Basic Usage

import { GoBoard } from "remotion-go-board";

export const MyComposition: React.FC = () => {
  return (
    <GoBoard
      sgf="(;SZ[19];B[pd];W[dd];B[pq];W[dp];B[qk])"
      startMove={1}
      endMove={5}
      speed={15}
      boardSize={500}
    />
  );
};

GoBoard Props

| Prop | Type | Default | Description | |---|---|---|---| | sgf | string | (required) | SGF game record string | | startMove | number | 1 | Starting move number (1-based) | | endMove | number | last move | Ending move number (1-based) | | speed | number | 10 | Frames per move (10 = 3 moves/sec at 30fps) | | boardSize | number | 500 | Display size in pixels | | showNumbers | boolean | false | Show move numbers on stones | | boardColor | string | "#DEB887" | Outer board color | | boardInnerColor | string | "#D4A56A" | Inner board color | | lineColor | string | "#333" | Grid line and star point color |

Speed Reference (at 30fps)

| speed | Playback | |---|---| | 30 | 1 move/sec (slow) | | 15 | 2 moves/sec | | 10 | 3 moves/sec (default) | | 6 | 5 moves/sec (fast) | | 1 | Static display (shows final position immediately) |

Supported Board Sizes

6×6, 7×7, 9×9, 11×11, 13×13, and 19×19. The board size is automatically detected from the SZ property in the SGF string.

SGF Format

Standard SGF (Smart Game Format) is supported.

(;SZ[19];B[pd];W[dd];B[pq];W[dp])

Initial Stone Placement (AB/AW)

For problems (tsumego) or board positions with pre-placed stones:

(;SZ[7]AB[df][ee][ed]AW[de][ef][fe][gf][fg];B[ce];W[dd];B[dc])
  • AB[xy][xy]... — Add Black stones
  • AW[xy][xy]... — Add White stones

Using the SGF Parser Standalone

The parser can be used independently without the Remotion component.

import { parseSgf, buildBoardState } from "remotion-go-board";

const sgf = "(;SZ[9];B[ee];W[ge];B[eg])";
const data = parseSgf(sgf);

console.log(data.size);   // 9
console.log(data.moves);  // [{ color: "B", x: 4, y: 4 }, ...]

// Get board state after 2 moves (with capture handling)
const board = buildBoardState(data, 2);
// board[y][x] is "B" | "W" | null

Features

  • Realistic stone rendering with gradients and shadows
  • Spring animation on newly placed stones
  • Last move marker
  • Stone capture (removal) with full group and liberty calculation
  • Star points (hoshi) for all supported board sizes

License

MIT