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

@shapescape/storage

v1.0.7

Published

![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ShapescapeMC/StorageAPI/publish.workflow.yml?style=for-the-badge&label=Publish)

Readme

StorageAPI: Advanced storage solution for Minecraft Bedrock

GitHub Actions Workflow Status

Overview

StorageAPI is a storage abstraction designed exclusively for Minecraft Bedrock. It leverages Minecraft's dynamic storage system, supporting both standard storage and extended storage capabilities that allow you to store values larger than 32KiB. The project offers a set of commands similar to Redis (with different naming) to manage stored data in an intuitive manner.

Key Features

  • Minecraft Bedrock Exclusive: Built to work only within the Minecraft Bedrock edition environment.
  • Dynamic Property Storage: Uses Minecraft's dynamic storage to store and retrieve JSON-serializable data.
  • Extended Storage: Automatically splits values into chunked segments if they exceed the Minecraft storage limit.
  • Array & Linked List Support: Manage arrays as JSON objects or as linked lists using the MultiArray class.
  • In-Memory Caching: CachedStorage provides an optional cache to speed up repeated data access.

Installation

You can install the package via npm. This project is part of the StorageAPI:

npm install @shapescape/storage

Usage

Dynamic Property Storage

The basic storage class is a wrapper around Minecraft’s dynamic storage:

const storage = new PropertyStorage(world);
storage.set("test", "test");
const value = storage.get("test");

const array = [1, 2, 3, 4, 5];
storage.set("array", array); // Store an array as a JSON Object
const arrayValue = storage.get("array");

// For smaller arrays, you can also use push/pop operations:
storage.rPush("array", 2);
storage.rPush("array", 3);
storage.lPush("array", 1);

Dynamic Property Extended Storage

ExtendedStorage allows you to store values larger than 32KiB by splitting the data into chunks:

const storage = new ExtendedStorage(world);
storage.set("test", "test");
const value = storage.get("test");

const array = [1, 2, 3, 4, 5];
storage.set("array", array); // Store an array as a JSON Object

// Use linked list storage for larger arrays:
storage.rPush("linkedList", 1);
storage.rPush("linkedList", 2);
storage.rPush("linkedList", 3);
storage.rPush("linkedList", 4);
storage.rPush("linkedList", 5);

MultiArray

The MultiArray class lets you navigate and manipulate linked list arrays:

storage.rPush("linkedList", 1);
storage.rPush("linkedList", 2);
storage.rPush("linkedList", 3);
storage.rPush("linkedList", 4);
storage.rPush("linkedList", 5);

let pointer: MultiArray | null = storage.getMultiArray("linkedList");
const firstValue = pointer.getValue(); // 1
pointer = pointer.getNext();
if (pointer) {
    const secondValue = pointer.getValue(); // 2
}

Minecraft Bedrock Dependency

Important: This project is designed to function exclusively on Minecraft Bedrock Edition. It relies on APIs provided by the Minecraft server environment which are available only in Bedrock. This means:

  • The underlying storage methods (getDynamicProperty, setDynamicProperty, etc.) are implemented as part of Minecraft’s dynamic storage system.
  • The project is not intended to be run or tested in environments other than Minecraft Bedrock.

Ensure that you deploy and run this API within an environment that supports these Minecraft-specific features.

License

StoreAPI is licensed under the LGPL v3 License.

Contributing

Contributions are welcome as long as they align with the goal of maintaining compatibility with Minecraft Bedrock. Before submitting a pull request, please ensure your changes are tested within the Minecraft Bedrock environment.

Happy crafting!