The TypeScript Toolkit for AI & Numerical Computing

Comprehensive, type-safe framework unifying tensors, DataFrames, neural networks, and classical ML into a single modular package.

npm install deepboxNode ≥ 24.13
quickstart.ts
1import { tensor, add, parameter } from "deepbox/ndarray"2import { DataFrame } from "deepbox/dataframe"3import { LinearRegression } from "deepbox/ml"45// Tensor operations6const a = tensor([[1, 2], [3, 4]])7const b = tensor([[5, 6], [7, 8]])8const c = a.add(b) // [[6, 8], [10, 12]]910// Automatic differentiation11const x = parameter([2, 3])12const y = x.mul(x).sum()13y.backward() // x.grad -> tensor([4, 6])1415// DataFrames16const df = new DataFrame({17  name: ["Alice", "Bob"],18  score: [85, 90]19})2021// Machine learning22const model = new LinearRegression()23model.fit(XTrain, yTrain)
50
Examples
9
Projects
Zero
Dependencies

Complete ML Toolkit

From tensor operations to model training — everything in one package.

Dense + Sparse

N-Dimensional Arrays

Dense and sparse tensors with autograd, FFT, einsum, signal processing, and rich dtype support.

Autograd

Automatic Differentiation

GradTensor with full backward pass support for neural network training.

Tabular + IO

DataFrames & Series

Tabular workflows with accessors, window ops, IO, styling, and plotting integration.

Deep Learning

Neural Networks

Modules, containers, conv/recurrent/transformer layers, losses, trainer, and initialization.

Expanded ML

Machine Learning

Linear, tree, ensemble, SVM, neighbors, anomaly, calibration, and model-selection APIs.

Stats + Metrics

Statistics & Metrics

Distributions, KDE, hypothesis tests, confidence intervals, and evaluation metrics.

13 Modules, One Package

deepbox/coreRuntime types, validation, config, backends, serialization, worker pools
deepbox/ndarrayDense and sparse tensors, autograd, FFT, einsum, signal and numerical ops
deepbox/linalgSVD, QR, LU, Cholesky, eigendecomposition, solvers, norms
deepbox/dataframeDataFrame, Series, accessors, window ops, IO, styling, plotting
deepbox/statsDescriptive stats, distributions, KDE, tests, confidence, power
deepbox/mlLinear, trees, ensembles, SVM, neighbors, clustering, pipelines, selection
deepbox/nnModules, conv/recurrent/transformer layers, losses, trainer, initialization
deepbox/optimSGD, Adam-family, LAMB/LARS/LBFGS, and scheduler policies
deepbox/metricsClassification, regression, clustering, ranking, and pairwise metrics
deepbox/preprocessScalers, encoders, imputers, feature engineering, text, CV splits
deepbox/randomSeeded generation, Generator, distributions, and sampling utilities
deepbox/datasetsBuilt-in loaders, remote helpers, Kaggle, generators, and DataLoader
deepbox/plotFigure API, diagnostics, animation, interactive, SVG/PNG/PDF output

Ready to get started?

Read the docs and start building with Deepbox today.

Read the Docs