268 points · by declan_g · 4y ago · 132 comments
We’re Philip, Amby, and Declan, and we made “multiplayer virtual computers” that you can embed anywhere, including 3D spaces. We decided to build this because we noticed that embedding third-party apps and websites can be a nightmare due to incompatible platforms, security issues, and poor UX. Adding multiplayer functionality to these embeds makes this problem exponentially more difficult.
On the backend, we’re spinning up a VM and running a resource-optimized fork of Chromium which we then stream to participants via WebRTC. Since we’re hosting the servers running the applications, multiple users can connect and control the virtual computer seamlessly, and their client just needs to handle a video stream.
If you want to add multiplayer virtual computers to your own app, you can sign up on https://hyperbeam.com/?ch=hn&cm=hn1, grab a free API key, and throw the provided embed URL in an iframe in your app.
You can also play around more with the Three.js demo in our interactive sandbox: https://app.sideguide.dev/hyperbeam/threejs/
If you have any questions or feedback, feel free to comment or shoot me an email at declan@hyperbeam.com.
Thanks!
Docs: https://docs.hyperbeam.com Discord: https://discord.gg/D78RsGfQjq
If it matters, the HN link redirects for me to:
https://threejs-example.hyperbeam.com/672b6071
and the ID at the end stays the same even in incognito.
Since this is on the front page and I've been waiting around for 5 minutes there must be other people using it. How is it supposed to be multiplayer?
EDIT: once I posted this comment somebody else joined, I see how it works now. Very cool. I guess it depends on winding up with a shared ID or something?
So, the reply period is per-item! Enabling advanced necromancy...
https://pad.riseup.net/p/1_prWgNWMqs-Hu_bIi3I
https://app.kosmi.io/room/m4gsd4
“users, uh, find a way”
There's a couple ways of opening multiple windows, which enables title bar controls on every window. Minimizing and closing them softlocks to a black screen until the instance resets.
Fingers crossed the board they went on was the papercraft & origami board.
But the core experience is great. Works flawlessly even on an iPhone. Congrats!
You can't even take a screenshot of YouTube TV if you don't run it in a VM. Goes to the clipboard as all black.
How does HyperBeam not get abused (and consequentially shut down) for people wanting to share a stream of a pay-per-view / YouTube TV style subscription with their friends?
All viewers in the same room see and hear the same video stream, and can control the same browser instance.
I shared my link with my wife but she saw something entirely different... wasn't she supposed to be the same thing as me with the same "room" link?
Amazing job OP :)
I was also disappointed it didn't work.
See the "webgl" parameter here: https://docs.hyperbeam.com/start-chromium-session#parameters
A little easter egg for the devs that try our API :)
The watch party website is still up at https://watch.hyperbeam.com, we're the biggest Rabb.it alt that offers virtual browsers.
Without Rabb.it, we wouldn't be here haha
https://docs.hyperbeam.com/start-chromium-session
First thing that comes to my mind is... this is kind of like Puppeteer. Even if that is what they are using in the background... would they ever expose it so existing Puppeteer apps could plug and play (like https://www.browserless.io/)?
Would appreciate your thoughts.
Would love to learn more about the mobile test automation space, I'll send off an email.
Furthermore, an iframe cannot be synchronized across participants. If you and I load YouTube in an iframe, it's not guaranteed that our videos are sync'd.
With Hyperbeam, you can embed any website and the content is sync'd. Think of it like sitting beside somebody with a computer.
Launch HN: Hyperbeam API (YC W22) – Multiplayer embeds of any website - https://news.ycombinator.com/item?id=30433104 - Feb 2022 (63 comments)
It's crazy to think this is built off forked chromium yet there is no really good self-hosted cross-platform Remote Desktop app.
Keep up the good work!
Hyperbeam started out as anime watch party website for our engineering capstone project in 2019, so the commit history is a bit comical. https://uwaterloo.ca/news/engineering-students/taking-innova...
founders@hyperbeam.com
philip@hyperbeam.com (CEO) - Philip#9001
amby@hyperbeam.com (CTO) - Ambyjkl#4365
declan@hyperbeam.com (CPO) - Dek#7777
I manage to vist https://glicol.org and get some live coding music there
but the audio seems to be compressed a lot and the cpu seems to be overloaded
I cannot open console there so I cannot tell
with that being said, I think it is really promising and look forward to the update
Also thanks for showing me glicol, I love dabbling with audio visualizers and often play around with the web audio API. Really cool that somebody made a DSL, I starred the project :)
The folks at SideGuide made the interactive demo for us — we love it too.
Is there any use-case you have in mind? We're struggling to find people that want android emulators.
Remote tutoring: https://www.teachwithkoala.com
VR offices & conferences: https://framevr.io
Watch parties: https://kosmi.io
Online coding lessons: https://www.strivemath.com
VS Code embeds: https://github.com/mintlify/connector
As for improving VR support, we're in the process of building a Unity SDK. Running computationally-expensive tasks in VR sounds really interesting in addition to the social use-case!
And a closed source version that has multiplayer, audio and much faster streaming (than the GitHub version) that uses webrtc.
I also have a few projects to bring even higher quality streaming, including an xvfb headful version using an extension to enable getDisplayMedia APIs to share the screen.
It's a different approach to Hyperbeam. I love that there are more and more new and young products in this space!
Super curious how you got that many stars on your repository, that's impressive!
Build. Post. Repeat.
Suggestion: A hotkey (in or out of the virtual computer) that allows you to reset to the default orientation without having to reload the page. On a laptop with only a touchpad, I'm fighting with the controls a bit.
Impressed by Hyperbeam tech behind. Bookmarked for later.
The watch party website is still up here: https://watch.hyperbeam.com
I'm guessing that other visitors get some content instead of the black box...
Still, only a black rectangle is shown (also disabled ad blocker).
There are a couple of _warning_ messages in the dev console though, which might explain the origin of the issue:
> An AudioContext was prevented from starting automatically. It must be created or resumed after a user gesture on the page.
> Autoplay is only allowed when approved by the user, the site is activated by the user, or media is muted.
It's almost like it's so far ahead, I worry that people won't know what to do with it. It's like the "what would you do with infinite bandwidth" problem... even smart people tap out creatively depressingly quickly.
Our landing page (https://hyperbeam.com) showcases some of our happy customers.
Remote tutoring: https://www.teachwithkoala.com
VR offices & conferences: https://framevr.io
Watch parties: https://kosmi.io
Online coding lessons: https://www.strivemath.com
VS Code embeds: https://github.com/mintlify/connector
Is there a way to get this to work on mobile? Tried on safari and chrome
When using the API you can set a specific height and width to resize the virtual computer. Additionally, we track touch events and you can drag-and-drop on devices like iPads.
Happy to chat more about it if you'd like! Feel free to join our Discord: https://discord.gg/D78RsGfQjq
If I wanted to run code that would say scroll through a site for everyone to watch, what is the best way to do it? From your docs looks like I should make a chrome extension and then have it install that?
We’re building a “privacy mode” feature to address this exact problem that allows the host to black out the screen when entering sensitive information like credentials.
As for Hyperbeam getting access to credentials—we don’t store any input from users in the virtual computer. The only things we track are the time a particular IP is connected to the VM and the domains that are visited (this is anonymized).
With that said, the virtual computer technology has some big differences when compared to something like TeamViewer.
- First off, Hyperbeam allows many participants to connect to the same virtual computer at once. All audio/video is synchronized, and any participant can control it (although our API has granular control permissions).
- Hyperbeam requires no downloads
- We manage the infrastructure ourselves, meaning you can embed Hyperbeam virtual computers in your app and scale seamlessly
- You can embed Hyperbeam virtual computers in 3D software and VR
- You can programmatically control the web browser
Here are some companies that are currently using our tech:
Remote tutoring: https://www.teachwithkoala.com
VR offices & conferences: https://framevr.io
Watch parties: https://kosmi.io
Online coding lessons: https://www.strivemath.com
Ok, I see, so the focus is more on the technology than the end-product.
How does it handle concurrency in interactions? https://liveblocks.io/blog/how-to-build-undo-redo-in-a-multi...
Feels slightly like the infamous "hacking" scene when two people are using the same keyboard.
As it stands, everyone's inputs clash.
The main issue is there's a single mouse pointer and keyboard input that all users control. It's quite chaotic as people scroll, click, select, etc. Provide some mechanism to nominate control authority or vote on interaction and it might be usable.
Also, this is a bit of a tangent but my first name has one "L". My mother named me after the Philippines and I'm of Scottish descent on my father's side.
I can't type/paste anything into the API key "Bearer" box above "Send Request" either.
The "Body" tab seems clickable but also doesn't work.
Here's a snippet you can start with:
curl -X POST -H 'Authorization: Bearer <your-api-key>' https://engine.hyperbeam.com/v0/vm
First of all some spyware stuff from cloudflare gets blocked by the ad-blocker.
But this is not the root of the problem as it doesn't work either without the ad-blocker active.
Minified JS Script dies with some cryptic backtrace.
I've tried on the hyperbeam.com website and it does not work either.
It lies straight in my face about a missing H.264 codec. (Which works fine according to https://test-videos.co.uk/bigbuckbunny/mp4-h264).
It seems you never tested your stuff. The console is full of errors:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194. (Reason: CORS request did not succeed). Status code: (null).
None of the “sha512” hashes in the integrity attribute match the content of the subresource. -oXZ36ekQX2btnYIZSdj2g
WEBGL_debug_renderer_info is deprecated in Firefox and will be removed. Please use RENDERER. chunk-vendors.9d9d262d.js:6:31482
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194. (Reason: CORS request did not succeed). Status code: (null).
None of the “sha512” hashes in the integrity attribute match the content of the subresource. -oXZ36ekQX2btnYIZSdj2g
Some cookies are misusing the recommended “SameSite“ attribute 4
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://416c35e0.hyperbeam.com/ok?vm=0. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
Object { type: "New", payload: {…} }
app.fc7f578d.js:1:42733
Object { type: "Create", payload: {…} }
app.fc7f578d.js:1:42733
WebRTC: Using more than two STUN/TURN servers slows down discovery 2 vendorlate.27cb1e73.js:14
WebRTC: Using five or more STUN/TURN servers causes problems 2 vendorlate.27cb1e73.js:14
Object { type: "Consume", payload: {…} }
app.fc7f578d.js:1:42733
Consume error: cannot consume1
The "cannot consume1" is the error that shows also on the three.js demo.Seems like in Firefox, H.264 in WebRTC is supported in an entirely different fashion than other kinds of H.264, like in an MP4 file.