p2p chat in the terminal

cblgh 708439b8a1 use dat-dns@4.0.0 for cabal-dns 2 weeks ago
.cabal.yml-example a53512802f Look for config file as config.yml in ~/.cabal dir by default 8 months ago
.gitignore 7d84c98f8a Initial implementation of multiple cabals :D 8 months ago
LICENSE ea8c66b570 Add license 1 year ago
README.md 373307fcf7 Update README.md 2 weeks ago
cli-2019-04.png 99d4ccbbef add cli image 2 months ago
cli.js 708439b8a1 use dat-dns@4.0.0 for cabal-dns 2 weeks ago
commands.js 88a89897c2 refactor + fix /names command 2 weeks ago
index.js 3dc158578f chore: cabal-node -> cabal-core 10 months ago
markdown-shim.js a1ff0b0e57 add clickable links using markdown []() syntax 5 months ago
neat-screen.js 88a89897c2 refactor + fix /names command 2 weeks ago
output.js 170a913fdf use patched output fot neat log 1 year ago
package-lock.json 708439b8a1 use dat-dns@4.0.0 for cabal-dns 2 weeks ago
package.json 708439b8a1 use dat-dns@4.0.0 for cabal-dns 2 weeks ago
publish.sh 3a64b99381 publish-mirror->publish: now publishes both cabal & cabal-cli 2 weeks ago
util.js 88a89897c2 refactor + fix /names command 2 weeks ago
views.js 88a89897c2 refactor + fix /names command 2 weeks ago

README.md

cabal-cli

Terminal client for cabal, the p2p chat platform.

See cabal-core for the underlying database & api.

chat with us:
npx cabal cabal://cabal-club.github.io

Installation

$ npm install --global cabal
$ cabal --key cabal://0201400f1aa2e3076a3f17f4521b2cc41e258c446cdaa44742afe6e1b9fd5f82

Usage

Start a new instance:

cabal --new

Connect to an existing instance:

cabal --key <key>

e.g.

cabal --key cabal://0201400f1aa2e3076a3f17f4521b2cc41e258c446cdaa44742afe6e1b9fd5f82

Headless mode

This will run cabal without a UI. You can use this to seed a cabal (e.g. on a VPS) and make its data more available:

cabal --key <key> --seed

Commands

/channels 
   display channels you can join
/names
   display a list of the people currently online 
/join <channel> 
   join a channel
/j
   alias for /join
/nick <new nick>
   pick a new username
/n
   alias for /nick
/emote <some text> 
   write an old-school text emote
/me
   alias for /emote
/clear
   clear the current backlog
/help
    display a help message of the current commands
/quit
   exit cabal

Hotkeys

ctrl+u
    clear input line
ctrl+w
    delete last word in input
up-arrow
    cycle through command history
down-arrow
    cycle through command history
home
    go to start of input line
end
    go to end of input line
ctrl+n
    go to next channel
ctrl+p
    go to previous channel
pageup
    scroll up through backlog
pagedown
    scroll down through backlog
alt-[1,9]
    select channels 1-9
alt-n     tab between the cabals & channels panes