{"id":18717433,"url":"https://github.com/js-data/js-data-firebase","last_synced_at":"2025-04-12T13:32:28.027Z","repository":{"id":20841549,"uuid":"24127765","full_name":"js-data/js-data-firebase","owner":"js-data","description":"Firebase adapter for js-data.","archived":false,"fork":false,"pushed_at":"2023-01-12T09:47:08.000Z","size":3679,"stargazers_count":32,"open_issues_count":25,"forks_count":16,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-14T21:51:27.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.js-data.io/docs/dsfirebaseadapter","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/js-data.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-17T03:08:53.000Z","updated_at":"2024-03-23T20:05:05.000Z","dependencies_parsed_at":"2023-01-14T13:16:05.604Z","dependency_job_id":null,"html_url":"https://github.com/js-data/js-data-firebase","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/js-data%2Fjs-data-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/js-data","download_url":"https://codeload.github.com/js-data/js-data-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248573522,"owners_count":21126850,"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","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-07T13:16:13.305Z","updated_at":"2025-04-12T13:32:27.725Z","avatar_url":"https://github.com/js-data.png","language":"JavaScript","readme":"\u003cimg src=\"https://raw.githubusercontent.com/js-data/js-data/master/js-data.png\" alt=\"js-data logo\" title=\"js-data\" align=\"right\" width=\"96\" height=\"96\" /\u003e\n\n# js-data-firebase\n\n[![Slack][1]][2]\n[![NPM][3]][4]\n[![Tests][5]][6]\n[![Downloads][7]][8]\n[![Coverage][9]][10]\n\nTested on IE9, Chrome 46, Firefox 41 \u0026 Safari 7.1 using\n\u003cimg src=\"https://raw.githubusercontent.com/js-data/js-data-firebase/master/bs.jpg\" alt=\"bs logo\" title=\"browserstack\" width=\"150\" height=\"35\" style=\"vertical-align: middle\" /\u003e\n\nA Firebase adapter for the [JSData Node.js ORM][11].\n\n### Installation\n\n    npm install --save js-data js-data-firebase firebase\n\n### Usage (Browser)\n\n```js\nimport { FirebaseAdapter } from 'js-data-firebase';\n\nwindow.firebase.initializeApp({\n  apiKey: window.API_KEY,\n  authDomain: window.AUTH_DOMAIN,\n  databaseURL: window.DATABASE_URL\n});\n\n// Create an instance of FirebaseAdapter\nconst adapter = new FirebaseAdapter({\n  // baseRef: 'users', // optionally set a baseRef root\n  db: window.firebase.database()\n});\n\n// Other JSData setup hidden\n\n// Register the adapter instance\nstore.registerAdapter('firebase', adapter, { default: true });\n```\n\n### Usage (Node.js)\n\n```js\nimport firebase from 'firebase';\nimport { FirebaseAdapter } from 'js-data-firebase';\n\nfirebase.initializeApp({\n  databaseURL: process.env.DATABASE_URL,\n  serviceAccount: process.env.KEY_FILENAME || 'key.json'\n});\n\n// Create an instance of FirebaseAdapter\nconst adapter = new FirebaseAdapter({\n  db: firebase.database()\n});\n\n// Other JSData setup hidden\n\n// Register the adapter instance\nstore.registerAdapter('firebase', adapter, { default: true });\n```\n\n### JSData + Firebase Tutorial\n\nStart with the [JSData + Firebase tutorial][12] or checkout the [API Reference Documentation][13].\n\n### Need help?\n\nPlease [post a question][14] on Stack Overflow. **This is the preferred method.**\n\nYou can also chat with folks on the [Slack Channel][15]. If you end up getting\nyour question answered, please still consider consider posting your question to\nStack Overflow (then possibly answering it yourself). Thanks!\n\n### Want to contribute?\n\nAwesome! You can get started over at the [Contributing guide][16].\n\nThank you!\n\n### License\n\n[The MIT License (MIT)][17]\n\nCopyright (c) 2014-2017 [js-data-firebase project authors][18]\n\n[1]: http://slack.js-data.io/badge.svg\n[2]: http://slack.js-data.io\n[3]: https://img.shields.io/npm/v/js-data-firebase.svg?style=flat\n[4]: https://www.npmjs.org/package/js-data-firebase\n[5]: https://img.shields.io/circleci/project/js-data/js-data-firebase.svg?style=flat\n[6]: https://circleci.com/gh/js-data/js-data-firebase\n[7]: https://img.shields.io/npm/dm/js-data-firebase.svg?style=flat\n[8]: https://www.npmjs.org/package/js-data-firebase\n[9]: https://img.shields.io/codecov/c/github/js-data/js-data-firebase.svg?style=flat\n[10]: https://codecov.io/github/js-data/js-data-firebase\n[11]: http://www.js-data.io/\n[12]: http://www.js-data.io/docs/js-data-firebase\n[13]: http://api.js-data.io/js-data-firebase\n[14]: http://stackoverflow.com/questions/tagged/jsdata\n[15]: http://slack.js-data.io/\n[16]: https://github.com/js-data/js-data-firebase/blob/master/.github/CONTRIBUTING.md\n[17]: https://github.com/js-data/js-data-firebase/blob/master/LICENSE\n[18]: https://github.com/js-data/js-data-firebase/blob/master/AUTHORS\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjs-data%2Fjs-data-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjs-data%2Fjs-data-firebase/lists"}