Mind meets machine

Someone Literally Connected Their Brain to GPT-4 With JavaScript!

In this crazy tutorial, you’ll learn how to use JavaScript to read your brainwaves.

Komal Sharma
5 min readApr 27, 2023

--

High Focus Neurosity Crown

Someone hacked their brain with a compact EEG and connected it to GPT-4 with JavaScript.

Today You’ll Learn:

  • How do you read brainwaves?
  • Reading your brain with code
  • Mindreading with an EEG
  • How to use the OpenAI API
  • How do brainwaves work?

How do you read brainwaves?

How do you read brainwaves?
Photo by Morgan Housel on Unsplash

Brainwaves are the electrical activity produced by the brain when it’s functioning. They can be measured using a device called an electroencephalogram (EEG), which consists of electrodes placed on the scalp that detect and record the electrical signals from the brain.

These electrical signals are then amplified and recorded on a computer, where they can be analyzed and interpreted by a trained professional.

--

--

Komal Sharma
Komal Sharma

Written by Komal Sharma

I write (while also trying not to get lost in the algorithmic rabbit hole)