
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Real-time grep for your logs right in your favorite modern browser made with Twitter Bootstrap.
Everybody loves screenshots!

This is pretty simple, believe me!
mkdir ~/mypupergrep
cd ~/mypupergrep
mkdir node_modules
npm install pupergrep
Now you have pupergrep module installed.
PuperGrep needs to know what to monitor. Simple server to make you understand what I mean:
(function() {
var PuperGrep = require("pupergrep"),
puper = new PuperGrep();
// if your log has ANSI escape sequences (default):
puper.add("my_ansi_log", "/var/log/my_cool_log", "ansi");
// or it may be interpreted as html
puper.add("my_html_log", "/var/log/my_cool_log", "html");
// if you want to colorize (decorate) your log before outputting as html:
puper.add("fancy_log", "/var/log/my_cool_log", "html", function(line, callback) {
callback(undefined, "<span style='color: red;'>" + line + "</span>");
});
puper.listen(8080, "127.0.0.1");
})();
Save it to ~/mypupergrep/server.js. Run it right after that:
node server.js
Now cross your fingers and open http://127.0.0.1:8080/ in your favorite browser. This is it!
If you want nginx in front of your logs for security or whatever, this is example config:
server {
listen 80;
server_name localhost;
location / {
index index.html;
root /home/user/mypupergrep/node_modules/pupergrep/public;
}
location /socket.io/ {
proxy_http_version 1.1;
proxy_pass http://127.0.0.1:8080/socket.io/;
}
}
This way you may open http://127.0.0.1/ and enjoy your logs. Note that nginx does not support
websockets yet and you'll need to wait for 2 seconds to switch from ws to xhr-polling.
Let me guess, you tried to monitor access log of nginx server that proxy your PuperGrep? You bastard! Stop it right now!
Another trouble? Hm. Post an issue!
You're welcome! Make a pull request and we'll see.
Inspired by supergrep from Etsy.
FAQs
Real-time grep for your logs right in your favorite modern browser made with Twitter Bootstrap.
The npm package pupergrep receives a total of 15 weekly downloads. As such, pupergrep popularity was classified as not popular.
We found that pupergrep demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.