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

@blamnetwork/blf

v1.2.3

Published

BLF chunk library for Halo (TypeScript)

Readme

@blamnetwork/blf

npm

TypeScript library for reading and writing Halo BLF (binary layout file) chunks — Reach, Halo 3, Halo 3: ODST, and Destiny builds.

Built on @craftycodie/cstruct for packed struct layouts and a Halo-style bitstream for custom chunk bodies.

Features

  • Chunk discovery with find_chunk and search_for_chunk
  • Per-game version bundles (haloreach/*, haloreach_mcc/*, halo3/*, halo3odst/*, destiny/*) with chunk classes and blam types for a specific exe build
  • Struct-backed chunks via CStructBLFChunk(c.struct({...})) and the @blf.chunk decorator (compiled away in published dist/)
  • Bitstream reader/writer exported from the package root
  • Little- and big-endian BLF headers

Install

npm install @blamnetwork/blf

Consumers import from published dist/ exports only. Decorators are lowered at build time — you do not need experimentalDecorators to use exported chunk classes.

Usage

Find and read chunks

import { readFileSync } from "node:fs";
import { find_chunk } from "@blamnetwork/blf";
import {
  s_blf_chunk_content_header,
  s_blf_chunk_game_variant,
} from "@blamnetwork/blf/haloreach/v12065_11_08_24_1738_tu1actual";

const file = new Uint8Array(readFileSync("map.blf"));

const chdr = new s_blf_chunk_content_header();
find_chunk(file, chdr, "big");

const mpvr = new s_blf_chunk_game_variant();
find_chunk(file, mpvr, "big");

Bitstream (root export only)

import { bitstream } from "@blamnetwork/blf";

const reader = new bitstream.BitstreamReader(buffer, "little");
const mode = reader.read_enum("game-mode", 4, e_game_mode);

Game build subpaths

Each implementation build is a single module:

| Import | Build | |--------|--------| | @blamnetwork/blf/haloreach/v08516_10_02_19_1607_omaha_alpha | Halo: Reach Private Alpha | | @blamnetwork/blf/haloreach/v09449_10_03_25_1545_omaha_beta | Halo: Reach Private Beta | | @blamnetwork/blf/haloreach/v09664_10_04_06_2121_omaha_beta | Halo: Reach Private Beta TU1 | | @blamnetwork/blf/haloreach/v09730_10_04_09_1309_omaha_delta | Halo: Reach Public Beta | | @blamnetwork/blf/haloreach/v11860_10_07_24_0147_omaha_release | Halo: Reach Release | | @blamnetwork/blf/haloreach/v12065_11_08_24_1738_tu1actual | Halo: Reach TU1 | | @blamnetwork/blf/haloreach_mcc/v_untracked_25_08_16_1352 | Halo: Reach MCC | | @blamnetwork/blf/halo3/v12070_08_09_05_2031_halo3_ship | Halo 3 TU2 | | @blamnetwork/blf/halo3odst/v13895_09_04_27_2201_atlas_release | ODST TU0 | | @blamnetwork/blf/destiny/v36735_13_12_02_1953_alpha | Destiny Alpha |

Add a build by creating src/versions/<game>/<build_id>.ts and re-exporting its chunks — wildcard exports in package.json pick it up automatically.

Version import paths: docs.

Documentation

Full guide and API notes: blam-network.github.io/blf

From blf-ts/: npm run docs (dev), npm run docs:build.

Development

From blf-ts/:

npm install
npm run validate   # lint, test, typecheck, docs build
npm run build
npm run release    # bump version, tag, push (CI publishes on tag)

Chunk authoring (forking the library) uses Stage 3 decorators with the same SWC/Vitest setup as the repo. A struct chunk is @blf.chunk(...) on a class extending CStructBLFChunk(c.struct({...})). Nested blam types are c.struct schemas too.

License

MIT