# ondras/rot.js

ROguelike Toolkit in JavaScript. Cool dungeon-related stuff, interactive manual, documentation, tests!

Repository: https://github.com/ondras/rot.js
Canonical: https://ross.abutalabs.com/products/rotjs
Homepage: https://ondras.github.io/rot.js
Language: JavaScript
License: BSD-3-Clause
License Family: permissive
Topics: roguelike, library, hacktoberfest
Last push: 2024-11-13T07:22:29+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5217, "days_push": 658, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2709, forks 265 (observed 2026-08-28T04:07:11.753568+00:00)

## What it is
rot.js is a JavaScript/TypeScript toolkit for building roguelike games, providing dungeon generation, field-of-view, pathfinding, lighting, and an ASCII terminal-style Display. It works in browsers and Node.js and is largely feature-complete.

## Use cases
- build a browser-based roguelike game
- generate procedural dungeons and mazes
- compute field of view and lighting for tile maps
- implement A* or Dijkstra pathfinding for game entities
- render ASCII characters with colors in a terminal-style grid
- create random number generators with seeds for reproducible maps

## When to choose
- you are writing a roguelike or grid-based ASCII game in JavaScript or TypeScript
- you need battle-tested procedural generation and FOV algorithms without a full game engine
- you want a lightweight library usable in both browser and Node.js

## When to avoid
- you need a full game engine with sprites, physics, or audio
- you are building a non-grid, non-turn-based game
- you need a toolkit in another language (consider libtcod or its ports instead)

## Facets
- artifact type: library
- maturity: maintenance
- function: game-engine, graphics, simulation
- domain: gaming-tools
- platform: browser, cross-platform
- tags: roguelike, dungeon-generation, pathfinding, ascii-graphics, typescript, game-dev-library, game-development, algorithms, nodejs, javascript

## Member repositories
- ondras/rot.js (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:11.753568+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-30T02:15:40.525033+00:00, confidence not recorded.
  - readme: https://github.com/ondras/rot.js (fetched 2026-08-28T04:07:11.753568+00:00, sha 2398b6716a74)
  - homepage: https://ondras.github.io/rot.js (fetched 2026-08-29T09:59:06.426053+00:00, sha 08b74f6574c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
