Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
Перейти к файлу
Greg Fodor 0c718786bf Remove hUbs 2019-10-23 06:22:34 +00:00
.circleci Store artifacts from build in Circle CI 2018-09-05 15:39:31 -07:00
.github/ISSUE_TEMPLATE Update bug issue template to use 'needs triage' label 2019-08-06 10:02:29 -07:00
.vscode virtual-gamepad-controls component for mobile 2d locomotion (#9) 2017-11-08 13:22:10 -08:00
admin Merge pull request #1836 from mozilla/feature/cloudflare-setup 2019-10-22 12:55:07 -07:00
doc player-rig -> avatar-rig 2019-08-05 11:45:18 -07:00
habitat Merge pull request #1827 from mozilla/feature/default-scenes 2019-10-22 12:21:20 -07:00
scripts Remove hUbs 2019-10-23 06:22:34 +00:00
src Remove need to check port 2019-10-23 02:52:38 +00:00
test/unit/utils Add tests for getSanitizedComponentMapping. 2019-02-19 11:41:23 -08:00
.babelrc Fix home page and hubs page for legacy browsers. Add webassembly feature detect 2019-05-31 20:38:29 -07:00
.env.defaults Separate admin and hubs packages 2019-10-01 14:57:22 -07: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 npm run login works 2019-10-23 00:47:35 +00:00
.htmlhintrc Upgrade some minor dependencies to shut up npm audit 2019-02-22 15:51:20 -08:00
.prettierignore prettier 2018-03-29 23:50:17 -07:00
.prettierrc.json Use babel for eslint parsing and prettier 2018-03-27 09:08:25 -07:00
.stylelintrc Scale canvas 200% wide so no eye buffers on desktop 2018-11-04 18:09:30 +00:00
CODE_OF_CONDUCT.md Add Mozilla Code of Conduct file 2019-03-29 23:42:09 -07:00
CONTRIBUTING.md Add link to Greg's presentation on Hubs code base to contributing doc 2019-10-16 14:23:46 -07:00
Jenkinsfile Fix build 2019-10-22 19:37:01 +00:00
LICENSE Initial Commit 2017-09-25 19:25:06 -07:00
PRIVACY.md Privacy Notice 3.2.3 2019-07-11 13:57:56 -07:00
PROMOTION.md Surface promotion, remixing and attribution 2019-05-14 14:18:51 -07:00
README.md Put third person mode behind qsTruthy 2019-08-01 13:52:41 -07:00
REMIXING.md Surface promotion, remixing and attribution 2019-05-14 14:18:51 -07:00
TERMS.md Fix Spoke download link and update repository links. 2019-05-10 10:18:44 -07:00
package-lock.json Started deploy 2019-10-23 05:57:47 +00:00
package.json Started deploy 2019-10-23 05:57:47 +00:00
webpack.config.js Kill dead code 2019-10-02 16:37:17 -07: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: HTTPS is required)

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. Note that you must also laod hubs.local over https.

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.
  • vrstats - If true shows stats in VR.
  • 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.
  • thirdPerson - Enables experimental third person mode.

Additional Resources