{"id":21068891,"url":"https://github.com/aaron-sterling/extended-angular-firestore","last_synced_at":"2026-05-05T09:31:42.449Z","repository":{"id":143879079,"uuid":"118860001","full_name":"Aaron-Sterling/extended-angular-firestore","owner":"Aaron-Sterling","description":"Lightweight extension of Angular Firestore. Provides a more intuitive API. Create, Update, Add-or-Update (Upsert), Check for Existence, Download Once, Download and Listen for Changes.","archived":false,"fork":false,"pushed_at":"2018-02-18T08:35:43.000Z","size":22,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-24T09:36:27.971Z","etag":null,"topics":["angular","angular2","angularfire2","firebase","firestore","ionic"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Aaron-Sterling.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-01-25T04:00:37.000Z","updated_at":"2022-02-27T13:21:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"639b56d8-c5ed-4926-b732-b2f2ab73c328","html_url":"https://github.com/Aaron-Sterling/extended-angular-firestore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Aaron-Sterling/extended-angular-firestore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaron-Sterling%2Fextended-angular-firestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaron-Sterling%2Fextended-angular-firestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaron-Sterling%2Fextended-angular-firestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaron-Sterling%2Fextended-angular-firestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Aaron-Sterling","download_url":"https://codeload.github.com/Aaron-Sterling/extended-angular-firestore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Aaron-Sterling%2Fextended-angular-firestore/sbom","scorecard":{"id":7649,"data":{"date":"2025-08-11","repo":{"name":"github.com/Aaron-Sterling/extended-angular-firestore","commit":"cf4e65f6904542fb2438fdffb700d5ed9d70aa77"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/8 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-14T13:55:18.961Z","repository_id":143879079,"created_at":"2025-08-14T13:55:18.961Z","updated_at":"2025-08-14T13:55:18.961Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32643526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["angular","angular2","angularfire2","firebase","firestore","ionic"],"created_at":"2024-11-19T18:28:27.899Z","updated_at":"2026-05-05T09:31:42.420Z","avatar_url":"https://github.com/Aaron-Sterling.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# extended-angular-firestore\nLightweight extension of Angular Firestore. Provides a more intuitive API. Create, Update, Insert-or-Update (Upsert), Check for Existence, Download Once, Download and listen for changes.\n\n1. [Installation](https://github.com/Aaron-Sterling/extended-angular-firestore/blob/master/README.md#installation)\n2. [Sample Usage](https://github.com/Aaron-Sterling/extended-angular-firestore/blob/master/README.md#sample-usage)\n3. [Design Concept](https://github.com/Aaron-Sterling/extended-angular-firestore/blob/master/README.md#design-concept)\n4. [Setup](https://github.com/Aaron-Sterling/extended-angular-firestore/blob/master/README.md#setup)\n\nNext page: [API](https://github.com/Aaron-Sterling/extended-angular-firestore/blob/master/docs/api.md)\n\n## Installation\n\n```npm install extended-angular-firestore --save```\n\n## Sample Usage\n\n```\nimport { ExtendedAngularFirestore } from 'extended-angular-firestore';\n\nexport class Example {\n  \n  constructor(eaf: ExtendedAngularFirestore) {\n  \n    const ref = 'reference string to Firestore database location';\n    const doc: DocType = documentOfYourChoiceHere;\n    \n    eaf.createNewDocument\u003cDocType\u003e(ref, doc); // creates a new doc at reference ref\n    eaf.updateExistingDocument\u003cDocType\u003e(ref, doc); // updates existing document with value doc\n    eaf.upsert\u003cDocType\u003e(ref, doc); // updates the document if it exists\n                                   // otherwise, creates a new document at reference ref\n  }\n}\n```\n\n## Design Concept\n\nThe goal of the API is to help the programmer manage Observable Subscriptions, so you only ask for exactly what you want. You can either ask to download a document or a collection exactly once, in which case you get back a Promise that resolves to the value of the document you are requesting.  Or you can listen to a document or a collection, in which case you get back an Observable you can subscribe to (and might have to unsubscribe from). This structure has helped me avoid annoying double-request errors where I failed to unsubscribe from a stream I hadn't realized I was still subscribed to.\n\nThis package also handles existence/nonexistence gracefully, which has been a weakness of both Firebase and Firestore in the past. To create or modify a document, simply use the Upsert method, which does the existence checking for you.\n\nFinally, the API extension is lightweight -- about 100 lines of TypeScript and three RXJS operators (which AngularFire may already need).\n\n## Setup\n\nIn ```app.module.ts```, import ExtendedAngularFirestoreModule, instead of AngularFireModue, as follows.\n\nDelete this line:\n```\nAngularFireModule.initializeApp(FIREBASE_CONFIG);\n```\n\nReplace it with this line:\n```\nExtendedAngularFirestoreModule.forRoot(FIREBASE_CONFIG);\n```\n\nIn more complete context:\n```\nimport { ExtendedAngularFirestoreModule } from 'extended-angular-firestore';\nimport { FirebaseAppConfig } from 'angularfire2';\n\nconst FIREBASE_CONFIG: FirebaseAppConfig = {\n    apiKey: '\u003cyour-key\u003e',\n    authDomain: '\u003cyour-project-authdomain\u003e',\n    databaseURL: '\u003cyour-database-URL\u003e',\n    projectId: '\u003cyour-project-id\u003e',\n    storageBucket: '\u003cyour-storage-bucket\u003e',\n    messagingSenderId: '\u003cyour-messaging-sender-id\u003e'\n  }\n\n@NgModule({\n  declarations: [],\n  imports: [\n    ExtendedAngularFirestoreModule.forRoot(FIREBASE_CONFIG)\n  ],\n  providers: [],\n  bootstrap: []\n})\nexport class AppModule { }\n```\n\nAngularFire2 is a peer dependency of ExtendedAngularFirestore, so if you use npm to install this library, angularfire2 will be available to import from as well.\n\nNext page: [API](https://github.com/Aaron-Sterling/extended-angular-firestore/blob/master/docs/api.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaron-sterling%2Fextended-angular-firestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaron-sterling%2Fextended-angular-firestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaron-sterling%2Fextended-angular-firestore/lists"}