API server written with NodeJS

I have implemented a clone of the API server using NodeJS so that the dashboard is useable on my old Pi A modal.
It saves the stats in memory so refresh the dashboard page doesn't have to re-parse the log file (multiple times), which takes forever and eventually timeout for some requests.

Here is the Github repo: https://github.com/xlc/pi-hole-api

It should be a drop-in replacement of the current php scripts if you can setup the reverse proxy right.

Let me know if you have any feedbacks!

1 Like

Thanks! Have you tried to find out what the max is for the log file size is before you start to have issues? We have some users that would benefit but they are the same users that have massive log files and very large numbers of queries.

Also, note we are working on https://github.com/pi-hole/AdminAngular to help with the transition to a more efficient web interface.

I haven't check the limit but I know it takes forever to process 5mb log file. I have 4+ devices in my network which produces lots logs.

I will checkout the angular port. I am planning to make a react port as well just to learn react.