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-core/server-runtime

v0.1.0

Published

The bedrock-core server runtime: addon registration and a cross-addon registry, built on @bedrock-core/sync

Downloads

166

Readme

@bedrock-core/server-runtime

Logo

The bedrock-core server runtime — the framework layer addons build on.

Every behavior pack runs its scripts in its own isolated realm, so two addons in the same world normally cannot see each other at all. Where @bedrock-core/sync is the low-level transport that breaks that isolation, the runtime is the thing you register into: an addon declares its identity and its data once, and that declaration flows into a cross-addon registry — a live directory of every bedrock-core addon present in the world.

Install

yarn add @bedrock-core/server-runtime

@minecraft/server is a peer dependency (>=2.8.0) — it stays yours to pin, since the version you build against has to match the one your pack's manifest.json declares.

What it gives you

  • core.register() — one call brings the addon online (there is no separate start()). Identity is creator + pack, joined into the single namespace Bedrock requires an addon to use for its items, its commands and its command enum
  • A registrycore.registry lists every addon in the world, fires on join/leave, reports namespace collisions, and tracks soft dependencies by namespace
  • Featurescore.features.add() declares a capability that auto-enables when its condition holds, driven by registry presence, replicated state, or another addon's published features
  • Config — declare a schema once and get typed accessor trees over three scopes (server, dimension, player), persisted in dynamic properties, readable and writable cross-addon over RPC with player-level authorization
  • Translations and guides — publish your i18n bundle and compiled guide manifest, and resolve any peer's strings server-side for text measurement
  • Host electioncore.host picks the realm running the newest runtime, with no negotiation messages, so exactly one realm serves shared UI for the whole world
  • Messaging and statecore.rpc and a core.state scoped to your own namespace, with the raw sync node available at core.node

Usage

import { core } from '@bedrock-core/server-runtime';
import bundle from '@bedrock-core/generated/i18n';
import guides from '@bedrock-core/generated/guides';

// register() declares everything and brings the addon online. When `config` is given it
// returns the typed scope accessors — the same value core.config.define() would return.
const config = core.register({
  creator: 'drav0011',            // creator/vendor id — [a-z0-9_]+
  pack: 'economy',                // abbreviated pack id — together: namespace `drav0011_economy`
  packName: 'Economy',            // display label only, never part of identity
  version: '1.0.0',
  dependencies: ['os_shop'],      // namespaces you need — soft, logs, never blocks
  translations: bundle,           // optional — the i18n filter's bundle
  guide: guides,                  // optional — the guides filter's manifest
  config: {                       // optional — config schema
    server: { taxRate: { type: 'number', default: 0.05, min: 0, max: 1, label: 'Tax Rate' } },
  },
});

config.server.taxRate.get();          // 0.05 — typed all the way down
config.server.taxRate.subscribe((next, prev) => console.warn('tax', prev, '→', next));

core.registry.onRegister(addon => console.warn('joined:', addon.id));

// Serve a method to other addons, and call one of theirs.
core.rpc.onRequest('getRate', () => config.server.taxRate.get());
core.rpc.request('os_shop', 'getStock', {}).then(stock => console.warn('stock', stock));

Documentation

packages/test-addon and packages/test-addon-2 in this repository are two real addons wired to each other, with GameTests covering discovery, RPC, state, collisions and features.

License

MIT