# godash

> Data structures and utilities to represent the game of Go

Latest version **2.5.5** (published 2026-11-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install godash
pnpm add godash
yarn add godash
bun add godash
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.5.5 |
| Published | 2026-11-18 |
| First published | 2015-09-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 187.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | duckpunch |
| Maintainers | duckpunch |
| Keywords | go, weiqi, baduk, immutable |

## Links

- npm: https://www.npmjs.com/package/godash
- Repository: https://github.com/duckpunch/godash
- Issues: https://github.com/duckpunch/godash/issues
- npm.io page: https://npm.io/package/godash

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [immutable](https://npm.io/package/immutable.md) ^5.1.4

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [@temporal-architect/claude-plugin](https://npm.io/package/@temporal-architect/claude-plugin.md) — 335 weekly downloads

## Recent versions

- 2.5.5 (latest) — 2026-11-18
- 2.5.4 — 2026-04-11
- 2.5.3 — 2025-12-29
- 2.5.2 — 2025-12-21
- 2.5.1 — 2025-12-21
- 2.5.0 — 2025-12-21
- 2.4.0 — 2025-12-21
- 2.3.2 — 2024-12-14
- 2.3.1 — 2024-07-10
- 2.3.0 — 2024-06-23
- 2.2.0 — 2023-12-02
- 2.1.0 — 2022-08-15
- 2.0.0 — 2022-08-14
- 1.7.4 — 2022-06-16
- 1.7.3 — 2022-06-16
- … 69 more at https://npm.io/package/godash/versions

## README

[![npm](https://img.shields.io/npm/v/godash.svg)][npm]
[![CI](https://github.com/duckpunch/godash/actions/workflows/ci.yml/badge.svg)][ci]

Data structures and utilities to represent the [game of Go][go].

This library depends on [Immutable.js][immutable] and [lodash][lodash].

## Getting Started

Install `godash` via [npm][npm].

    npm install godash

`require` and use it in your modules.

```javascript
var godash = require('godash');
var board = godash.Board(19);
var tengen = godash.Coordinate(9, 9); // 0-based

board.moves.has(tengen); // false

var standardOpening = godash.placeStone(
    board,
    tengen,
    godash.BLACK
);
standardOpening.moves.has(tengen); // true
```

## Why Godash?

Godash provides the "primitives" for Go necessary for creating UIs that go
beyond a simple SGF player.  You can create whatever UI you want without having
to reinvent the wheel every time.

Check out the [documentation][godash-docs] to see what Godash provides.

## Breaking changes from version 1 to 2

* Due to upgrading to `immutable@4`, `Board` and `Coordinate` are [no longer
  subclasses of `Seq`][immutable-4].
* `Board` constructor changed to take `Move`.

## Version 2.5.0 - Immutable v5 upgrade

* Upgraded to `immutable@5` with no breaking changes to the Godash API.
* All existing code remains compatible - no changes required.

## Related Projects

* [Elixir port][port] - port to [Elixir][elixir] by [kokolegorille][koko]
* [godash-diagrams][godash-diagrams] - a diagramming library inspired by [Mermaid][mermaid]
* [Way to Go][wtg] - a rewrite of Hiroki Mori's [Interactive Way to Go][iwtg]

[ci]: https://github.com/duckpunch/godash/actions
[elixir]: https://elixir-lang.org/
[go]: https://en.wikipedia.org/wiki/Go_%28game%29
[godash-diagrams]: https://duckpunch.github.io/godash-diagrams/
[godash-docs]: https://duckpunch.github.io/godash/api/
[immutable]: https://immutable-js.com/
[immutable-4]: https://github.com/immutable-js/immutable-js/releases/tag/v4.0.0
[iwtg]: http://playgo.to/iwtg/en/
[koko]: https://github.com/kokolegorille/
[lodash]: https://lodash.com/
[mermaid]: https://mermaid.js.org/
[npm]: https://www.npmjs.com/package/godash
[port]: https://github.com/kokolegorille/go
[wtg]: https://way-to-go.gitlab.io

---
_Source: https://npm.io/package/godash · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
