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

@plasius/dungeon-crafting

v0.2.0

Published

DIS-gated dungeon-crafting and chaos-sealing authority contracts for Plasius

Readme

@plasius/dungeon-crafting

npm version Build Status coverage License Code of Conduct Security Policy Changelog

DIS-gated dungeon-crafting and chaos-sealing authority contracts for Plasius.

Apache-2.0. ESM + CJS builds. TypeScript types included.

Installation

npm install @plasius/dungeon-crafting

Scope

@plasius/dungeon-crafting owns the authority-side boundary for:

  • DIS-gated access state
  • explicit divine/domain prerequisite contracts
  • chaos-hotspot severity metadata
  • Player System and event/regional guidance handoffs into dungeon authority
  • privacy-safe seal-directive payloads and hotspot throughput assumptions
  • portable authority-host descriptors
  • recoverable failure-policy and authority-response contracts

Player System Handoff

The Player System may surface chaos hotspots, explain readiness, and collect intent, but it does not become the execution authority for dungeon creation or world mutation. Once DIS verification, divine authority, and domain alignment have been established, the handoff into @plasius/dungeon-crafting should carry the feature flag, guidance source, domain identifier, domain alignment, requested authority tier, and hotspot severity so dungeon-crafting remains the authoritative validation and execution boundary.

The same handoff surface is intentionally reusable for future arena, event, and regional intervention flows by allowing non-Player-System guidance sources.

Demo

npm run build
node demo/example.mjs

Usage

import {
  createAuthorityFailurePolicy,
  createDungeonAuthorityPrerequisites,
  createDungeonAuthorityBoundaryResponse,
  createDungeonCraftingAccessState,
  createDungeonGuidanceHandoff,
  createDungeonSealDirectiveRecord,
  defaultDungeonCraftingThroughputAssumptions,
  dungeonCraftingAuthorityBoundary,
  dungeonCraftingPrivacyScaleRollout,
} from "@plasius/dungeon-crafting";

const state = createDungeonCraftingAccessState({
  divineAuthorityTier: "seat",
  hotspotSeverity: "major",
  eligible: true,
});

const prerequisites = createDungeonAuthorityPrerequisites({
  disVerified: true,
  divineAuthorityTier: state.divineAuthorityTier,
  domainId: "domain.northern-rift",
  domainAlignment: "aligned",
  sealClearance: "seal-authority",
  hotspotSeverity: state.hotspotSeverity,
});

const handoff = createDungeonGuidanceHandoff({
  authorityOwner: dungeonCraftingAuthorityBoundary.authorityOwner,
  featureFlagId: dungeonCraftingAuthorityBoundary.featureFlagId,
  guidanceSource: "player-system",
  domainId: prerequisites.domainId,
  domainAlignment: prerequisites.domainAlignment,
  readiness: "eligible",
  hotspotSeverity: prerequisites.hotspotSeverity,
  requestedAuthorityTier: prerequisites.divineAuthorityTier,
  handoffSummary:
    "Player System guidance has verified the prerequisites and is yielding authority to dungeon-crafting.",
});

const directive = createDungeonSealDirectiveRecord({
  operatorSubjectId: "operator-sub-1",
  hotspotId: "hotspot-1",
  divineAuthorityTier: state.divineAuthorityTier,
  hotspotSeverity: state.hotspotSeverity,
  updatedAtIso: new Date().toISOString(),
});

console.log(dungeonCraftingPrivacyScaleRollout.featureFlagId);
console.log(dungeonCraftingAuthorityBoundary.guidanceSources);
console.log(defaultDungeonCraftingThroughputAssumptions.maxDirectiveCommitsPerMinute);
console.log(handoff.guidanceSource);
console.log(directive.hotspotId);

const failurePolicy = createAuthorityFailurePolicy({
  timeoutMs: 1800,
  maxAttempts: 2,
  recoverableHotspotSeverities: ["minor", "major"],
  escalationTarget: "divine-seat",
});

const response = createDungeonAuthorityBoundaryResponse({
  responseId: "response-1",
  divineAuthorityTier: state.divineAuthorityTier,
  hotspotSeverity: state.hotspotSeverity,
  outcome: "deferred",
  eligible: state.eligible,
  sourceHost: {
    hostId: "seal-authority",
    runtime: "worker",
    transport: "queue",
    capabilityFlags: ["trace-linked"],
  },
  failurePolicy,
  observedAt: new Date().toISOString(),
});

console.log(response.outcome);

Privacy And Scale Baseline

The package exports an inherited rollout descriptor for the cross-repo feature flag isekai.training-progression.privacy-scale.enabled.

When that rollout is enabled, package consumers should prefer the minimal DungeonSealDirectiveRecord contract:

  • operatorSubjectId is the only player-linked identifier and is expected to be pseudonymous
  • profile names, chat text, raw hotspot telemetry, and contact data are outside the package contract
  • dungeonCraftingFieldPolicies documents the retention and sensitivity expectation for every exported directive field
  • defaultDungeonCraftingThroughputAssumptions publishes the validated hotspot evaluation and directive-commit envelope used by the package docs and tests

Governance