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

endbug

v0.0.3

Published

Debug message relay tool for Minecraft Bedrock addon developers

Downloads

10

Readme

Endbug

A low-friction debug message relay tool for Minecraft Bedrock addon developers.
Use endbug.js in your addon scripts to send log messages to an external terminal, with automatic fallback to in-game console output when offline.


✨ Features

  • 🧠 Global logger — drop-in usage with endbug.log(), warn(), error(), and more
  • 🖥 External log server with clean, color-coded terminal output
  • 🪛 Structured log payloads include level, tick, and sender IP
  • 🛑 Graceful fallback to in-game console.log() if the server is offline
  • ⚙️ Fully configurable with CLI flags or a config file
  • 🧪 Optional manifest injection support to automate setup
  • 📦 Easy install with npx — no global dependencies required

Quick Start

Initialize your addon project to use Endbug:

npx endbug init

Start the debug server:

npx endbug server

Optional: Inject the logger into your behavior pack’s manifest:

npx endbug init --manifest ./path/to/manifest.json

Using Endbug in Minecraft Scripts

Once scripts/endbug.js is added to your behavior pack, use the logger like this:

endbug.enable()
endbug.connect()

endbug.log('Debug initialized')
endbug.warn('Something might be wrong')
endbug.error('Definitely broken')
endbug.say('This message is visible in chat')

Endbug automatically includes contextual metadata like server tick and sender IP (when running externally).

Server CLI Options

Run the debug relay server with:

npx endbug server [options]

Available Flags:

| Flag | Description | Default | | ----------------- | ----------------------------------------- | ------------ | | --port <number> | Port to listen on | 3000 | | --remote | Allow LAN devices to connect | false | | --max-body <kb> | Maximum accepted body size (in kilobytes) | 16 | | --config <file> | Path to a JSON config file | (optional) | | --help | Show usage instructions | |

Manifest Injection

Use the --manifest flag during init to automatically register scripts/endbug.js in your behavior pack manifest:

npx endbug init --manifest ./BP/manifest.json
  • Adds the script to the modules array
  • Ensures it's the first module entry
  • Skips injection if already present

Example Config File

Instead of passing flags repeatedly, you can use a JSON config file:

{
    "port": 4000,
    "allowRemote": true,
    "maxBodyKb": 32
}

Run the server with:

npx endbug server --config ./endbug.config.json

Terminal Output Styling

Endbug’s log output is clean and color-coded:

[endbug] [info  ] Minecraft server started
[endbug] [warn  ] Missing scoreboard tag
[endbug] [error ] Crash in tick handler
  • [endbug] — Cyan (source tag)
  • [info] — White
  • [warn] — Yellow
  • [error] — Red
  • Log message body — Always white

Development

To work on Endbug locally:

git clone https://github.com/yourname/endbug
cd endbug
npm install
npm link

Now you can run endbug from any directory.

License

MIT License © Wayfind Entertainment LLC

About

Endbug is part of the Wayfind Creator Tools family, developed to streamline Minecraft Bedrock addon development.

For updates, tutorials, and related tools, visit wayfindminecraft.com.