Observed since 20 Oct, 22:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Deterministic source contract checker for Mensor projects.
Deterministic source contract checker for Mensor projects.
pnpm add @0disoft/mensor-compiler
Node.js 22 or newer is required.
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`);
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.
Mensor is licensed under Apache-2.0.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:08af8b15cb621abe1f99f3dd45690e60924888ba5650296eeca8681bf51ec8d0