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

shogoss-parser

v0.0.3

Published

A parser for the game of ShoGoSs

Downloads

2

Readme

shogoss-parser

Branches Functions Lines Statements Jest coverage

しょ碁スの棋譜をパースする

受け付ける棋譜のフォーマット

以下の要素が順番に(間にスペースなど入れず)出てくるのが「一手」。この「一手」の集まりが棋譜。一手と一手の間には任意個のスペースや改行を入れることができる。

  1. 「黒」「▲」「☗」「白」「△」「☖」のどれか
  2. 移動先の座標。「55」「55」「55」「5五」「5五」などを受け付ける
  3. 駒の種類。「香」「桂」「銀」「金」「成香」「成桂」「成銀」「杏」「圭」「全」「ク」「ル」「ナ」「ビ」「ポ」「歩」「兵」「と」「キ」「王」「超」を受け付ける
  4. (オプショナル)移動元の指定。「右」「左」「打」と、丸括弧で囲まれた座標(つまり、「(55)」「(5五)」など)に対応。「直」とかには対応していない
  5. (オプショナル)「成」または「不成」
  6. (オプショナル)碁石が置かれる座標の指定。「5五」など

くまりんぐ・キャスリングは、ともにキング王の動きとして書く(shogoss-core には、キング王が「周り一マス」ではない動き方をしているのを検知してキャスリング or くまりんぐを自動で実行する仕組みが実装してある)

具体例

▲7三桂(85)成7四 → 8五にあった桂馬が、7三に移動して、成った。そしてその後7四に碁石を打った

src/index.test.ts にもっと具体例がある。