Skip to main content
Home

Built and signed on GitHub Actions

OakScriptJS is a TypeScript/JavaScript library that mirrors PineScript's calculation and indicator API, maintaining exact function signatures and behavior. This library focuses on the computational core of PineScript

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
88%
Published
6 days ago (0.1.3)
interface Box

Box object - Represents a rectangular area on the chart

Properties

Left border x coordinate (bar index or UNIX timestamp)

Top border y coordinate (price level)

Right border x coordinate (bar index or UNIX timestamp)

Bottom border y coordinate (price level)

xloc: "bar_index" | "bar_time"

X-axis coordinate system

extend:
"none"
| "left"
| "right"
| "both"

Horizontal extension mode

Border color (stored but not used for calculations)

Border width in pixels (stored but not used for calculations)

optional
border_style:
"solid"
| "dotted"
| "dashed"

Border style (stored but not used for calculations)

optional
bgcolor: color

Background fill color (stored but not used for calculations)

optional
text: string

Text content displayed in the box

Text size

Text color

optional
text_halign:
"left"
| "center"
| "right"

Horizontal text alignment

optional
text_valign:
"top"
| "center"
| "bottom"

Vertical text alignment

optional
text_wrap: "none" | "auto"

Text wrapping mode

optional
text_font_family: "default" | "monospace"

Text font family

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@deepentropy/oakscriptjs

Import symbol

import { type Box } from "@deepentropy/oakscriptjs";
or

Import directly with a jsr specifier

import { type Box } from "jsr:@deepentropy/oakscriptjs";

Add Package

pnpm i jsr:@deepentropy/oakscriptjs
or (using pnpm 10.8 or older)
pnpm dlx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Box } from "@deepentropy/oakscriptjs";

Add Package

yarn add jsr:@deepentropy/oakscriptjs
or (using Yarn 4.8 or older)
yarn dlx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Box } from "@deepentropy/oakscriptjs";

Add Package

vlt install jsr:@deepentropy/oakscriptjs

Import symbol

import { type Box } from "@deepentropy/oakscriptjs";

Add Package

npx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Box } from "@deepentropy/oakscriptjs";

Add Package

bunx jsr add @deepentropy/oakscriptjs

Import symbol

import { type Box } from "@deepentropy/oakscriptjs";