r/node • • May 07 '21

Real-time log monitoring in the browser using Node.js

This is a prototype of an idea that I had for a long time – real-time log monitoring in your browser (primarily) for local development.

https://roarr.io/

I work a lot with CLI programs, and I am often overwhelmed with the amount of logs that I need to comb through. The goal with this tool is to provide a zero-setup tool for analyzing logs.

As a user, you don't even need to create the account, you just generate a random room and start dumping the logs there using @roarr/cli.

As an example, I made this room where I am just dumping random log messages every second.

https://roarr.io/?room=a2ae2afa-bd52-42c7-ba51-157419457990

If you wanted to append to anything that is printed in the same room, you would just:

export ROARR_API_KEY=a2ae2afa-bd52-42c7-ba51-157419457990
echo '{"message": "Hello!"}' | roarr

That's it!

251 Upvotes

10 comments sorted by

7

u/[deleted] May 07 '21

Cool

1

u/Dan6erbond May 07 '21

This is really cool! Are there any plans to expand this into a logger that one could integrate in applications to keep track of logs in a UI?

1

u/gajus0 May 07 '21

Yes.

I've not built a newsletter for updates, but you can subscribe to this GitHub issue to learn when it is released.

https://github.com/gajus/roarr/issues/42

It is a weekend project, so I will share an update at the end of every weekend.

2

u/Dan6erbond May 07 '21

Awesome! Starred and subscribed to the issue. (:

1

u/IamNotMike25 May 07 '21

What happens if I have such a bad bug in my app, that it floods your server with crash-logs like a ddos?

Asking because I'm not confident in my coding skills 😁

I guess there some limits to prevent this happening?

Great project!

2

u/gajus0 May 07 '21

Currently, it would probably just temporarily kill the server. However, everything is running on Kubernetes. It will restore itself once the load decreases.

Long term, if there is a demand, I am thinking of introducing a commercial plan and great resilience for scenarios such as the one you've described.

3

u/lc16 May 07 '21

I have been writing something similar called CombiLog, it's primarily written in Node, I really like your approach to this!

2

u/oneandmillionvoices May 07 '21

I like the name. You need cool logo as well.

1

u/zenivinez May 07 '21

I love the idea of having a built in dashboard for API's alongside Open API description. Imagine how easy it would be to have a library you pull in provides a simple dashboard page and an api that can either be consumed directly or by another parent very similar to how open api works with multiple API's. I would be absolutely shocked this doesnt already exist actually.