Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
Перейти к файлу
Marshall Polaris 8c1838cf7f Use lighter-weight JWT decoding library 2019-02-04 17:46:24 -08:00
.circleci Store artifacts from build in Circle CI 2018-09-05 15:39:31 -07:00
.vscode
doc Get image rotation and rotate the resulting object accordingly. 2018-09-04 15:09:17 -07:00
scripts Fix build script 2019-01-30 03:14:48 +00:00
src Use lighter-weight JWT decoding library 2019-02-04 17:46:24 -08:00
.babelrc Add browser targets to babel for better transpile 2018-11-21 17:47:00 -08:00
.env.defaults Add ability to whitelist domains which do not need CORS proxying 2018-12-29 01:13:29 +00:00
.eslintignore update linters 2018-05-09 21:19:08 -07:00
.eslintrc.js firefox safari perf fix. plus miscellaneous 2018-04-06 23:06:55 -07:00
.gitignore Un-revert npm-to-yarn PR 2018-07-26 16:45:38 -07:00
.htmlhintrc lint and delint html 2018-04-06 20:37:01 -07:00
.prettierignore
.prettierrc.json
.stylelintrc Scale canvas 200% wide so no eye buffers on desktop 2018-11-04 18:09:30 +00:00
Jenkinsfile Add missing references to tracking id 2019-01-30 02:26:05 +00:00
LICENSE
PRIVACY.md Update Privacy Policy to 3.1 2018-10-31 14:23:39 -07:00
README.md Update README.md 2019-01-23 16:38:55 -08:00
TERMS.md Fix title of Terms of Service 3.0 2018-10-16 13:33:18 -07:00
package-lock.json Use lighter-weight JWT decoding library 2019-02-04 17:46:24 -08:00
package.json Use lighter-weight JWT decoding library 2019-02-04 17:46:24 -08:00
webpack.config.js Add sentry dsn to webpack 2019-01-29 23:45:59 +00:00

README.md

Build Status

The client-side code for https://hubs.mozilla.com/, a multi-user experience in WebVR. Built with A-Frame.

Getting Started

To run the client, run:

git clone https://github.com/mozilla/hubs.git
cd hubs
npm ci
npm start

Then visit https://localhost:8080

Note: When running the Hubs client locally, you will still connect to the development versions of our Janus WebRTC and reticulum servers.

Building Static Files

To bundle javascript and generate the html templates, run:

npm run build

Sharing Your Changes

When running a local copy of Hubs as-is, you'll use Mozilla's "dev" Reticulm and Janus servers for storing your room information and relaying messages between users in the room.

This also means you can upload a modified copy of Hubs to a hosting provider as-is, and use it without having to set up your own servers. Simply run:

npm run build

and then upload the files in the dist folder to your hosting provider.

If you are running your own servers, you can modify the environment variable RETICULUM_SERVER when building to point Hubs to your own infrastructure.

See .env.defaults for the full set of environment variables that can modify Hubs' behavior at build time.

hubs.local Host Entry

When running the full stack for Hubs (which includes Reticulum) locally it is necessary to add a hosts entry pointing hubs.local to your local server's IP. This will allow the CSP checks to pass that are served up by Reticulum so you can test the whole app.

Query Params

  • allow_multi - Allow multiple instances off the app in the same browser session
  • avatar_scale - Scale your self!
  • quality - Either "low" or "high". Force assets to a certain quality level
  • mobile - Force mobile mode
  • no_stats - Disable performance stats
  • vr_entry_type - Either "2d", "vr", or "daydream". Used internally to force a VR entry type. Add "_now" to the end of the value to skip the audio check.
  • disable_telemetry - If true disables Sentry telemetry.
  • log_filter - A debug style filter for setting the logging level.
  • debug - If true performs verbose logging of Janus and NAF traffic.
  • debug_log - If true, enables an on-screen debug log and console. Useful for debugging on mobile devices.
  • userinput_debug - If true, enables an on-screen userinput debug status panel. Press "L" on your keyboard to show the panel.
  • disableTunnel - Tunnel vision is on by default. Disable the tunnel vision by this parameter.

Additional Resources

Waffle.io - Columns and their card count