A good number of github projects I find say "Install with npm install foo, or try it out online [here]"
The online version can host the exact same code from git master. For many projects, no hosting is even required, because the whole thing can run in a codepen-like playground.