Build something for a niche, sell into that niche, then expand outside the niche by adapting the product to other uses once you have sufficient strength to do that.
It takes a lot more in terms of resources to develop for a niche than for a 'horizontal' market, the marketing expenses are also a multiple.