FormidableLabs / nodejs-dashboard

Telemetry dashboard for node.js apps from the terminal!
MIT License
3.92k stars 147 forks source link

Idea: Multiple tabs #7

Open blakeembrey opened 8 years ago

blakeembrey commented 8 years ago

Really nice work! I'm just opening this issue to submit an idea.

For applications that maybe have multiple processes running, what do you think about enabling tabs? Perhaps each application running could register itself to a display name and you could toggle between them using numbers. I could imagine spawning child processes that might render a new tab and then when it closes the tab disappears. Also for use with projects like https://github.com/strongloop/node-foreman, where you might have two process (web/worker) running and want to run them together.

Some ways it may work:

jasonwilson commented 8 years ago

Thanks for the feedback @blakeembrey! I've been thinking about different architectures for handling cluster mode and or workers. Decoupling the child from the dashboard would allow for greater control but would create challenges for stdout, as you note. Leveraging the existing infrastructure in cluster might solve some of these problems.

https://github.com/chjj/blessed certainly has support for input and multiple screens so it'd just be a matter of coming up with a reasonable design.

Once I have some spare cycles I'll look into prototyping a few different approaches.