Anonymous chat anywhere with commandline
Need bare runtime installed
Could install globally using:
npm i -g bare
Clone the repository or download it and navigate to the directory, then run:
npm install
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.
You can also import barechat
in your JavaScript files:
import { getBackend } from 'barechat/lib/chat-core'
const {
swarm,
getMemberId,
createRoom,
joinRoom,
sendMessage
} = getBackend()