Runkit like app that works in local environment - Anything like that?

Runkit is amazing to try out libraries, create and share code snippets. But I want to try things in my local environment. It will help me include local files and debugging easier. I know I can use node interactive shell. But that’s not much pleasant editing environment.