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

ncast

v1.0.0

Published

Dynamic stream multiplexer by broadcasting over a network port

Readme

ncast

Dynamic stream multiplexer by broadcasting over a network port.

NPM Version npm dependents NPM Downloads License

Setup

$ npm install -g ncast

💡 Alternatively, you can use npx ncast instead of ncast so that you don't even need to install it.

Usage


NAME
    ncast — Dynamic stream multiplexer by broadcasting over a network port.

SYNOPSIS
    ncast [modifiers...]

DESCRIPTION
    Listen to a network port (broadcast mode) and pipes standard input to every
    connected client or connect to that port (client mode) and pipes everything
    to standard output.

    If port is not open or is closed by the (ncast -b) server, clients persist
    and reconnect as soon as server is available again. This way server process
    can be respawned as needed.

    The options are as follows:

    -b, --broadcast
        Broadcast mode. 

    -p <port>, --port <port>  (Default 2549)
        Set network port to listen / connect to.

    -h <host>, --host <host>  (Default localhost)
        Set host name or IP to listen / connect to.

    -s, --silent
        Enable silent mode.

    -v, --version
        Show version and exit.

    -h, --help
        Show this help message and exit.
    
EXAMPLES (Broadcast mode)
    find / 2>&1 | ncast -b > logfile.txt
        Copy standard input (standard output and error of 'find /' command) to
        standard output and then pipe it to 'logfile.txt'. But listens to
        localhost:2549 and every time a new client connects, start copying the
        output to that client too. Unlimited number of clients can connect
        concurrently.

    tail -F example.log | ncast -b --silent
        Like previous example, but monitoring existing log file. It uses
        --silent to prevent sending everything to standard output.

    tail -F example.log | ncast -b --host 0.0.0.0
        Broadcast to all network interfaces.

EXAMPLES (Client mode)
    ncast
        Connect and persist to default host and port (localhost:2549) and copy
        everything received to standard output.

    ncast | grep -i '^error:'
        Like previous example but show only messages beginning with the text
        "error:" (case insensitive).

    ncast | grep -vi '^error:'
        Inverse of the previous case (text not beginning in "error").

    ncast | awk '{ if (tolower($1) == "error:") {sum += 1; print "Errors:", sum }}'
        Using awk to get a real time count.

    ncast --silent
        Does not show anything, but can be useful to monitor server
        connection/disconnection watching reports on standard error.

COPYRIGHT
    MIT License
    Copyright © 2025 Joan Miquel Torres Rigo <[email protected]>

    This is free software: you are free to change and redistribute it.  There
    is NO WARRANTY, to the extent permitted by law.