
Brain.js
Brain.js provides GPU-accelerated neural networks in JavaScript for browsers and Node.js.

About Brain.js
Brain.js is an open-source JavaScript library that delivers GPU-accelerated neural network functionality for use in both web browsers and Node.js runtimes. It is a maintained continuation of the previously unmaintained harthur/brain project. The library supports multiple neural network architectures, including feedforward, recurrent, LSTM, GRU, and autoencoder types, with configurable training options and built-in utility functions for common tasks.
Key features
- GPU-accelerated neural network computation for browsers and Node.js
- Supports feedforward, recurrent, LSTM, GRU, and autoencoder network types
- Configurable training options including async training and cross validation
- Built-in utilities for classification and network visualization
- Installable via npm, CDN, or direct browser download
- Supports stream-based training for large datasets
- Open-source library providing GPU-accelerated neural networks in JavaScript
- Compatible with both web browsers and Node.js for cross-platform deployment
- Includes multiple common neural network architectures out of the box
- GPU functionality depends on the native headless-gl module, which may require manual building if prebuilt binaries fail to download
- Windows setup instructions rely on legacy npm commands incompatible with modern npm versions
- It is a community-maintained continuation of a previously unmaintained project with no stated long-term support guarantees
Brain.js at a glance
- Website
- github.com/BrainJS/brain.js
- Category
- Development › Developer Tools
- Type
- Open-source project
- Pricing
- Not confirmed. Check the site
- Open source
- Yes · Source code
- Language
- English
- Last checked
- Oct 6, 2026 · Online when checked
- Listed
- Oct 5, 2026
Guides for Developer Tools
Brain.js alternatives
Tools and sites you could use instead, ranked by how closely they match.
Kinho’s Neural repository provides an API for deep learning and feedforward neural network models.
Neural networks in pure C are provided by notorch, a software library in this repository.
Netron displays neural network, deep learning, and machine learning models across formats such as ONNX, TensorFlow, and PyTorch.
crystal-fann provides Crystal language bindings for the FANN artificial neural network library.
This Node.js library implements Latent Dirichlet Allocation topic modeling in JavaScript.
SVGO optimizes SVG files through a Node.js library and command-line tool.
Popular in Developer Tools
Well-known listings from the same topic.
Brain.js FAQ
Does Brain.js support GPU acceleration?
What neural network types does Brain.js support?
How can I install Brain.js for a project?
Tell us and an editor will check it.
Claim the listing and suggest updates yourself. An editor checks every claim first.













