Epoc.js: Open Source JavaScript Brain Sensor Controller Software

The recent transition from science fiction to reality for the brain-machine Interface, coupled with Atwood’s Law, “any application that can be written in JavaScript, will eventually be written in JavaScript,” had led to Epoc.js, an open source control software for the Emotiv line of brain sensors.

The software provided from Emotiv is not open source, and raw data from each sensor is not available. Instead, their API allows access to features such as accelerometer and gyroscope, performance (excitement, relaxation, etc.), and expressions (wink, frown, smile, etc.), mental commands (push, pull, lift, etc.).

Epoc.js – An open source software

To make the brain-machine interface work, an end user needs first to train the mental commands. Once finished, you can then use epoc.js, created by Charlie Gerard, a software developer at ThoughtWorks, to work with the Emotiv API, as well as use the Emotiv emulator.


Gerard has used epoc.js to create several demonstrations, including a brain keyboard, navigation of a 3D space using WebVR, and flying a drone.

There is a range of brain waves which may get detected, of which different types of apps may focus their efforts:

  • Delta (0.5-4 Hz) – deep dreamless sleep, repair
  • Theta (4-8 Hz) – creativity, dreams, meditations
  • Alpha (8-13 Hz) – physical and mental relaxation
  • Beta (13-32 Hz) – awake, conscious, thinking
  • Gamma (32-100 Hz) – learning, problem-solving

Gerard explains that some of the current limits to brain-sensor controller software include per-user training, initial latency, accuracy for non-invasive hardware, and social acceptance.

Epoc.js provides a variety of device data and events for developers to interact with the Emotiv brain sensors.

Other interesting JavaScript efforts in the brain-machine interface include:

  • Wits – Node.js library that reads your mind with the Emotiv EPOC EEG headset
  • BCI.js – Library for EEG-based brain-computer interface (BCI) design with JavaScript and Node.js, with methods for signal processing and machine learning, data manipulation, data windowing, and networking
  • OpenBCI Ganglion – WebBluetooth client for the Ganglion EEG board by OpenBCI
  • Brain Bits – A P300 online spelling mechanism for Emotiv headsets

While in its early stages, brain-machine interface technology is advancing rapidly and offers a variety of possible uses.

Epoc.js is an open source software available under the MIT license. Contributions and feedback are encouraged via the Epoc.js GitHub project.

Recent Articles

5 tips for effective remote pair programming

Home office is a challenge where people work and communicate closely together. Pair programming, i.e. working together on a source code, also lives from...

What are the Reasons You Should Play Online Bingo?

Online bingo is fast becoming popular among the masses. It uses unique bingo software to bring fun to you without you having to go somewhere to...

Most in-demand IT jobs from last decade

Uber for travel, Netflix for leisure and Google for everything is the ideal routine that we all wish to follow, of course with Instagram...

The finest text editor for professional bloggers

It is a fact that blogs have replaced books and magazines due to increasing popularity of the online world. Serious readers subscribe to blogs...

Angular 9 final release released

Angular 9 final is here! The new version was released a little late. Ivy is of course one of the new features, but that's...

Related Stories

1 Comment

Leave A Reply

Please enter your comment!
Please enter your name here