npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

intellivium

v0.4.0

Published

Intellivium: framework de deep learning con núcleo en Rust, nativo de Node.js. Sin C/C++.

Downloads

492

Readme

A high-performance Deep Learning framework with a Rust core, native to the Node.js ecosystem.

Forge your own neural networks — no Python, no C/C++ toolchain, no heavyweight runtime.

npm core runtime bindings license

English · Español


Overview

Intellivium (formerly NeuroForge) is a deep learning framework whose numerical core is written entirely in Rust and exposed to JavaScript/TypeScript through N-API. The goal is the power of a native ML engine with the ergonomics of the npm ecosystem: npm install, import, and train — with precompiled binaries per platform and no C/C++ source, no Python, and no embedded VM.

It draws inspiration from PyTorch, TensorFlow and Flux.jl, but makes a deliberate engineering choice: one native language (Rust) for the engine, TypeScript for the public API, and Zig reserved strictly for future hot kernels.

Why not Julia / C++? Julia can be embedded, but it drags its full runtime (VM + LLVM + stdlib, hundreds of MB) plus JIT warm-up — impractical to ship over npm. C++ is unnecessary: Rust delivers the same low-level control and SIMD without the toolchain pain. See Architecture.


✨ Why Intellivium

| | | |---|---| | 🦀 Rust core | Memory-safe, fast, with a tape-based reverse-mode autograd engine built from scratch. | | 📦 Node-native | Ships as prebuilt N-API binaries: npm install and go — no compiler required by users. | | 🧩 Modular | Clean separation: engine (neuroforge-core) ↔ bindings (neuroforge-napi) ↔ API (ts/). | | 🪶 Zero heavyweight deps | No Python interpreter, no Julia runtime, no libtorch. The whole engine is one native addon. | | 🔓 TypeScript-first API | Fully typed, ergonomic surface that reads like modern JS. | | ⚙️ Zig-ready | Architecture leaves a clean hook for Zig SIMD kernels when profiling demands it. |


🚦 Project Status

v0.4.0 · on npm. The engine is tested and trains real models. It's still pre-1.0, so the API may evolve — and the grand vision further down is a roadmap, not a current claim.

Available today

  • Reverse-mode automatic differentiation (Wengert tape, no Rc<RefCell>).
  • Ops: matmul, broadcasted bias add, relu, sigmoid, tanh, MSE.
  • Dense layers with He init, sequential Model, SGD & Adam optimizers, MSE / BCE / categorical cross-entropy losses, softmax for multi-class output, mini-batch training, gradient clipping, LR decay, and model save/load.
  • N-API bindings + typed TypeScript API.
  • Validated end-to-end on the XOR problem (non-linear): loss 0.247 → 0.0002.

🚀 Quickstart

npm install intellivium
import { tensor, dense, Model } from "intellivium";

// XOR — the classic non-linear sanity check
const X = tensor([[0, 0], [0, 1], [1, 0], [1, 1]]);
const y = tensor([[0],    [1],    [1],    [0]]);

const model = new Model([
  dense(2, 8, "tanh"),
  dense(8, 1, "sigmoid"),
]);

const history = await model.train(X, y, {
  epochs: 1500,
  lr: 0.05,
  optimizer: "adam",
  loss: "bce",
});
console.log("final loss:", history.at(-1));

const pred = model.predict(X);
console.log(pred.toArray()); // ≈ [[0], [1], [1], [0]]

Architecture

The autograd graph lives entirely in Rust. Only flat tensors (Float64Array + shape) and high-level operations cross the FFI boundary — the graph is never marshalled per-op.

flowchart TD
    subgraph JS["TypeScript / JavaScript"]
        A["Public API<br/>tensor · dense · Model"]
    end
    subgraph NAPI["neuroforge-napi (cdylib)"]
        B["N-API bridge<br/>flat tensors in / out"]
    end
    subgraph CORE["neuroforge-core (pure Rust)"]
        C["Autograd tape<br/>matmul · add · relu · sigmoid · tanh · mse"]
        D["nn: Dense · Model · SGD/Adam"]
        E["(future) Zig SIMD kernels"]
    end
    A -->|Float64Array + shape| B
    B --> C
    D --> C
    C -.->|hot path| E

Layout

Intellivium/
├── crates/
│   ├── neuroforge-core/    # pure-Rust engine: autograd + nn  ← works today
│   │   ├── src/tape.rs     #   reverse-mode AD (the heart)
│   │   ├── src/nn.rs       #   Dense, Model, train/predict
│   │   └── examples/xor.rs #   `cargo run` proof
│   └── neuroforge-napi/    # N-API bindings → .node
├── src/                    # public TypeScript API
└── examples/               # xor.mjs (Node)

🔧 Build from source

Requirements: Rust (rustup), Node.js 18+, and @napi-rs/cli (already a dev dependency).

# 1. test the Rust engine alone (no Node needed)
cargo run --release -p neuroforge-core --example xor

# 2. build everything (native .node + TypeScript)
npm install
npm run build

# 3. run the Node example
npm test

🗺️ Roadmap & Vision

The engine is the foundation. Everything below is the long-term plan, phase by phase — honest about what already ships versus what's still ahead.

Legend: ✅ Complete · 🟡 Partial · 🔴 Planned

Phase 1 — Deep Learning Core · 🟡

A stable, reliable engine.

Tensors

  • [ ] Data types (dtype system — currently f32 only)
  • [x] Broadcasting
  • [x] Basic operations
  • [x] MatMul
  • [x] Shape checking
  • [ ] Tensor views

Autograd

  • [x] Reverse mode
  • [x] Wengert tape
  • [x] Gradients
  • [x] Computation graph
  • [x] Automatic graph release

Neural networks

  • [x] Dense
  • [x] Sequential
  • [x] He initialization
  • [x] ReLU
  • [x] Sigmoid
  • [x] Tanh
  • [x] Softmax

Loss functions

  • [x] MSE
  • [x] BCE
  • [x] Cross-Entropy (categorical)

Optimizers

  • [x] SGD
  • [x] Adam

API

  • [x] TypeScript
  • [x] N-API
  • [x] npm

Phase 2 — Training · 🟡

Make training a model comfortable.

Dataset

  • [ ] Dataset
  • [ ] TensorDataset
  • [ ] Custom Dataset

DataLoader

  • [x] Mini-batch
  • [x] Shuffle
  • [ ] Batch iterator

Training loop

  • [ ] Validation
  • [ ] Early stopping
  • [ ] Checkpoints
  • [x] Gradient clipping
  • [x] Learning-rate scheduler

Serialization

  • [x] save()
  • [x] load()
  • [ ] exportWeights()
  • [ ] importWeights()

Phase 3 — Neural Library · 🔴

More building blocks.

Layers

  • [ ] Dropout
  • [ ] BatchNorm
  • [ ] LayerNorm
  • [ ] Embedding
  • [ ] Flatten
  • [ ] Reshape

CNN

  • [ ] Conv1D
  • [ ] Conv2D
  • [ ] Conv3D

Pooling

  • [ ] MaxPool
  • [ ] AvgPool
  • [ ] Global pool

Recurrent

  • [ ] RNN
  • [ ] LSTM
  • [ ] GRU

Phase 4 — Engine Optimization · 🔴

Before adding modern AI.

SIMD

  • [ ] Zig SIMD
  • [ ] Optimized MatMul
  • [ ] Optimized Conv

Memory

  • [ ] Arena allocator
  • [ ] Buffer pool
  • [ ] Zero copy
  • [ ] Tensor pool

Parallelism

  • [ ] Rayon
  • [ ] Multi-thread

Benchmark

  • [ ] Benchmarks
  • [ ] Profiler

Phase 5 — Modern Architectures · 🔴

Where Transformers finally appear.

Attention

  • [ ] Self-attention
  • [ ] Multi-head attention
  • [ ] Positional encoding
  • [ ] Rotary embeddings

Transformers

  • [ ] Encoder
  • [ ] Decoder
  • [ ] GPT
  • [ ] BERT

Vision

  • [ ] Vision Transformer
  • [ ] ConvNeXt

Phase 6 — Generative Models · 🔴

  • [ ] Autoencoder
  • [ ] VAE
  • [ ] GAN
  • [ ] Diffusion

Phase 7 — Reinforcement Learning · 🔴

  • [ ] Replay buffer
  • [ ] DQN
  • [ ] PPO
  • [ ] SAC
  • [ ] Actor-Critic

Phase 8 — ForgeLab · 🔴

Scientific computing.

Linear algebra

  • [ ] LU
  • [ ] QR
  • [ ] SVD
  • [ ] Eigen

Numerical

  • [ ] Optimization
  • [ ] ODE
  • [ ] Root finding

Statistics

  • [ ] Monte Carlo
  • [ ] Distributions

Phase 9 — Hyper-Data Engine (HDE) · 🔴

Data

  • [ ] Lazy loading
  • [ ] Streaming
  • [ ] Hot cache
  • [ ] Dataset cache

Formats

  • [ ] Parquet
  • [ ] Arrow
  • [ ] CSV
  • [ ] JSON

Engine

  • [ ] Memory mapping
  • [ ] Prefetch
  • [ ] Columnar storage

Phase 10 — GPU · 🔴

GPU

  • [ ] CUDA
  • [ ] ROCm
  • [ ] Metal
  • [ ] Vulkan

Mixed precision

  • [ ] FP16
  • [ ] BF16

Quantization

  • [ ] INT8
  • [ ] INT4

Phase 11 — Production · 🔴

  • [ ] Inference engine
  • [ ] Batch inference
  • [ ] ONNX
  • [ ] Serving
  • [ ] HTTP
  • [ ] gRPC

Phase 12 — Ecosystem · 🔴

Tooling, not AI.

Visualization

  • [ ] Dashboard
  • [ ] Tensor inspector
  • [ ] Training graphs

Extensions

  • [ ] Plugins
  • [ ] Custom layers
  • [ ] Custom optimizers

Model Hub

  • [ ] Models
  • [ ] Datasets

Phase 13 — Research · 🔴

The most ambitious vision.

Distributed

  • [ ] Multi-GPU
  • [ ] Multi-node

Compiler

  • [ ] Graph optimizer
  • [ ] Kernel fusion

AutoML

  • [ ] NAS
  • [ ] Hyperparameter search

🤝 Contributing

Issues, ideas and pull requests are welcome. For substantial changes, open an issue first to discuss direction. Please keep the engine (neuroforge-core) free of binding/runtime concerns — that separation is intentional.


⚠️ License

Apache License 2.0. You may use, modify, and distribute this software under the terms of the Apache 2.0 license, including a patent grant. Copyright © 2026 Brashkie.


If Intellivium is useful to you, consider starring the repo.

Built by Brashkie