Episode 139 · Aug 29, 2025 · Talk

Mathias Buus Madsen on Building Apps Without AWS Using Peer-to-Peer and Pear Runtime

Featuring Mathias Buus Madsen, CEO of Holepunch
Apple Podcasts Spotify Youtube

In this episode of Semaphore Uncut, we chat with Mathias Buus Madsen—CEO and co-founder of Holepunch, prolific open-source maintainer, and JavaScript hacker—about his journey into programming, why peer-to-peer (P2P) technology matters, and how he’s working to make it accessible to everyday developers.

From Math to JavaScript: Mathias’s Origin Story

Mathias didn’t grow up coding. He studied mathematics in Denmark, where the education system nudged him toward computer science as a practical complement. His first exposure was in Java—popular at the time—but what really stuck was a simple web project where he encountered JavaScript.

“I tried it and didn’t stop. It was dynamic, fun, and felt like solving puzzles.”

Soon after, Node.js arrived, and Mathias threw himself into the ecosystem. Over the years, he’s published hundreds of libraries. “If you’re using anything in Node.js, you’re probably using my libraries,” he jokes.

Falling in Love with Networking and P2P

Mathias describes himself as a hacker at heart—someone who enjoys tinkering, re-implementing, and taking things apart. A networking course in college blew his mind:

“You could run a TCP server on one machine, connect from another, and text just came through. That was magic.”

That curiosity led him to BitTorrent. He began implementing clients and protocols in JavaScript, releasing them as open source. The feeling of building software on a laptop that could reach thousands—without investors, servers, or gatekeepers—was addictive.

Founding Holepunch: Everyday Apps Without Servers

After years of open source work, Mathias co-founded Holepunch to take P2P beyond file sharing. The mission: build a modular runtime that removes the rough edges of P2P and makes it accessible for normal apps.

Holepunch’s open-source stack, the Pear Runtime, includes thousands of plug-and-play modules. Developers can work with familiar abstractions—databases, file storage, messaging—while the P2P protocols handle distribution and security under the hood.

To showcase the tech, the team built Keet, a chat app that looks and feels like a normal messaging tool but runs entirely peer-to-peer, without centralized servers.

Why P2P Unlocks Developer Productivity

Mathias argues that centralized cloud systems have trained developers to accept unnecessary complexity.

  • Want to test locally? You need access keys and a credit card.
  • Forget to clean up a resource? You get billed every month.
  • Moving between environments? Endless configuration.

P2P flips the model. Running locally, in production, or in tests feels the same: peers connect, share data, and synchronize.

“Peer-to-peer makes me more productive because I stop thinking about environments. I just think about code.”

Security and authenticity are also built in. Every piece of data is signed and verified, making systems more resilient by default.

The Challenges: Mindset and Education

The hardest part of P2P isn’t the technology—it’s the mental shift. Developers steeped in centralized patterns need to rethink consistency, data flow, and system design.

Holepunch addresses this with modular APIs that feel familiar, like MongoDB-style queries or S3-like file storage. Underneath, the libraries handle the distributed complexity.

Mathias emphasizes testing as a cornerstone. In P2P, unit and integration tests blur together because the system is inherently distributed. Running tests in CI uncovers real-world issues directly.

What’s Next for Holepunch

The team is preparing a major new release of their stack, focusing on performance and scalability across a wide range of devices—from low-end phones to high-end desktops. Mathias describes it as a year-long effort to refine the Pear building blocks like Hypercore, making them faster and more robust.

“It’s been a lot of hard work, but we’re excited to roll it out. The stack just keeps getting better.”

How to Get Started with P2P

For developers curious about experimenting with peer-to-peer, Mathias recommends three steps:

  1. Run the Hello World demo from pears.com to see two computers talk directly.
  2. Explore the Pear Runtime modules, which provide ready-to-use building blocks for databases, storage, and networking.
  3. Follow Mathias and Holepunch online to keep up with new releases and learning resources.

Follow Mathias Buus

💻 GitHub: https://github.com/mafintosh
🐦 Twitter: https://twitter.com/mafintosh

Meet the host Darko Fabijan

Darko enjoys breaking new ground and exploring tools and ideas that enhance developers’ lives. As the CTO of Semaphore, an open-source CI/CD platform, he embraces new challenges and is eager to tackle them alongside his team and the broader developer community. In his spare time, he enjoys cooking, hiking, and indoor gardening.

Star us on GitHub