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

@bmcandrews/raven-cli

v0.1.5

Published

A Command Line Interface for a serverless Chat Application

Downloads

20

Readme

Raven CLI

See Also:     🏗 AWS Infrastructure    •    🖼️ React Frontend    •     🚀React Frontend Demo

About The Project

Raven Messenger is a proof-of-concept serverless chat application. This project provides a way to consume the Raven Web APIs from the command line.

Text-based User Interface (TUI)

The text-based user interface lets you browse and send messages like you would in a web browser.

Command Line Interface (CLI)

*Under Construction *

The goal of the CLI is to provide programmatic access to Raven's messages and rooms. This is geared towards making it easier to integrate a chatbot into the platform.

raven <subcommand> [parameters]

Available Subcommands

  • chat

  • configure

  • auth

  • send-message

Getting Started

Before using this project you'll need to create an account using the React Frontend.

Installation

Install the application by using the node package manager of your choice:

$ npm install -g @bmcandrews/raven-cli

Once installed, start the TUI by running the raven command:

$ raven

Building from Source

To set up the project, clone the repository and install the dependencies.

$ git clone https://github.com/barrymcandrews/raven-cli
$ cd raven-cli
$ yarn install

Usage

  • yarn run build compile TypeScript to JavaScript
  • yarn run start run the app in development mode
  • yarn run local install the app globally, then run the app

CLI Subcommands

chat

Starts the Raven TUI.

raven chat

configure

Configures connection settings and saves them to the .raven file. This opens an interactive prompt with questions for the user. The default settings will connect the user to my instance of the Raven backend.

raven configure

auth

Attempts to authenticate with the Raven backend. First it tries to use the tokens stored in the .raven file. If the CLI finds no tokens, it will prompt the user for a username and password. Once authenticated, all tokens will be saved to the .raven file. This allows a user to make subsequent calls to the API without having to enter a username and password every time.

raven auth [-u --user]
Example
$ raven auth | jq
{
  "accessToken": "[ACCESS_TOKEN]",
  "idToken": "[ID_TOKEN]",
  "refreshToken": "[REFRESH_TOKEN]",
  "username": "barrydalive"
}

send-message

Sends a message to a chat room.

raven send-message [--room room-name] [--message message]
Example
$ raven send-message --room my-fun-room --message "What's up?"

Contact

Barry McAndrews - [email protected]

Project Link: https://github.com/barrymcandrews/raven-cli