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

@cortex-js/compute-engine

Latest version: v0.201.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: arnog
488 Stars
65 Forks
140 Versions
1.6M Downloads
TypeScript Repo language

Scan summary

@cortex-js/compute-engine was last scanned on 24 Nov 2026 at version 0.201.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 140 versions; the latest 5 were published within 3 days (22–24 Nov 2026).
  • Findings: No rules fired in version 0.201.0.
  • Downloads: 1,573,332 downloads.

Versions

140 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.201.0 LATEST 24 Nov 2026 No rules fired
0.200.1 23 Nov 2026 No rules fired
0.200.0 23 Nov 2026 No rules fired
0.199.0 22 Nov 2026 Not shown
0.198.1 22 Nov 2026 Not shown

No rules fired in 0.201.0

Findings

Findings for v0.201.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.201.0; other versions have their own rules, not their own score.

README

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

MathJSON is a lightweight mathematical notation interchange format based on JSON.

The Compute Engine can parse LaTeX to MathJSON, serialize MathJSON to LaTeX or MathASCII, format, simplify and evaluate MathJSON expressions.

Reference documentation and guides at cortexjs.io/compute-engine.

Installation

$ npm install --save @cortex-js/compute-engine

Quick Start

Basic Parsing and Evaluation

No setup required:

import { simplify, evaluate, N, assign } from "@cortex-js/compute-engine";

simplify("x + x + 1").print();
// ➔ 2x + 1

evaluate("2^{11} - 1").print();
// ➔ 2047

N("\\sqrt{2}").print();
// ➔ 1.414213562...

assign("x", 3);
evaluate("x + 2").print();
// ➔ 5

These functions use a shared ComputeEngine instance created on first use. Use getDefaultEngine() to configure it, or create your own instance for isolated configurations.

Working with Numbers (Type-Safe)

Use type guards to safely access specialized properties:

import { evaluate, isNumber } from "@cortex-js/compute-engine";

const expr = evaluate("\\frac{5}{2}");

if (isNumber(expr)) {
  console.log(expr.numericValue);  // 2.5 (type-safe access)
  console.log(expr.isInteger);     // false
}
Working with Symbols
import { parse, isSymbol, sym } from "@cortex-js/compute-engine";

const expr = parse("x + 1");

// Check if expression is a specific symbol
if (sym(expr) === "x") {
  console.log("This is the variable x");
}

// Or use full type guard for more access
const variable = parse("y");
if (isSymbol(variable)) {
  console.log(variable.symbol);  // "y"
}
Working with Functions
import { parse, isFunction } from "@cortex-js/compute-engine";

const expr = parse("2x + 3y");

// Access function structure safely
if (isFunction(expr)) {
  console.log(expr.operator);    // "Add"
  console.log(expr.ops.length);  // 2

  // Iterate over operands
  for (const op of expr.ops) {
    console.log(op.toString());
  }
}
Simplification and Manipulation
import { parse, simplify, expand } from "@cortex-js/compute-engine";

// Simplify expressions
simplify("x + x").print();
// ➔ 2x

// Expand from LaTeX or Expression
expand("(x + 1)^2").print();
// ➔ x^2 + 2x + 1

// Substitute values
const expr = parse("x^2 + 2x + 1");
expr.subs({ x: 3 }).evaluate().print();
// ➔ 16
Solving Equations
import { solve, parse } from "@cortex-js/compute-engine";

// Solve from LaTeX
solve("x^2 - 5x + 6 = 0", "x");
// ➔ [2, 3]

// Solve a linear system
const system = parse("\\begin{cases}x+y=5\\\\x-y=1\\end{cases}");
const solution = system.solve(["x", "y"]);

console.log(solution.x.json);  // 3
console.log(solution.y.json);  // 2
Epsil Language (Experimental)

Epsil is a text-syntax programming language for scientific computing whose intermediate representation is MathJSON, evaluated by the Compute Engine. It ships as a separate, experimental entry point (syntax and semantics may change between releases):

import { ComputeEngine, executeEpsil } from "@cortex-js/compute-engine/epsil";

const ce = new ComputeEngine();
const { value } = executeEpsil(ce, `
  let x = 1/2
  if (x < 1) { x + 1 } else { 0 }
`);
// value.toString() ➔ "3/2"

See the Epsil language documentation.

Epsil CLI and REPL

The package also installs an epsil command:

# Start an interactive session
npx epsil

# Evaluate source text or a file
npx epsil -e 'Simplify(2 + 2x)'
npx epsil program.epsil

# Epsil programs can also be piped over stdin
printf '1/2 + 1' | npx epsil

The interactive session preserves declarations between inputs and supports persistent history, multiline input, .load, .clear, .ast, and .time. Run epsil --help for output formats and execution-limit options.

MCP Server for AI Assistants

The epsil command includes a Model Context Protocol server, so an AI assistant can evaluate Epsil programs — exact arithmetic and symbolic computation as a tool call. For example, with Claude Code:

claude mcp add epsil -- npx -y @cortex-js/compute-engine mcp

The server exposes evaluate, check, doc, parse, and serialize tools, and serves machine-verified cards so the assistant can learn Epsil, and the Compute Engine JavaScript API, on its own. It also has a native Streamable HTTP transport for ChatGPT and other URL-based clients:

npx -y @cortex-js/compute-engine mcp --transport streamable-http

See the MCP server guide for ChatGPT setup and HTTPS deployment options.

💡 Best Practices:

  • Always use type guards (isNumber, isSymbol, isFunction) before accessing specialized properties
  • Use the sym() helper for quick symbol name checks

📚 Learn More: Full documentation and guides

FAQ

Q How do I build the project?

Build instructions

Q How is the project structured?

See ARCHITECTURE.md for an overview of the codebase.

Related Projects

Support the Project

  • 🌟 Star the GitHub repo (it really helps)
  • 💬 Ask questions and give feedback on our Discussion Forum
  • 📨 Drop a line to arno@arno.org

License

This project is licensed under the MIT 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 @cortex-js/compute-engine

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

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

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