TerminalTalk is a command-line decentralized chat application that allows users to host their own server and communicate with friends.
TerminalTalk provides a seamless chatting experience directly through the terminal. Users can set up their server using tools like ngrok, creating a decentralized environment for secure and private conversations.
To use TerminalTalk, you'll need:
- Bun
- Ngrok or a similar tool for creating tunnels to host your server
- A terminal or command line interface
Ensure you have Bun installed.
- Clone the repository from GitHub.
git clone https://github.com/TH3-MA3STRO/TerminalTalk.git
- Navigate to the TerminalTalk directory.
- Install dependencies by running:
bun install
- run the
server.ts
filebun run server.ts
- In another window/tab run Ngrok or a similar tool to expose your local server to the internet:
or you can change the port by changing it on
ngrok http 3000 // default is 3000
line 8
inserver.ts
file - Copy the generated URL and share it with your friends.
-
Edit the
client.ts
file and replace 'PATH-TO-SERVER' in line 84 with the URL generated in the aforementioned step -
Run the
client.ts
file:bun run client.ts
-
Enter your name and room id separated by a ":"
<NAME>:<ROOM ID>
and hit enter
-
Start chatting!
- Hitting
insert
key focuses the inputbox - Hitting
enter
sends the text - You can exit the insert mode by hitting
escape
key, pressingescape
one more time will stop the program