# PrismarineJS/mineflayer

Create Minecraft bots with a powerful, stable, and high level JavaScript API.

Repository: https://github.com/PrismarineJS/mineflayer
Canonical: https://ross.abutalabs.com/products/mineflayer
Homepage: https://prismarinejs.github.io/mineflayer/
Language: JavaScript
License: MIT
License Family: permissive
Topics: bot, nodejs, network, minecraft, minecraft-bot, minecraft-api
Last push: 2026-08-26T23:52:34+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 5701, "days_push": 7, "days_rel": 6, "gap_med": 26.0, "n_releases_24m": 19}
- flags: no_readme
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7378, forks 1473 (observed 2026-08-28T04:09:58.591647+00:00)

## What it is
Mineflayer is a Node.js library for creating Minecraft bots with a powerful, stable, and high-level JavaScript API. It handles the Minecraft network protocol so developers can script bot behaviors like movement, chatting, and inventory management.

## Use cases
- create a Minecraft bot that chats and follows players
- automate farming or building tasks in Minecraft
- build a chat relay between Minecraft and Discord
- write bots that mine resources automatically
- script AFK bots for Minecraft servers
- program a bot to navigate and explore the world

## When to choose
- you want to programmatically control a Minecraft client in Node.js
- you need a stable, high-level API over the Minecraft protocol
- you're building automation, moderation, or utility bots for Minecraft servers

## When to avoid
- you need a Minecraft server rather than a client bot
- you're building a mod for the Java edition client rather than an external bot
- you need a language other than JavaScript/Node.js without bindings

## Facets
- artifact type: library
- maturity: stable
- function: sdk, networking
- domain: gaming-tools
- platform: -
- tags: minecraft-bot, minecraft-api, bot-framework, protocol, minecraft, automation, nodejs, javascript

## Member repositories
- PrismarineJS/mineflayer (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.591647+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-29T17:38:22.428188+00:00, confidence not recorded.
  - homepage: https://prismarinejs.github.io/mineflayer/ (fetched 2026-08-29T08:33:52.428218+00:00, sha 2996709fa893)
- Data as of 2026-08-30T08:39:29.467469+00:00.
