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 🙏

© 2026 – Pkg Stats / Ryan Hefner

remote-logger-server

v1.0.0

Published

A lightweight WebSocket-based logging service that aggregates and displays logs from multiple remote applications in real-time with beautiful console formatting.

Readme

Remote Logger Server

A lightweight WebSocket-based logging service that aggregates and displays logs from multiple remote applications in real-time with beautiful console formatting.

Note: This is a development tool intended for logging and debugging purposes. For production logging, consider using established logging services with authentication and data persistence.

Installation

Global Installation

npm install -g remote-logger-server
# or
pnpm add -g remote-logger-server
# or
yarn global add remote-logger-server

Usage

Starting the Server

# Using default port (4455)
remote-logger-server

# Using custom port
PORT=8080 remote-logger-server

Local Development

git clone https://github.com/khalidsheet/remote-logger-server.git
cd remote-logger-server
pnpm install
pnpm build

Running locally:

pnpm start

# With custom port
PORT=8080 pnpm start

The server will start and display:

12:00:00 PM INFO Remote Logger service started on port 4455

Sending Logs from Your Application

For frontend applications (React, Vue, Angular, etc.), please use the dedicated client package. The client package provides a simplified API and is optimized for browser environments.

Install the client package:

npm install remote-logger-client
# or
pnpm add remote-logger-client
# or
yarn add remote-logger-client

Note: The examples below show raw WebSocket usage for backend/Node.js applications. For frontend applications, use the client package instead.

Example Client

Node.js Example:

import WebSocket from "ws";

const ws = new WebSocket("ws://localhost:4455");

ws.on("open", () => {
  ws.send(
    JSON.stringify({
      app: "MyApp",
      message: ["User logged in:", { userId: 123 }],
      caller: "src/auth/login.js:45",
    })
  );
});

Browser Example:

const ws = new WebSocket("ws://localhost:4455");

ws.onopen = () => {
  ws.send(
    JSON.stringify({
      app: "Frontend",
      message: ["Button clicked:", buttonId],
      caller: "components/Button.tsx:12",
    })
  );
};

Output Format

Logs are displayed with the following format:

[TIME] [APP_NAME] [FILE] message content

Example:

12:34:56 PM [MyApp] [login.js] User logged in: { userId: 123 }

Configuration

| Environment Variable | Default | Description | | -------------------- | ------- | --------------------- | | PORT | 4455 | WebSocket server port |

Development

Build

pnpm build

Builds the project using tsdown and outputs to the dist/ directory in both CommonJS and ESM formats.

Project Structure

remote-logger-server/
├── src/
│   └── main.ts          # Main server implementation
├── dist/                # Built files
├── package.json
├── tsconfig.json
└── tsdown.config.ts     # Build configuration

Requirements

  • Node.js >= 20.0.0

Dependencies

  • ws - WebSocket server implementation
  • chalk - Terminal string styling

License

MIT

Author

Khalid M. Sheet ([email protected])

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.

Happy Hacking!