I made a P2P Chat App

Project URL: https://p2p-webchat.glitch.me/

It’s a 1 on 1 chat app that dosn’t require you to run a server, and it sends data over WebRTC instead of WebSockets. It has some slash commands. I also made a workaround so it can use Apple emojis with the Twemoji javascript.

Commands:

/me Says you … something (ex. /me is tired)
/color Make a colorful bubble (ex. /color red; Hello!)
/button Make a button that sends a message when you click it (ex. /button Button Text; Text to send.)

Please give suggestions/feedback!

7 Likes

It looks really clean and well made!
I just have two pieces of feedback:

  1. Consider making the “onboarding” box in the center.
  2. Make an option to create a username. This will help users know who they are talking to!
1 Like

And maybe add some background, too!

2 Likes

I’ve been looking at how to slash commands forever

1 Like

I can’t seem to get hold of a code to join, it just holds…_

Please fix as it seems like a great project!

Hey all, checkout https://glitch.com/remote/ to see more ways on collaborating with other users in a project!

2 Likes

Yep, check it out!

Especially during these times

2 Likes

I made a discord clone in socket.io

glitchchord.glitch.me

Welcome server- https://glitchchord.glitch.me/channel/join/5e7201dba468d20099e05bb5

1 Like

Please try again, also for some reason creating a room is faster on firefox.

I tried on another device, works perfectly!

r u planning to make it open source

1 Like

Any recommendations for libraries to make WebRTC simpler, I think that’s the only thing I might add to Pomagranate in the next few days.

@javaarchive PeerJS is pretty nice and simple: https://peerjs.com/

2 Likes

makes open source zoom clone web app

1 Like

Awwww, shoot I don’t seem to be able to generate an invite code. I’m unable to develop any peer to peer apps either due to network issues.

Further anaylsis shows zoom can collect a lot of your data(ip, device name, microphone/camera type, …) and send it other people.



We really need an open source clone of zoom.
5 Likes

Hmm reminds me a lot of a certain short video sharing app :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking: :thinking:

2 Likes

There’s something new right now, where an Indian-based telecommunications company named Jio made an exact same version of Zoom called JioMeet, the only difference being that the theme is a bit darker blue. And then, they released another app called JioChat, which looked like WhatsApp UI and Snapchat snaps put together.

yes, i agree. we need it

The closest thing to an open source version of Zoom is BigBlueButton.

1 Like

I work on a Twitch streaming in the browser app, if you want you can start from there and send the data to an RTMP server instead of Twitch. That’s basically what Zoom did, an RTMP server that gets all the video data then the Zoom client gets the server’s data.

https://twitch-streaming-v4.glitch.me

There’s also ressources available online for the client :


And there online examples of RTMP server setups.
1 Like

i think i know whats ur talking about :joy: but which one?

hmmmm, skype… (no…) zoom (no…) facetime (never used it…)

He said short video. Snapchat? Tiktok? I have no idea!

You mean spyware?

1 Like

No idea what I was saying but I think it was Tiktok.

Tiktok is spyware. See https://www.forbes.com/sites/zakdoffman/2020/07/01/anonymous-targets-tiktok-delete-this-chinese-spyware-now/ But anyway, let’s stop getting off topic.

1 Like

Yeah, I wouldn’t be complaining if the US banned it.

4 Likes

tik tok won’t be banned, dm me if you wanna know why. (Chelsea#1160 or DM me on the forums.)

Hey, TikTok got banned in India 3 days ago.

2 Likes

Yeah, I’ve finally got plans to upgrade my p2p video sharing app but it’ll take a while to get too because of other projects i’ll put more details in it’s thread later

I’d advise people to not use this. The code generation logic works by sending a URL (that includes your IP address!!) to CORS Anywhere (a proxy hosted on Heroku that bypasses CORS) which then sends it to is.gd (a URL shortener). That shortened link includes a smee.io URL, making it possible for is.gd (and possibly this website) to read metadata about your chat (this metadata also includes the sender and recipient’s IP addresses).

After doing a little bit more research:

  • The app sends ALL links you send in a message to a link preview api hosted on Glitch.
  • It uses CORS Anywhere for everything. This is a security risk because you’re letting that third-party read everything that goes through them, and they can modify the data if they want to.

I don’t believe OP is working on this project anymore.

Yep, whenever you see something with peer2peer in the name, your IP address may be visible. That is how Peer To Peer works after all.

2 Likes

everything can be open sourced in glitch.

Not the everything. It can be of private.

No, you have to buy boosted.

Yeah, although vs code live share and pomagranate can use relays for your data to prevent ip leaks. Discord does similar by using media servers see this

3 Likes

If you use a relay it isn’t a direct p2p connection anymore

2 Likes

It isn’t but at least it won’t leak IPs of the other users and your own it would just show the server IPs

2 Likes

Yes, but this app unnecessarily exposes IP addresses to third-parties.

1 Like

If a project uses a P2P connection, like IPFS PubSub or WebRTC then I’d highly suggest a VPN.

1 Like