🏛️ Hyperbeam virtual computers in Babylon.js!
Clone the repository and run the following commands in the root directory of the project.
npm install
npm run dev
- Get a free Hyperbeam API key from here.
- Start a virtual computer on Hyperbeam by running the following command.
curl -X POST -H "Authorization: Bearer <your-api-key>" https://engine.hyperbeam.com/v0/vm
You should get a response similar to the following.
{
"session_id": "85a208c0-8fc1-4b27-bcbc-941f6208480b",
"embed_url": "https://96xljbfypmn3ibra366yqapci.hyperbeam.com/haIIwI_BSye8vJQfYghICw?token=QAWRxLz6exTKbxlFG3MTBxsoPePyDa7_WO3FCxKO73M",
"admin_token": "OjIulaS-YO4qWHoGap2iK3KqUvAX5qEi9_fDCxESNj0"
}
- Copy the
embed_url
value and paste it in thesrc/main.js
file in theembedUrl
variable.