BlazeDB: Exploring a Swift-Native Embedded Storage Engine

I’ve been experimenting with building a Swift-native embedded storage engine called BlazeDB.

The goal of the project was to explore what an embedded database might look like if it were designed specifically for Swift applications from the start.

The system currently includes:

• page-based storage engine
• write-ahead log (WAL) durability model
• encrypted persistence using AES-GCM
• a benchmark harness and failure testing

I wrote a technical deep dive describing the architecture and implementation details here:

https://medium.com/@DanylchukStudiosLLC/blazedb-a-swift-native-embedded-application-database-c0c762dee311

I’m planning to open source the project once the core APIs stabilize. I’d be interested in feedback from the Swift community, particularly around API design and storage architecture. Happy to answer questions about the storage engine design or the WAL model if anyone is curious.

10 Likes

This looks very promising and I'm looking forward to the opensource code-based version.

1 Like

Thanks! Cleaning up the codebase and preparing it for open source. Will share it soon.

3 Likes

Followed up on this here: BlazeDB: Swift Native Embedded Storage Engine (open source). The project is open source now and open to any feedback!

2 Likes

Thanks for sharing

1 Like

Follow-up on the Linux side of that launch: Porting a Swift embedded database to Linux: what actually broke.