Thank you to @LLFourn and @danielabrozzoni for these suggestions.
BDK keychain tracker, tools for storing and indexing chain data.