Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@mdscript/mds-napi

Latest version: v0.7.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dean0x
2 Stars
1 Forks
9 Versions
517 Downloads
Rust Repo language

Scan summary

@mdscript/mds-napi was last scanned on 23 Nov 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 9 versions; the latest 4 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 0.7.0.
  • Downloads: 517 downloads.

Versions

9 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.0 LATEST 23 Nov 2026 No rules fired
0.6.0 21 Nov 2026 No rules fired
0.5.1 20 Nov 2026 No rules fired
0.5.0 20 Nov 2026 Not shown
0.4.4 26 Sep 2026 Not shown

No rules fired in 0.7.0

Findings

Findings for v0.7.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.7.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@mdscript/mds-napi

Native Node.js bindings for the MDS (Markdown Script) compiler, built with napi-rs.

This is the high-performance backend used by @mdscript/mds on Node.js. Most users should depend on @mdscript/mds, not this package directly — @mdscript/mds loads this native addon automatically and falls back to @mdscript/mds-wasm when a prebuilt binary is unavailable.

How it loads

This host package contains only the loader (index.js) and TypeScript types (index.d.ts). The compiled .node binaries ship in per-platform packages declared as optionalDependencies, filtered by os/cpu/libc:

Platform package Target
@mdscript/mds-napi-darwin-arm64 macOS Apple Silicon
@mdscript/mds-napi-darwin-x64 macOS Intel
@mdscript/mds-napi-linux-x64-gnu Linux x64 (glibc)
@mdscript/mds-napi-linux-x64-musl Linux x64 (musl)
@mdscript/mds-napi-linux-arm64-gnu Linux arm64 (glibc)
@mdscript/mds-napi-linux-arm64-musl Linux arm64 (musl)
@mdscript/mds-napi-win32-x64-msvc Windows x64

index.js selects the matching binary at runtime from process.platform, process.arch, and (on Linux) the detected libc.

API

const { compile, compileFile, check, checkFile, lint, lintFile, lintVirtual } = require('@mdscript/mds-napi');
compile(source, opts?)

Compile an MDS source string. Returns a discriminated-union result object:

  • Markdown: { kind: "markdown", output: string, warnings: string[], dependencies: string[], sourceMap?: object }
  • Messages: { kind: "messages", messages: [{role,content},...], warnings: string[], dependencies: string[] }

Options:

  • basePath (string) — base directory for @import resolution; defaults to cwd.
  • vars (object) — runtime variable overrides.
  • sourceMap (boolean) — generate a Source Map v3 document; result gains sourceMap. For string-source compiles the source string is named "input.mds" — sources[0], unless the string @extends a base: then the chain's root base comes first.
  • sourcesContent (boolean) — embed original source text in the map (requires sourceMap). ⚠ Privacy: embeds the full template source.
compileFile(path, opts?)

Same result shape as compile. Options: vars, sourceMap, sourcesContent. basePath is not accepted — the base directory is derived from the file path.

check(source, opts?) / checkFile(path, opts?)

Validate without rendering. Returns { warnings: string[] }. Options: basePath, vars (check only; checkFile: vars only). Source-map options are not accepted — check does not generate output.

lint(source, opts?) / lintFile(path, opts?) / lintVirtual(modules, entry, opts?)

Static analysis. Returns the canonical lint JSON: { version: 1, files: [{file, diagnostics: [{rule, severity, message, help: string | null, fixable, fix_edits: ... | null, span: LintSpan | null},...]},...], truncated: bool, lint_warnings?: string[] }

help, span, and fix_edits are always-present keys in the JSON object; their value is null when the rule emits no hint, produces no source span, or carries no fix edits respectively.

Options: basePath (lint only — lintFile derives the base from the file path; lintVirtual resolves against the module map), vars, rules (Record<string, "off"|"info"|"warn"|"error">). Unknown rule names in rules emit a warning and lint continues — the unknown name has no effect but result.lint_warnings (a string[] field, absent when empty) is populated so callers can surface the issue; unknown severity values throw mds::invalid_options.

files[].file key: lint() sets this to "input.mds" (string-source); lintFile() sets it to the file's path; lintVirtual() sets it to the caller-supplied entry key. The CLI additionally relabels stdin input as "<stdin>" — this asymmetry does not apply to the napi binding.

See index.d.ts for the full typed surface.

License

MIT — see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @mdscript/mds-napi

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229