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

bumparena

v0.0.8

Published

**4x faster than standard arrays and uses only ~40% of the RAM!** ๐Ÿš€๐Ÿ’พ

Readme

BumpArena

4x faster than standard arrays and uses only ~40% of the RAM! ๐Ÿš€๐Ÿ’พ

BumpArena is a high-performance memory arena for JavaScript and TypeScript. It provides contiguous memory allocation, fast pointer-based access, and minimal garbage collection overhead, making it ideal for handling large datasets efficiently.


Features

  • Contiguous memory buffer for fast allocations
  • Pointer-based access with generation tracking
  • Recycled buckets for efficient memory reuse
  • Compact memory footprint
  • Compatible with TypeScript and JavaScript

Installation

npm install bumparena

or using Yarn:

yarn add bumparena

Quick Start

import { Arena } from "bumparena";

// Create a new arena with default settings
const arena = new Arena();

// Allocate some data
const data = new Uint8Array([1, 2, 3, 4, 5]);
const ptr = arena.alloc(data);

// Read the data back
const readData = arena.read(ptr);
console.log(readData); // Uint8Array [1,2,3,4,5]

// Free the allocation
arena.free(ptr);

// Reserve a block for manual writes
const reserved = arena.reserve(10);
reserved.set(new Uint8Array([10, 20, 30]));
console.log(reserved);

Advanced Usage

  • Direct allocation from existing buffers with directAlloc()
  • Custom headers for allocations (header0, header1, header2)
  • Iterate all allocations using label()
  • Estimate memory usage with estimate(size, amount)

Benchmarks

| Implementation | Time | Heap Used | Notes | |-----------------------|------------|-----------|------------| | BumpArena (Optimized) | 183,098 ms | 4.82 GB | 50M items | | Standard Array | 765,961 ms | 11.22 GB | 50M items |

~4x faster and uses ~40% of the RAM compared to standard JavaScript arrays


Compatibility

  • Node.js โœ…
  • Bun โœ…
  • Browser (via compiled JS) โœ…

License

MIT ยฉ eugen252009