barechat

1.0.5 • Public • Published

BareChat Terminal

Anonymous chat anywhere with commandline

Prerequisite

Need bare runtime installed

Could install globally using:

npm i -g bare

Setup

Clone the repository or download it and navigate to the directory, then run:

npm install

Run

To test this chat app, in one terminal run:

> bare index.js
[info] Created new chat room: a1b2c35fbeb452bc900c5a1c00306e52319a3159317312f54fe5a246d634f51a

In another terminal use the key received from the first terminal's output:

> bare index.js a1b2c35fbeb452bc900c5a1c00306e52319a3159317312f54fe5a246d634f51a
[info] Joined chat room a1b2c35fbeb452bc900c5a1c00306e52319a3159317312f54fe5a246d634f51a

Now you can chat anonymously.

Using as a Package

You can also import barechat in your JavaScript files:

import { getBackend } from 'barechat/lib/chat-core'
const {
  swarm,
  getMemberId,
  createRoom,
  joinRoom,
  sendMessage
} = getBackend()

Package Sidebar

Install

npm i barechat

Weekly Downloads

224

Version

1.0.5

License

MIT

Unpacked Size

7.87 kB

Total Files

7

Last publish

Collaborators

  • gasolin