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

ferryboat-cli

v1.0.6

Published

Command line program for processing lines from standard input and sending each line as a Hrbr beacon message.

Downloads

19

Readme

Ferryboat Command Line Interface

Command line program for processing lines from standard input and sending each line as a Hrbr beacon message.

Installation

$ npm install -g ferryboat-cli

Help

For help after installing the program type ferryboat --help

Create an Application and a Beacon

To get started you will need to create an application and your first beacon.

  1. Add an application. Copy the Application ID, you'll need it later.

  2. Create a Beacon. Copy the Beacon Version ID, you'll need it later.

  3. Open the developer console for your application so you can see the beacon messages arriving at (https://cloud.hrbr.io).

Examples

Sample Logs

The hrbr-ferryboat npm comes with Sample Logs. We will use those logs in the samples below, but first you need to find where they are installed.

Find that out by running:

$ npm list -g ferryboat-cli
/usr/local/lib
└── [email protected] 

In this example, global node modules are installed in /usr/local/lib.

Set that as an environment variable:

$ export HRBR_GLOBAL_PATH=/usr/local/lib

For all the examples that follow these are the common settings.
Use your own API Key and an App Version ID.

$ export HRBR_BIID="$(hostname)"
$ export HRBR_APIKEY=jenny8675309
$ export HRBR_AVID=io.hrbr.samples.logfiles:1.0.0

Apache Access Log

  • If you haven't already done so, create a Beacon Version ID and export it as an environment variable.
  • Make sure your Hrbr developer console is open.
$ export HRBR_BVID=io.hrbr.apache.access:1.0.0
$ cat $HRBR_GLOBAL_PATH/node_modules/ferryboat-cli/node_modules/hrbr-ferryboat/samples/apache.log | ferryboat --prefix APACHE_ACCESS_ -g "%{COMBINEDAPACHELOG}"  --apikey $HRBR_APIKEY --appversionid $HRBR_AVID  --beaconversionid $HRBR_BVID --beaconinstanceid $HRBR_BIID`

Mac OS X System Log

  • If you haven't already done so, create a Beacon Version ID and export it as an environment variable.
  • Make sure your Hrbr developer console is open.
$ export HRBR_BVID=io.hrbr.syslog.macosx:1.0.0
$ cat $HRBR_GLOBAL_PATH/node_modules/ferryboat-cli/node_modules/hrbr-ferryboat/samples/macOSsys.log | ferryboat --prefix SYSTEM_ -g "%{SYSLOGLINE}"  --apikey $HRBR_APIKEY --appversionid $HRBR_AVID  --beaconversionid $HRBR_BVID --beaconinstanceid $HRBR_BIID`

MongoDB Log

  • If you haven't already done so, create a Beacon Version ID and export it as an environment variable.
  • Make sure your Hrbr developer console is open.
$ export HRBR_BVID=io.hrbr.mongo.db:1.0.0
$ cat $HRBR_GLOBAL_PATH/node_modules/ferryboat-cli/node_modules/hrbr-ferryboat/samples/mongodb.log | ferryboat --prefix MONGODB_ -g "%{MONGO3_LOG}"  --apikey $HRBR_APIKEY --appversionid $HRBR_AVID  --beaconversionid $HRBR_BVID --beaconinstanceid $HRBR_BIID`