Giter VIP home page Giter VIP logo

webring-cli's Introduction

webring-cli

npm (tag)

The webring-cli is the command-line interface for the xxiivv webring.

The webring is an attempt to inspire artists & developers to create and maintain their own website and share traffic among each other.

Installation

Simply run...

yarn global add webring-cli

...or

npm install -g webring-cli

Usage

❯ webring -h
  Usage: webring [options] [command]

  Options:
    -V, --version      output the version number
    -h, --help         output usage information

  Commands:
    sync               syncs latest sites.js file from the xxiivv webring and cache's wikis
    sites              lists all the sites in the webring
    random             brings you to a random site in the webring
    rss [options]      rss feeds are alive and well
    hallway [options]  a voice echoes in the hallway
    wiki               a decentralized encyclopedia REPL

The first command you'll want to run is webring sync. This will pull down the latest sites.js file from the webring, parse it, and store it in ~/.webring. It will also then find the existing sites that have wikis and store a copy to be able to navigated with the wiki REPL. You'll then be able to use the other commands.

The hallway

A voice echoes in the hallway...

hallway usage

❯ webring hallway -h
  Usage: hallway [options]

  a voice echoes in the hallway

  Options:
    gander <user | channel | tag>  take a gander at the hallway
    members                        shows a list of all hallway members and their twtxt file location
    setup                          setup options for hallway related settings
    write <message>                write a message on the wall
    -h, --help                     output usage information

The first command you'll have to run while using the hallway is webring hallway setup. This will walk you through setting up the location of your twtxt file and setting the amount of messages you'd like displayed. If you don't have a twtxt account and simply want to view the hallway, then just leave the twtxt setting blank.

During setup your will also have the option to set the amount of messages you'd like displayed. The final setting can be used to automatically push your twtxt file if you're using a git repo. Note this relies on a clean branch to work correctly.

When you mention a user in the hallway, you simply need to @member them, and it will be replaced with the twtxt compliant @<user twtxt-location> format. If you're using this also to maintain a twtxt file outside of the webring, then use the regular format, and it will just leave it as is.

rss usage

❯ webring rss -h
  Usage: rss [options]

  rss feeds are alive and well

  Options:
    feeds          shows you a list of all available rss feeds and their authors
    gander <feed>  shows you either all of the feeds combined or a specific feed
    -h, --help     output usage information

The rss reader works by fetching either all the rss feeds or a single feed, parsing it, creating html out of it, and then printing it to a temp file. Then that temp file is opened up in your browser. If you look in your os's temp directory, you'll find the file there labeled as rss.html.

wiki usage

Upon entering webring wiki you'll be dropped into a REPL that will allow you to navigate around the webrings wikis. The REPL is modeled after Josh's Compendium. The available commands in the REPL are below

❯ webring wiki

  Usage: [command]

  Commands:
    ls          list directory contents
    cd <index>  change directory
    exit        to exit the repl
    help        display all commands

wiki >

Building locally

If you'd like to build locally, you're able to clone this repository and run it by following the commands below. There is no building process, dev server, or anything like that needed.

git clone https://github.com/ckipp01/webring-cli
cd webring-cli
yarn install
node webring.js [options] [commands]

Issues?

If you come accross any issues, please submit a issue.

webring-cli's People

Contributors

ckipp01 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

webring-cli's Issues

parser broke

i would acly convert sites.js into pure json instead, given the nature of it.

Unable to skip hallway txt upon initial setup

When a user is running webring hallway setup for the first time and the skip the twtxt file location question, it doesn't create the config.json causing the next question to automatically not be able to write to the file since it doesn't exist yet.

Undefined rss entries

There seems to be a feed or two that when the rss command parses them, they are returning as undefined. Hunt this down and see what's going on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.