If you want to build a reputation for yourself, it is much easier in a small niche. It's easier to be know as "the" guy who does awesome, interactive audio in D3.js (just sputtering stuff here) than to build a reputation as a "the" awesome frontend developer.
Once you have your small niche in a firm grip, you can expand outwards.
Once you have your small niche in a firm grip, you can expand outwards.