Thanks for the detailed reply. I'm still trying to figure out my options, so your input is greatly appreciated.
You're right about the title, and I haven't tested other binary formats, but OTOH there is literally zero examples of kaitai struct being used with lua online, so at least I can document the process in a tutorial that would be applicable to other formats.
To answer some of your questions. First off, running sqlite itself would be a superior solution, and I looked into that. There's a forum post about it and there has been some progress on getting it to work on the STM chipset but that kind of stuff is way beyond my pay grade and there is quite a bit of debate about whether it would even work on the limited hardware.
So since I don't need to write to the db, just read, and I would prefer not to have a separate utility for preparing the data, it seemed a worthwhile feature to allow users just to dump the files onto the playdate and do the parsing etc on device.
I've edited the title to be more specific.