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

oakscriptjs

Latest version: v0.24.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: deepentropy16549846511654131546841132
83 Stars
27 Forks
48 Versions
33.8K Downloads
TypeScript Repo language

Scan summary

oakscriptjs was last scanned on 27 Nov 2026 at version 0.24.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 48 versions; the latest 5 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 0.24.0.
  • Downloads: 33,785 downloads.

Versions

48 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.24.0 LATEST 27 Nov 2026 No rules fired
0.23.0 26 Nov 2026 No rules fired
0.22.0 26 Nov 2026 No rules fired
0.21.0 26 Nov 2026 Not shown
0.20.0 25 Nov 2026 Not shown

No rules fired in 0.24.0

Findings

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

README

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

OakScriptJS is a TypeScript/JavaScript library that provides PineScript v6 compatible technical analysis functions. Build trading indicators, write strategy logic for a backtesting engine of your choice (OakScriptJS does not fill orders), or integrate TA calculations into any JavaScript environment.

Quick Start

Install
npm install oakscriptjs
Which API to use
Need API Import
Write an indicator or a strategy the PineScript way Script API oakscriptjs/script
Compute an indicator on plain number arrays Array API (taCore, math, array...) oakscriptjs
Chain calculations on bar data in your own code Series API (Series, ta) oakscriptjs

ES modules and CommonJS, with TypeScript types. Node.js 18+, browsers and web workers. No runtime dependencies.

Calculate an indicator (array API)
import { taCore } from 'oakscriptjs';

const closes = [44, 44.5, 45, 45.5, 46, 46.5, 47, 47.5, 48, 48.5];
const sma = taCore.sma(closes, 5);

console.log(sma); // number[]
Write an indicator (script API)

The oakscriptjs/script entry reads like PineScript: one statement per fact.

import { executeScript, indicator, input, plot, plotshape, bgcolor, ta, color, close } from 'oakscriptjs/script';
import type { Bar } from 'oakscriptjs';

// time: UNIX seconds (the lightweight-charts unit); oldest bar first
const bars: Bar[] = [
  { time: 1704067200, open: 100, high: 105, low: 99, close: 103, volume: 1200 },
  { time: 1704153600, open: 103, high: 107, low: 102, close: 106, volume: 1500 },
  // ...
];

function body() {
  indicator('SMA cross', { overlay: true });
  const fast = ta.sma(close, input.int(10, 'Fast'));
  const slow = ta.sma(close, input.int(30, 'Slow'));
  plot(fast, 'Fast', { color: color.blue });
  plot(slow, 'Slow', { color: color.orange });
  plotshape(ta.crossover(fast, slow), 'Cross up', { style: shape.triangleup, location: location.belowbar, color: color.green });
  bgcolor(color.when(fast.gt(slow), color.new(color.green, 90)));
}

// The host runs the body over bars and collects everything it declared.
const run = executeScript(body, bars);
// run.result.plots / markers / bgColors / labels / lines / tables, run.inputConfig, run.plotConfig, ...

For stateful logic PineScript writes with var/:=/loops, use eachBar inside the script body. The values are plain numbers, so JS operators and if/for work. For PineScript comparison rules (1e-10 tolerance, na compares false), use compare.gt(a, b), compare.eq(a, b)... from oakscriptjs.

import { executeScript, indicator, plot, eachBar, close } from 'oakscriptjs/script';

executeScript(() => {
  indicator('Trend');
  let dir = 0;                              // var dir = 0
  const trend = eachBar((c) => {
    if (c.close > c.get(close, 1)) dir = 1; // dir := 1
    else if (c.close < c.get(close, 1)) dir = -1;
    return dir;
  });
  plot(trend, 'Trend');
}, bars);

Documentation

  • Guide — Getting started, Series, script API, Tier 1 outputs, eachBar
  • Function Inventory — All available functions and coverage

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 oakscriptjs

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229