{"id":20690755,"url":"https://github.com/lemol/umi-plugin-firebase","last_synced_at":"2025-04-22T16:59:05.074Z","repository":{"id":47419536,"uuid":"164014584","full_name":"lemol/umi-plugin-firebase","owner":"lemol","description":"Umi plugin for firebase","archived":false,"fork":false,"pushed_at":"2023-01-03T22:25:33.000Z","size":498,"stargazers_count":7,"open_issues_count":11,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T21:39:45.894Z","etag":null,"topics":["firebase","umi","umi-plugin","umijs"],"latest_commit_sha":null,"homepage":"","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/lemol.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":"2019-01-03T19:30:29.000Z","updated_at":"2021-03-31T19:16:54.000Z","dependencies_parsed_at":"2023-02-01T11:15:37.069Z","dependency_job_id":null,"html_url":"https://github.com/lemol/umi-plugin-firebase","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fumi-plugin-firebase","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fumi-plugin-firebase/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fumi-plugin-firebase/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemol%2Fumi-plugin-firebase/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemol","download_url":"https://codeload.github.com/lemol/umi-plugin-firebase/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250284844,"owners_count":21405295,"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":["firebase","umi","umi-plugin","umijs"],"created_at":"2024-11-16T23:14:09.813Z","updated_at":"2025-04-22T16:59:05.053Z","avatar_url":"https://github.com/lemol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# umi-plugin-firebase\n\n[![NPM version](https://img.shields.io/npm/v/umi-plugin-firebase.svg?style=flat)](https://npmjs.org/package/umi-plugin-firebase)\n\nUmi plugin for firebase.\n\n## Install\n\n```bash\nyarn add --dev umi-plugin-firebase # OR npm install --save-dev umi-plugin-firebase\n```\n\n## Use\n\nJust setup the plugin on `.umirc.js`\n\n```js\nexport default {\n  plugins: [\n    // ...\n    ['umi-plugin-firebase', {\n      apiKey: '',\n      authDomain: '',\n      databaseURL: '',\n      projectId: '',\n      storageBucket: '',\n      messagingSenderId: '',\n    }],\n    // ...\n  ],\n}\n```\n\n## Options\n\n| name                | type                             | default                                      |\n|---------------------|----------------------------------|----------------------------------------------|\n| apiKey              | string (required in production)  | `process.env.FIREBASE_API_KEY`               |\n| authDomain          | string (optional)                | `process.env.FIREBASE_AUTH_DOMAIN`           |\n| databaseURL         | string (optional)                | `process.env.FIREBASE_DATABASE_URL`          |\n| projectId           | string (optional)                | `process.env.FIREBASE_PROJECT_ID`            |\n| storageBucket       | string (optional)                | `process.env.FIREBASE_STORAGE_BUCKET`        |\n| messagingSenderId   | string (optional)                | `process.env.FIREBASE_MESSAGING_SENDER_ID`   |\n\n### How to use\n\nAfter you configure the plugin, you are able to use `firebase app` as usual. But this time you don't need to `initializeApp` your app:\n\n```js\nimport app from 'firebase/app';\n\nauth = app.auth();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemol%2Fumi-plugin-firebase","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemol%2Fumi-plugin-firebase","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemol%2Fumi-plugin-firebase/lists"}