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 🙏

© 2025 – Pkg Stats / Ryan Hefner

remotelogger

v2.0.2

Published

This server is able to receive logs from javascript remote application

Downloads

9

Readme

Remotelogger

Remote Logger is a node module able to handle request with strings and to put in a log file and the console. The JavaScript sample client code is based on Aria-Templates scripts and a standard JavaScript one.

  • Run the server
  • Load in your code the javascript
  • Call the logger method

How to use it

Installation

npm install -g remotelogger

Run it

remotelogger

Message Structure

Here is the URL to do a remote log :

curl http://localhost:8666/log/?classname=com.mycompany.test&log=This is my log message message&sev=DEBUG&logdate=1426844546265&depth=4&senddate=1426844546265
{
	cl : "ClassName or identifier of the javascript that did the log",
	log : "Log Message",
	logdate : "Date of the log (as we are queuing the message to ensure the order of reception)",
	depth : "Depth of the call stack not used ",
	senddate:"Date when the log was send from the client (Must be UTC time so we can calculate the request time)",
	sev : "The severity of the log [DEBUG,INFO,ERROR,WARN]"
}

Web

open http://localhost:8666/www/ you will land on an interface allowing to see the log in web mode (search tool from the browser) and also see the occurency of call of a class (identifier). If you add a "Entering" keyword in your log in each of first line of your function, it will be able to draw a sequence diagram.

Options

  • Filtering on the logs, this allow to display on the file and the console only what is matching the filter
remotelogger --filter mainpage

Only logs containing mainpage will be displayed

  • Log file, by default the log is done on the console, if you want to store in a file.
remotelogger --logfile myfile.log

The web part of the remote logger can use firebase for live update.

remotelogger --firebase https://YOURURL.firebaseio.com

Known Issues

On OSX we have to link node installation as it is in linux system.

Web application is slow on huge amount of data TODO : improve it.

sudo ln -s /usr/local/bin/node /usr/bin/node