SQLite: The Database in Your Pocket, Your Phone, and a Billion Other Places

Your phone has it. Your browser has it. Your car probably has it. Every Mac, every iPhone, every Android device, every copy of Windows 10. Airplanes, satellites, medical devices. SQLite is the most widely deployed software in human history. And it was created by one person, for free, because a server was down.

A Destroyer and a Database

In 2000, D. Richard Hipp was a contractor working for General Dynamics on software for the US Navy. The project involved guided missile destroyers and a system that tracked pipe fittings on the ship. Not glamorous, but important—when you're at sea and a pipe breaks, you need to know exactly which fitting to grab from storage.

The system used Informix as its database. Informix was a big, serious enterprise database. It needed a server. It needed a database administrator. It needed care and feeding.

And sometimes, it was down.

When the Informix server went down, the entire application stopped working. Sailors couldn't look up their pipe fittings. The software was useless. Hipp watched this happen and thought: why does this need a server at all?

The application was simple. The data fit in memory. There was no reason for a separate database server. So Hipp decided to build a database that wasn't a server at all—just a library you could embed directly in your application.

The Radical Idea: No Server

At the time, databases meant servers. Oracle, SQL Server, MySQL, PostgreSQL—all required a separate process running somewhere, accepting connections. You'd send your query over a network (even if it was localhost), and the server would process it.

Hipp's idea was different. What if the database was just a file? What if the SQL engine was just a library linked into your application? No network. No separate process. No administrator. Just a single file you could copy around like any other file.

The entire database—tables, indexes, queries—would live in one file. Your application would read and write to it directly. When the application closes, the file persists. When the application opens again, the data is there.

He called it SQLite. The "Lite" wasn't about features—it was about deployment. Light footprint. Light administration. Light on the reasons your software might fail.

Accidentally Ubiquitous

SQLite solved the Navy's problem, but Hipp realized it solved a lot of other problems too. In 2000, he released it as open source. More than open source—he released it into the public domain. No license. No restrictions. No attribution required. Use it however you want.

This decision seems simple but was radical. Most open source projects use licenses that require attribution or sharing changes. Hipp gave up all rights. Anyone could take SQLite, modify it, sell it, and never mention his name. For large companies with paranoid legal teams, this was perfect.

The adoptions started small, then cascaded:

  • 2003: Adobe adopted SQLite for Photoshop Lightroom's catalog
  • 2005: Apple adopted SQLite for Mac OS X's Core Data and system services
  • 2007: The iPhone launched with SQLite managing contacts, messages, and apps
  • 2008: Android launched—also with SQLite everywhere
  • 2010: Every modern web browser used SQLite for local storage

By 2020, there were over one trillion SQLite databases in active use. Not million. Not billion. Trillion. Every smartphone has hundreds of SQLite databases. Your phone's text messages, your browser history, your app data—all SQLite.

The One-Man Show

Here's what makes SQLite's story unusual: for most of its history, the core development was done by one person. Richard Hipp wrote the first version, and he continues to maintain it today. A small team helps with testing and platform support, but the architecture and critical decisions flow through him.

This is not how software at this scale usually works. Projects used by a trillion devices typically have hundreds of contributors, corporate sponsors, and complex governance. SQLite has a small team and a single vision.

Hipp's approach to quality is obsessive. SQLite has 100% branch coverage in its tests—every single code path is exercised. The test suite contains 92 million test cases. The test code is 608 times larger than the SQLite source code itself. Bugs are rare, and when found, they're fixed within days.

This quality comes from a specific mindset: SQLite runs in devices where failure is not acceptable. Medical devices. Aircraft. Industrial systems. A bug in SQLite could mean planes not flying or patients not treated. Hipp knows this and acts accordingly.

The Business Model That Shouldn't Work

How do you make money from software you give away with no restrictions? Hipp figured it out.

The SQLite Consortium is a group of companies that pay for annual memberships. In return, they get direct access to Hipp and his team, priority bug fixes, and influence over the roadmap. Companies like Bloomberg, Mozilla, and Bentley pay for this access.

Additionally, Hipp sells support contracts, custom development, and proprietary extensions. Need SQLite with encryption? Pay for the encrypted extension. Need guaranteed response times? Pay for a support contract.

It's not a billion-dollar business, but it doesn't need to be. SQLite supports a small team doing focused work. No investors demanding growth. No board meetings. Just engineers making a database better, year after year.

The Philosophy of Boring

SQLite doesn't chase trends. It doesn't add features because they're popular. The development philosophy is deeply conservative: don't break things. Don't change behavior. Don't surprise users.

The file format has been stable since 2004. A database created 20 years ago still works with today's SQLite. This backward compatibility is guaranteed until 2050. When you're running in billions of devices, you don't get to "move fast and break things."

New features are added slowly and carefully. JSON support took years of consideration. Window functions came decades after other databases. Each addition is weighed against the complexity it adds and the stability it might compromise.

This is unfashionable in tech. Modern software development celebrates rapid iteration, breaking changes, and constant reinvention. SQLite rejects this entirely. Boring is the goal. Reliability is the feature.

The Unexpected Places

Because SQLite is so lightweight and reliable, it ends up in places you wouldn't expect:

  • Airbus A350: Flight systems use SQLite for configuration data
  • Cars: Modern vehicles use SQLite for infotainment systems and diagnostics
  • Television sets: Smart TVs use SQLite for settings and channel data
  • Cameras: Digital cameras use SQLite for metadata and settings
  • Thermostats: Even simple smart home devices use SQLite

This ubiquity creates a strange situation: when you interact with the modern world, you're constantly reading from and writing to SQLite databases. Most people will never know, which is exactly the point. The best infrastructure is invisible.

The Lesson

SQLite exists because a server was unreliable on a naval ship. Hipp didn't set out to create the most deployed software in history. He just wanted his application to work when the database server was down.

The lesson isn't about databases. It's about understanding the real problem. The sailors didn't care about SQL or Informix or database architecture. They cared about finding the right pipe fitting when they needed it. By focusing on that real need—reliability over features, simplicity over power—Hipp created something that solved not just his problem, but millions of problems he never anticipated.

The next time you're designing software, ask: what does the user actually need? What would make this work when everything else fails? The answer might be simpler than you think.

Building Reliable Software?

MKTM Studios believes in the SQLite philosophy: simple, reliable, focused. Let's build something that works.

Start a Conversation