If you were to make a nerd npc that were to tell you recipes, here is how I would do it
Have him require a bookshelf, and a crafting table in the house to stay at your house
And have him bring up a list of every craftable item that you can click on, and It will show you the recipe of how to make the item