Brain.js

github.com/BrainJS/brain.js Developer Tools Open-source projectOpen source

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

github.com/BrainJS/brain.js
Brain.js homepage screenshot

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
Best for: JavaScript developers building neural network applications for web browsers or Node.js, particularly those seeking GPU acceleration within the JavaScript ecosystem.
Good for
  • 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
Watch out for
  • 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

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

Brain.js alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in Developer Tools

Well-known listings from the same topic.

All 423

Brain.js FAQ

Does Brain.js support GPU acceleration?
Yes, GPU acceleration is supported via the native headless-gl module; manual building may be required if prebuilt binaries fail to download.
What neural network types does Brain.js support?
It supports feedforward, recurrent, LSTM, GRU, and autoencoder neural network types.
How can I install Brain.js for a project?
It can be installed via npm, included via CDN, or downloaded directly for browser use.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing