Catalog npm
PACKAGE EXPLORERView in registry

@0disoft/mensor-reference-runtime

npm

Bounded reference consumer for Mensor runtime manifests.

contractsdeveloper-toolshtmlmensorruntime
Versions collected4
Direct dependencies1From release 0.10.2
Last observed20 Oct, 22:09 UTC

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.

Versions 4

Collected releases
VersionPublishedDirect dependenciesOpen version
0.10.2Registry latest12 Sept 20261
0.10.111 Sept 20261
0.10.010 Sept 20261
0.9.01 Sept 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:0bab59a0808754f0b8b6dcdf371f49c341a1e243be59ea8f346c92017776a071