npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

logscreen

v0.0.4

Published

> Loglines can be messy, read it better on a browser.

Downloads

2

Readme

LogScreen

Loglines can be messy, read it better on a browser.

Usage

After installation, you can use LogScreen to view command outputs in a browser:

command | npx logscreen

Replace command with the actual command you want to execute. LogScreen will start a local server and open the logs in your default web browser.

alt text

Here are some examples:

Example 1: Viewing Docker Logs

  docker-compose up | npx logscreen

This example pipes the logs from a Docker Compose service into LogScreen, providing a more readable and interactive log view.

Example 2: Monitoring NPM Start Script

  npm start | npx logscreen

If you have a Node.js project with an `npm start` script, you can use LogScreen to monitor and navigate through the logs as your application runs.

Example 3: Tail Command Output

  tail -f /var/log/syslog | npx logscreen

For Linux users, you can use LogScreen with the `tail` command to follow and visualize real-time updates in system logs.

Monitoring Remote Server Logs

ssh user@remote-server 'tail -f /path/to/logs' | npx logscreen

SSH into a remote server and tail logs in real-time using logscreen for diagnosing issues on a production server.

Monitoring Nginx Access Logs

tail -f /var/log/nginx/access.log | npx logscreen

Tail Nginx access logs to observe incoming requests, response codes, and other relevant information.

Tail Apache Error Logs

tail -f /var/log/apache2/error.log | npx logscreen

Monitor Apache error logs to identify issues with your web server.

Google Cloud Functions Logging:

Use logscreen to monitor logs from Google Cloud Functions, gaining insights into function executions, errors, and overall performance.

gcloud functions logs read <function-name> | npx logscreen

Kubernetes Logs

kubectl logs -f <pod-name> | npx logscreen

AWS lambda

aws logs tail /aws/lambda/<function-name> | npx logscreen

EC2 Instance

ssh -i <private-key.pem> ec2-user@<instance-ip> 'tail -f /var/log/<your-log-file>' | npx logscreen

Monitoring Heroku Postgres Queries:

Tail logs related to database queries on a Heroku Postgres database for performance analysis and optimization.

heroku pg:psql --app <your-app-name> -c "tail -f /var/log/postgresql/postgresql.log" | npx logscreen

Replace the commands above with your specific use case to leverage the benefits of LogScreen's web-based log viewer.

Features

  • Web-Based Log Viewer: Get a cleaner and more organized view of command outputs.
  • Real-Time Updates: Logs are displayed in real-time as the command executes.
  • Interactive Interface: Search, filter, and navigate through logs easily. // TODO

Options

  • Port: By default, LogScreen uses port 3000. You can specify a different port using the -p or --port option:

    command | npx logscreen --port 8080

Acknowledgments