Building a Browser-Based MOBI Splitter: Client-Side Ebook Processing with TypeScript
typescript
dev.to
Splitting a collection of ebooks into individual files typically requires server-side processing. But what if you could do it entirely in the browser? This article explores how we built a client-side MOBI splitter that parses binary files, reconstructs HTML content, and generates valid MOBI files—all without uploading data to a server. The Challenge MOBI files, used by Kindle devices, are binary formats with a complex structure: PalmDB (PDB) container format with record-based stora