Catalog npm
PACKAGE EXPLORERView in registry

@0disoft/mensor-compiler

npm

Deterministic source contract checker for Mensor projects.

contractshtmlmensorstatic-analysistypescript
Versions collected7
Direct dependencies4From release 0.10.2
Last observed20 Oct, 22:08 UTC

README

Current package documentation

@0disoft/mensor-compiler

Deterministic source contract checker for Mensor projects.

Install

pnpm add @0disoft/mensor-compiler

Node.js 22 or newer is required.

Check A Project

import { checkProject } from "@0disoft/mensor-compiler";

const result = await checkProject({ root: process.cwd() });

if (!result.ok) {
  process.exitCode = 1;
}

process.stdout.write(`${JSON.stringify(result.report, null, 2)}\n`);

Compile A Runtime Manifest

import { compileProject } from "@0disoft/mensor-compiler";

const result = await compileProject({ root: process.cwd() });
if (result.ok) {
  process.stdout.write(`${JSON.stringify(result.manifest, null, 2)}\n`);
}

The compiler emits a manifest only after every configured diagnostic passes. The artifact contains static GET page HTML, POST routes, handler ids, and form decode contracts; it contains no source path, AST node, or executable handler.

Template producers may reuse the pure extractStaticHtmlFormDocument(file, html) export to obtain the same serializable HTML facts as the built-in provider. The helper does not read files or execute source; producers still own source binding, digests, embedded-fragment range offsets, and FormIndex serialization.

The default result contains DiagnosticReport v1. Select Check Output v2 explicitly when inspection coverage is required:

const result = await checkProject({
  root: process.cwd(),
  reportVersion: 2,
});

Contract failures are returned as data. Unexpected I/O or compiler failures remain exceptions. The compiler reads supported project files but does not execute project source or configuration, spawn framework tools, install dependencies, or access the network.

Documentation

Mensor is licensed under Apache-2.0.

Downloads & popularity

Awaiting observations

No metric observations yet

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

Versions 7

Collected releases
VersionPublishedDirect dependenciesOpen version
0.10.2Registry latest12 Sept 20264
0.10.111 Sept 20264
0.10.010 Sept 20264
0.9.01 Sept 20264
0.2.19 Aug 20264
0.2.022 Jul 20264
0.1.020 Jul 20264

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:08 UTC

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

Record identity

package:08af8b15cb621abe1f99f3dd45690e60924888ba5650296eeca8681bf51ec8d0