A Storm Inside Your Skull
Right now, as you read this sentence, around 86 billion neurons are firing inside your skull. They are not firing randomly. They are firing in patterns — cascading, overlapping, relaying pulses of electricity across a network so complex that no computer built by human hands has ever come close to matching it. The human brain is, in the most literal sense, a machine that runs on electricity.
I wanted to understand that. Not from a textbook diagram, but truly understand what it means for the brain to be electric — and then I wanted to build something that mirrored it.
A neuron, at rest, is like a sealed battery. The inside of the cell is negatively charged, mostly because it is packed with negatively charged proteins and potassium ions. The outside is positively charged, rich in sodium ions. This difference in charge — called the resting membrane potential — sits at around -70 millivolts. That is not nothing. That is potential. That is energy, coiled and waiting.
When a neuron receives a signal strong enough to tip it over a threshold — around -55 millivolts — something extraordinary happens. Channels in the cell membrane burst open. Sodium floods in. The charge inside the cell shoots from -70mV to +40mV in less than a millisecond. This is the action potential: the electrical pulse that is thought.
What I found fascinating was the speed. The action potential travels down the axon at up to 120 metres per second in the fastest nerve fibres — the ones wrapped in a fatty insulating layer called myelin. Nodes of Ranvier, the tiny gaps between myelin sheaths, allow the signal to leap forward rather than crawl, a trick called saltatory conduction. The brain is already doing electrical engineering, before we ever picked up a soldering iron.
The Synapse — Where Everything Happens
The action potential reaches the end of the axon — the axon terminal — and here, something changes. The signal cannot simply jump. There is a gap: the synaptic cleft, roughly 20 nanometres wide. An electrical pulse cannot leap 20 nanometres of fluid by itself. So the neuron does something extraordinary: it converts electricity into chemistry.
Tiny bubbles called vesicles, packed with chemical messengers called neurotransmitters, fuse with the cell membrane and spill their contents into the cleft. These molecules — dopamine, serotonin, glutamate, GABA, among others — drift across the gap and lock onto receptors on the next neuron. If enough receptors are activated, the next neuron fires its own action potential. The chemistry converts back to electricity. The signal continues.
The synapse is not just a junction. It is a translation layer — converting electricity into chemistry and back again, deciding in a fraction of a millisecond whether one thought should connect to the next.
What makes this beautiful — and deeply relevant to the project I built — is that synapses are not fixed. They change. A connection that is used frequently becomes stronger. A connection rarely used weakens and may disappear entirely. This is called synaptic plasticity, and it is the biological basis of learning and memory. Donald Hebb described it in 1949: "Neurons that fire together, wire together." Every time you remember something, you are literally reinforcing a physical connection in your brain.
Not just one connection — a network
A single neuron can have up to 10,000 synaptic connections. It can receive signals from thousands of other neurons simultaneously and send its output to thousands more. There is no single wire running from thought to thought. The brain is a dense, overlapping, constantly shifting graph — where meaning emerges not from any single cell, but from the pattern of connections between millions of them.
I remember staring at a connectome map — a visual map of all connections in a small piece of brain tissue — and thinking: this looks like the internet. It looks like every good idea I have ever had. And it looked nothing like my notes folder.
The Problem With Folders
I take a lot of notes. I always have. But somewhere around my second year of serious studying I noticed something was wrong. I had hundreds of notes. I had folders inside folders. I had tags, colours, labels. And yet every time I tried to find an idea — really find it, the spark of a connection between something I read last month and something I was learning today — I came up empty.
The problem, I realised, was the folder. A folder is a hierarchical structure. It forces you to place a note in exactly one place, in exactly one category. But ideas do not live in one place. A note about action potentials is also a note about physics, also a note about information theory, also a note about the nature of consciousness. A folder system makes you choose one. The brain never makes that choice.
I wanted to showcase something different. I wanted to build a system that behaved more like the thing it was meant to augment: the brain itself. Where notes could be connected to each other not because a human manually drew a line between them, but because the system understood what they meant — and linked them automatically.
The concept of synaptic plasticity gave me the frame. In the brain, connections form because neurons that activate together grow stronger bonds. I wanted notes to form connections because their meaning overlapped — even if their exact words did not.
Building the Artificial Synapse
This is where the biology ended and the engineering began. The project I built is called Synapse. The name was not accidental.
The central idea was this: every note you write gets converted into a mathematical object — a vector embedding — by an AI model. This vector is a list of numbers, usually several hundred of them, that encodes the semantic meaning of the text. Two notes about related concepts — even if they use completely different words — will have vectors that point in similar directions in this high-dimensional space.
The angular distance between them, computed as cosine similarity, becomes the strength of their connection. Exactly like synaptic weight.
From biology to code
The technical implementation used Ollama running locally on my machine — a tool that runs AI language models without sending any data to the cloud. Every note, when saved, is embedded by a model called nomic-embed-text, which converts the text into a 768-dimensional vector. Then, cosine similarity is computed between every pair of notes. Any pair scoring above 0.65 — meaning their meanings overlap significantly — gets a link drawn between them.
The frontend renders this as an interactive force-directed graph using D3.js. Nodes are notes. Edges are connections. The weight of the edge corresponds to the strength of the semantic overlap. You can drag nodes, zoom in, explore clusters of ideas you did not know were related.
I wanted to showcase what happens when you let AI handle the organisation and let humans handle the thinking. The result surprised me. After writing around 50 notes, clusters appeared that I had not planned. A note about breathing exercises sat next to one about focus, which sat next to one about code architecture. The system had discovered, without being told, that these topics share conceptual territory in the domain of concentrated work.
That is what the brain does. That is what the synapse makes possible. A connection that was never drawn by hand, but forms because the meanings are close.
The Browser — Searching Without Being Watched
There was a second project that grew alongside Synapse, more quietly. I called it Synapse Browser — and the name again was deliberate.
In the brain, the synapse is the place where signals are filtered. Not every signal that arrives gets passed on. The postsynaptic neuron decides, based on the sum of all incoming signals, whether to fire or not. It is an act of selective transmission. Some signals pass. Others are suppressed.
Most search engines are the opposite of selective. They are hungry. Every query you type is logged, profiled, used to build a model of who you are and what you want, and then sold. Your thoughts — your searches — become data points in someone else's graph.
I wanted to showcase an alternative. Synapse Browser is a self-hosted search engine built on top of Searx, an open-source meta-search engine that queries Google, Bing, and DuckDuckGo simultaneously but strips all identifying information before forwarding the request. The results come back clean. No tracking cookies. No personalisation. No profile.
The connection to the neural metaphor is this: privacy is a form of cognitive integrity. The brain's synapses are selective because not every signal should propagate. Some thoughts are yours. A search engine that watches your every query is a synapse that never inhibits — that passes everything on, indiscriminately, to parties you did not invite into your thinking.
A search engine that remembers everything you have ever asked is not a tool. It is a mirror that someone else owns.
Synapse Browser runs locally using Docker — two containers, one for the Searx backend and one serving the frontend I wrote. The UI shows GitHub profiles when you search for developers, Wikipedia summaries when you search for concepts, and clean results with no ads and no tracking.
What the Brain Taught Me About Software
Working on these two projects changed the way I think about knowledge tools — and about the brain itself.
The most important lesson was about emergence. The brain does not have a central controller. There is no single neuron that is "in charge" of memory, or creativity, or understanding. Intelligence emerges from the pattern of connections — from the topology of the graph, not from any individual node. This is why damage to a small region of the brain sometimes has surprisingly little effect: the network reroutes. Meaning is distributed.
Synapse — the notes project — works on the same principle. No single note is the important one. What matters is the graph that forms around it. A note about meditation is ordinary in isolation. But when it links to focus, which links to flow state, which links to software architecture, which links to neural networks — suddenly you have a trail of thought that no folder ever could have revealed.
The future I want to build
I wanted to showcase a vision. Both Synapse and Synapse Browser are early experiments in a larger idea: that our digital tools should mirror the brain's architecture, not fight it. We should not be forced to organise our thoughts into hierarchies before we are allowed to think them. We should not have our most private cognitive acts — our searches, our questions, our uncertainties — logged and sold.
The neuroscientist Antonio Damasio wrote that thinking is not something the brain does to the body — it is something the brain does with it, in constant dialogue with the world. I think software should work the same way. Not a rigid container for your thoughts. A living partner in thinking — one that listens, connects, and grows stronger the more you use it.
The brain took evolution 540 million years to arrive at the synapse. I built my version in a few weeks of evenings. But the principle is the same. Let the connections form where the meaning lives. Trust the graph. Explore the network.
That, in the end, is what both of these projects taught me. Not just about neurons and code — but about how I think. How all of us think. In webs. In associations. In sparks of electricity, leaping across gaps too small to see.
What I Would Build Next
If I could extend Synapse further, I wanted to showcase one more biological idea: neurogenesis. In the brain, new neurons are born — not many, and mostly in the hippocampus, but enough to show that the network is not static. It grows. It prunes. It rewires based on experience.
A future version of Synapse would have its own form of neurogenesis: notes that have not been visited in a long time, and have lost their connections through disuse, would fade. Notes that cluster densely with others would grow stronger, their nodes larger in the graph, their colour brighter. The graph would breathe.
I wanted to showcase the idea that software can have a life cycle. That tools do not have to be static. That a knowledge base should mirror the dynamism of the mind that feeds it — growing where attention goes, fading where attention does not, and occasionally surfacing old connections at exactly the right moment, the way a memory resurfaces years later when the context is suddenly right.
The synapse is not just a connection point. It is a decision point. A threshold. A moment of possibility between two states. Every note you write is a neuron. Every link the system draws is a synapse. And every time you follow a connection you did not make yourself — discovering that a thought you had about breathing exercises was always adjacent to a thought about code — that is the electricity flowing.
That is the whole point.