YubNub

From Wikipedia, the free encyclopedia

The YubNub logo
Enlarge
The YubNub logo

YubNub is a social networking web service with a command line–style interface. It allows users to create and use commands which are mapped to webpages and web services.

Contents

[edit] Features

  • Commands can be created for most websites and services. (Technically, any web service that can be accessed via an HTTP GET request is supported. HTTP POST support requires a proxy server.) [1]
  • Commands can be chained using a syntax similar to pipes. [2]
  • YubNub has a simple moderation system. Commands can be reported as spam or nominated for a list of "Golden Eggs" (commands that people think are the most interesting/useful). Currently, all such reports are investigated by the author.
  • Tools and instructions have been written to integrate YubNub with various browsers and operating systems. [3]
  • Currently, YubNub is in active development, with planned features including: integrated screen scraping and the ability to vote on commands, among others. [4]

[edit] Commands

A YubNub command is typically a one (1) to ten (10) letter abbreviation or word that corresponds to a web service via a HTTP GET request. There are currently three (3) common command types:

  • Global commands.
  • Command aliases.
  • Personal commands.

[edit] Global Commands

Global commands can be set via the create command. Anybody can create these commands and use them without the need of creating an account. All global commands can be seen using the ls command. Notable or unique global commands are nominated for "Golden Eggs", which can all be seen via the ge command. Global commands can be used as follows:

  • [command name] [required and/or optional parameters]

[edit] Personal Commands

The YubNub (aliases) logo
Enlarge
The YubNub (aliases) logo

Personal commands are powered by a third-party extension of YubNub called YubNub (aliases). These are set via the !set command and are proprietary to the creator. Personal commands also include the ability to set memos or lists securely. You can view all of your personal commands via the !ls command. There are main commands you need to know before being able to use personal commands:

  • To set: !set [command name] [url]
  • To use: ! [command name] [required and/or optional parameters]

View the YubNub (aliases) man page[5] for a detailed description of the use of YubNub (aliases).

[edit] Command Aliases

Command aliases are "shortcuts" for commands in which you would normally have to type similar parameters for each use, or are unusually long in name. Command aliases are similar to personal commands in that they can only be accessed by the person that set them. Command aliases are typically set with the !seta command, though can also be set via the !create command. The following are some useful ways to use command aliases:

  • !seta w weather [your zip code] (After setting "w" here, you can see your weather forecast without typing your zip code each time.)
  • !seta l gloc -what !s -where [city, state] (After setting "l" here, you can perform a Google local search without typing your area each time.)

[edit] Technical details

YubNub is open-source software licensed under the MIT License. It is written in Ruby and uses the Ruby on Rails framework. It was created in June 2005 as a project for the Rails Day programming contest. Currently, Jon Aquino is the sole developer. [6]

[edit] Trivia

[edit] External links