registry  /  @realtimex/node-llama-cpp  /  0.253.0

@realtimex/node-llama-cpp@0.253.0

Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level

Static Scan Results

scanned 4d ago · by rust-scanner

Static analysis flagged 12 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessCryptoDynamicRequireEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsTelemetryUrlStrings
ManifestNo manifest risk signals triggered.
scanned 276 file(s), 1.61 MB of source, external domains: api.github.com, github.com, hf.co, huggingface.co, node-llama-cpp.withcat.ai, registry.npmjs.org

Source & flagged code

3 flagged · loading source
package.jsonView file
scripts.postinstall = node ./dist/cli/cli.js postinstall
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = node ./dist/cli/cli.js postinstall
Medium
Ambiguous Install Lifecycle Script

Install-time lifecycle script is not statically allowlisted and needs review.

package.jsonView on unpkg
dist/bindings/utils/testBindingBinary.jsView file
9import { getPlatform } from "./getPlatform.js"; L10: const require = createRequire(import.meta.url); L11: const __filename = fileURLToPath(import.meta.url);
Medium
Dynamic Require

Package source references dynamic require/import behavior.

dist/bindings/utils/testBindingBinary.jsView on unpkg · L9

Findings

1 High5 Medium6 Low
HighInstall Time Lifecycle Scriptspackage.json
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumDynamic Requiredist/bindings/utils/testBindingBinary.js
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowNon Install Lifecycle Scripts
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowTelemetry
LowUrl Strings