Catalog npm
Back to packageRELEASE DETAILS

0.10.0

npm

@0disoft/mensor-reference-runtime

Bounded reference consumer for Mensor runtime manifests.

contractsdeveloper-toolshtmlmensorruntime
Published10 Sept 2026
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

@0disoft/mensor-reference-runtime

Bounded reference consumer for a clean Mensor RuntimeManifest v1 artifact. It serves embedded static GET pages and dispatches URL-encoded POST actions to an exact host-supplied handler registry.

The package is a conformance consumer, not a production web framework. It does not own authentication, CSRF tokens, sessions, cookies, persistence, template rendering, deployment, or source discovery. An actionGuard is mandatory when the manifest contains actions.

import { createReferenceRuntime } from "@0disoft/mensor-reference-runtime";

const runtime = createReferenceRuntime({
  manifest,
  actionGuard: ({ fields }) => ({
    allowed: fields._csrf?.[0] === expectedToken,
    status: 403,
  }),
  handlers: {
    "tasks.create": async ({ input }) => {
      await createTask(input);
      return { kind: "redirect", location: "/tasks" };
    },
  },
});

const response = await runtime.handle(request);

The runtime accepts only application/x-www-form-urlencoded action bodies, enforces bounded body and field sizes, rejects unknown and duplicate scalar fields, decodes every Feature Contract v1 codec, validates the decoded schema, and returns generic client errors without source or exception details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0disoft/mensor-contract
Environment
{
  "local_name": "@0disoft/mensor-contract",
  "alias": false,
  "peer_metadata": null
}
0.10.0runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "50df29323fe4d26593aeed53a807342673b30d81",
  "tarball": "https://registry.npmjs.org/@0disoft/mensor-reference-runtime/-/mensor-reference-runtime-0.10.0.tgz",
  "fileCount": 23,
  "integrity": "sha512-diWWTrb+kcN7TrADwLH9b7jIznAeuiTyjdmOedI8r8TSL6iV5zm3injkiO0dHslxqbPRhrkIEqKOrwNXHQ4u0Q==",
  "signatures": [
    {
      "sig": "MEUCIEGdih0wNQTaM+3BPY5dhAMmLxKbHiyoEfmIhPjJ1YZwAiEAjTIEuQYLUS0m5lKBE3p9j/jgeAZ59BMc/QGeTco0i5Y=",
      "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
    }
  ],
  "attestations": {
    "url": "https://registry.npmjs.org/-/npm/v1/attestations/@0disoft%2fmensor-reference-runtime@0.10.0",
    "provenance": {
      "predicateType": "https://slsa.dev/provenance/v1"
    }
  },
  "unpackedSize": 55301
}

Repository

PENDING
0disoft/mensor

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:31ee23cd5d7e8257fda2609c79d8928be7040a09e0dc7a6969b3733be6337dc8

Other collected versions

0.10.212 Sept0.10.111 Sept0.9.01 SeptView all collected versions →