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

bedrock-kit

v0.0.7

Published

A typed API for navigating Minecraft Bedrock addon files. Works in Node.js and browsers.

Readme

bedrock-kit

⚠️ Experimental: Version 0.x.x is under active development. APIs may change between patch releases. Pin your version if stability matters.

A TypeScript library for reading and navigating Minecraft Bedrock Edition addon files programmatically. Works in Node.js and browsers.

Documentation

Full API documentation is available at https://thepixelmancer.github.io/bedrock-kit/.

Installation

npm install bedrock-kit

Quick Start

import { AddOn } from "bedrock-kit";

// Node.js
const addon = await AddOn.fromDisk("./behavior_pack", "./resource_pack");

// Browser (from folder picker File[] arrays)
const addon = await AddOn.fromFiles(bpFiles, rpFiles);

Features

  • Unified entity and biome viewsaddon.entities.get("minecraft:zombie") bridges BP and RP files into a single object
  • Reverse lookupsitem.recipes, item.entities, lootTable.sourceEntities, texture.usedByBlocks — all O(1) via lazy reverse-index cache
  • Texture objects — textures returned from items, blocks, particles, attachables, and entities are full Texture objects with normal, heightmap, and mer PBR companion textures
  • Cross-linksentity.behavior.entity, entity.resource.entity, biome.behavior.biome, biome.resource.biome, spawnRule.entity
  • JSDoc parsingasset.docstrings exposes structured comment blocks written inside your JSON files
  • Fog, Feature, FeatureRule, Geometry, Particle, Attachable — full coverage of RP and BP asset types
  • AssetCollection<T> — typed iterable map with filter, map, find, groupBy, and more

Examples

// Items
const spear = addon.items.get("mypack:copper_spear");
console.log(spear?.displayName);         // "Copper Spear"
console.log(spear?.texture?.id);         // "textures/items/copper_spear"
console.log(spear?.recipes.length);      // number of crafting recipes
console.log(spear?.entities.length);     // entities that drop it

// Entities
const zombie = addon.entities.get("minecraft:zombie");
console.log(zombie?.behavior?.lootTables.map(lt => lt.id));
console.log(zombie?.resource?.textures); // Record<string, Texture>
console.log(zombie?.resource?.entity);   // back-link to unified Entity

// Biomes
const biome = addon.biomes.get("mypack:maple_forest");
console.log(biome?.fog?.id);             // "mypack:maple_forest_fog"
console.log(biome?.resource?.biome);     // back-link to unified Biome
console.log(biome?.resource?.data);      // raw data — access skyColor, foliageColor etc.

// Textures (Node.js)
const tex = addon.textures.get("textures/blocks/cobblestone");
console.log(tex?.mer?.id);               // metalness/emissive/roughness companion
console.log(tex?.usedByBlocks.length);   // reverse lookup

// Fogs
const fog = addon.fogs.get("mypack:maple_forest_fog");
console.log(fog?.data);

// Collections
const customItems = addon.items.filter(i => !i.id.startsWith("minecraft:"));
const byNamespace = addon.entities.groupBy(e => e.id.split(":")[0]);

License

MIT