A reverse lookup from crafted item back to its source recipe or plan is something that I hadn't considered before, but I think it is pretty useful, so I added GetSourceItemIdFromResultItem to LibCharacterKnowledge 2.0.4, and there's a new feature in Character Knowledge that makes use of this.
However, I took a different approach, because hard-coding thousands of IDs is not only cumbersome, but it also requires a human to update it every patch. LCK already has the means to automatically detect all the recipe IDs in the game without any human intervention, and so it was trivially easy for me to add a reverse-lookup feature that doesn't rely on any hard-coded data.
So I would suggest using LCK instead, to reduce the number of libraries and for easier maintenance. LCK doesn't do anything with ingredients, but GetItemLinkRecipeNumIngredients exists as a base-game API, so there's not that much to do there in the first place.