# prettymuchbryce/easystarjs

An asynchronous A* pathfinding API written in Javascript.

Repository: https://github.com/prettymuchbryce/easystarjs
Canonical: https://ross.abutalabs.com/products/easystarjs
Language: JavaScript
License: MIT
License Family: permissive
Topics: grid, javascript, asynchronous, pathfinding, easystar, astar, game
Last push: 2024-01-23T23:07:02+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5089, "days_push": 953, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1937, forks 170 (observed 2026-08-28T04:05:57.161014+00:00)

## What it is
easystar.js is a small (~7kb) asynchronous A* pathfinding library for JavaScript, usable in HTML5 games and interactive projects. It works on tile-based grids with support for diagonals, tile costs, directional conditions, and incremental calculation to keep performance smooth.

## Use cases
- find paths on a tilemap grid for an HTML5 game
- implement NPC movement with A* pathfinding in JavaScript
- compute paths asynchronously to avoid blocking the browser frame loop
- add weighted tiles and avoid-points to pathfinding in a grid game
- use pathfinding with Phaser or other JS game frameworks
- enable diagonal movement and corner cutting on a grid

## When to choose
- you need lightweight A* pathfinding on a 2D tile grid in JavaScript
- you want asynchronous/incremental path calculation for large grids
- you use Phaser, plain JS, or Node.js and want a simple pathfinding API

## When to avoid
- you need continuous-space or navigation-mesh pathfinding rather than tile grids
- you need synchronous, guaranteed-instant results without calling calculate()
- your project is not JavaScript/TypeScript based

## Facets
- artifact type: library
- maturity: stable
- function: game-engine, simulation
- domain: web-development
- platform: browser, cross-platform
- tags: pathfinding, astar, grid, asynchronous, html5-games, tilemap, typescript-support, game-development, algorithms, nodejs

## Member repositories
- prettymuchbryce/easystarjs (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.161014+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:08:24.712164+00:00, confidence not recorded.
  - readme: https://github.com/prettymuchbryce/easystarjs (fetched 2026-08-28T04:05:57.161014+00:00, sha 3a350cec5fe6)
  - registry_npm: https://registry.npmjs.org/easystarjs (fetched 2026-08-29T10:47:58.704806+00:00, sha 199b4c22e0fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
