{"id":18450035,"url":"https://github.com/networked-aframe/naf-firebase-adapter","last_synced_at":"2025-08-23T04:06:51.737Z","repository":{"id":26409164,"uuid":"108336865","full_name":"networked-aframe/naf-firebase-adapter","owner":"networked-aframe","description":"networked-aframe Firebase network adapter","archived":false,"fork":false,"pushed_at":"2023-01-05T08:26:38.000Z","size":1980,"stargazers_count":14,"open_issues_count":32,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T01:35:01.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/networked-aframe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-25T23:20:52.000Z","updated_at":"2023-02-16T19:27:25.000Z","dependencies_parsed_at":"2023-01-14T04:35:36.085Z","dependency_job_id":null,"html_url":"https://github.com/networked-aframe/naf-firebase-adapter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/networked-aframe/naf-firebase-adapter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networked-aframe%2Fnaf-firebase-adapter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networked-aframe%2Fnaf-firebase-adapter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networked-aframe%2Fnaf-firebase-adapter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networked-aframe%2Fnaf-firebase-adapter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/networked-aframe","download_url":"https://codeload.github.com/networked-aframe/naf-firebase-adapter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/networked-aframe%2Fnaf-firebase-adapter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740720,"owners_count":24812642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T07:23:10.364Z","updated_at":"2025-08-23T04:06:51.712Z","avatar_url":"https://github.com/networked-aframe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Networked-AFrame Firebase Adapter\n\nNetwork adapter for [networked-aframe](https://github.com/haydenjameslee/networked-aframe) that uses Firebase as a backend.\n\n## Running the Example\n\n```\ngit clone https://github.com/networked-aframe/naf-firebase-adapter\ncd naf-firebase-adapter\nnpm install # or use yarn\n# Set firebase credentials in example/index.html\nnpm start\n```\n\nWith the server running, browse the example at http://localhost:8080. Open another browser tab and point it to the same URL to see the other client.\n\n## Setting Up Firebase\n\nFirebase is a \"serverless\" network solution provided by Google. In NAF's case it can be used to establish connections between clients in a peer-to-peer fashion, without having to host a signalling (connection) server.\n\nSteps to setup Firebase:\n\n1. [Sign up for a Firebase account](https://firebase.google.com/)\n2. Create a new Firebase project\n3. Go to Database -\u003e Realtime Database -\u003e Rules and change them to the following (warning: not safe for production, just developing)\n```javascript\n    {\n      \"rules\": {\n        \".read\": true,\n        \".write\": true\n      }\n    }\n```\n4. Click publish\n5. Go back to the project overview\n6. Click \"Add Firebase to your web app\"\n7. Copy the credentials into your HTML page\n\n## Use in an existing project\n\nAfter setting up firebase include and configure `naf-firebase-adapter`.\n\n```html\n\u003chtml\u003e\n\u003chead\u003e\n  \u003cscript src=\"https://aframe.io/releases/1.0.4/aframe.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://unpkg.com/networked-aframe/dist/networked-aframe.min.js\"\u003e\u003c/script\u003e\n  \u003c!-- Include naf-firebase-adapter *after* networked-aframe --\u003e\n  \u003cscript src=\"https://unpkg.com/naf-firebase-adapter/dist/naf-firebase-adapter.min.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://www.gstatic.com/firebasejs/7.13.1/firebase-app.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://www.gstatic.com/firebasejs/7.13.1/firebase-auth.js\"\u003e\u003c/script\u003e\n  \u003cscript src=\"https://www.gstatic.com/firebasejs/7.13.1/firebase-database.js\"\u003e\u003c/script\u003e/script\u003e\n\n  \u003c!-- Set the Firebase credentials --\u003e\n  \u003cscript\u003e\n    window.firebaseConfig = {\n      authType: 'none',\n      apiKey: 'your-api-key',\n      authDomain: 'xxx.firebaseapp.com',\n      databaseURL: 'https://xxx.firebaseio.com',\n      projectId: \"your-projectId\",\n      storageBucket: \"your-storageBucket\",\n      messagingSenderId: \"your-messagingSenderId\",\n      appId: \"your-appId\",\n      measurementId: \"your-measurementId\"\n    };\n  \u003c/script\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003c!-- Set adapter to firebase --\u003e\n   \u003ca-scene networked-scene=\"\n        adapter: firebase;\n    \"\u003e\n  \u003c/a-scene\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworked-aframe%2Fnaf-firebase-adapter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetworked-aframe%2Fnaf-firebase-adapter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetworked-aframe%2Fnaf-firebase-adapter/lists"}