{"id":17596172,"url":"https://github.com/birjuvachhani/firestore_size","last_synced_at":"2026-03-06T00:30:57.514Z","repository":{"id":198523963,"uuid":"700989088","full_name":"BirjuVachhani/firestore_size","owner":"BirjuVachhani","description":"A tiny package to calculate the approximate size (in bytes) of a Firestore document.","archived":false,"fork":false,"pushed_at":"2025-10-27T07:00:11.000Z","size":40,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-27T08:36:29.578Z","etag":null,"topics":["dart","firebase","firebase-firestore","firestore","firestore-size","flutter"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/firestore_size","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BirjuVachhani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-10-05T17:23:09.000Z","updated_at":"2025-10-27T06:59:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"36fbc699-165c-429a-8df4-fcd8229bc175","html_url":"https://github.com/BirjuVachhani/firestore_size","commit_stats":null,"previous_names":["birjuvachhani/firestore_size"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/BirjuVachhani/firestore_size","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Ffirestore_size","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Ffirestore_size/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Ffirestore_size/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Ffirestore_size/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BirjuVachhani","download_url":"https://codeload.github.com/BirjuVachhani/firestore_size/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BirjuVachhani%2Ffirestore_size/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156285,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["dart","firebase","firebase-firestore","firestore","firestore-size","flutter"],"created_at":"2024-10-22T08:23:13.438Z","updated_at":"2026-03-06T00:30:57.497Z","avatar_url":"https://github.com/BirjuVachhani.png","language":"Dart","funding_links":["https://github.com/sponsors/BirjuVachhani","https://www.buymeacoffee.com/birjuvachhani"],"categories":[],"sub_categories":[],"readme":"# Firestore Size\n\n[![Build](https://github.com/BirjuVachhani/firestore_size/workflows/Build/badge.svg?branch=main)](https://github.com/BirjuVachhani/firestore_size/actions) [![Tests](https://github.com/BirjuVachhani/firestore_size/workflows/Tests/badge.svg?branch=main)](https://github.com/BirjuVachhani/firestore_size/actions) [![codecov](https://codecov.io/gh/birjuvachhani/firestore_size/branch/main/graph/badge.svg?token=ZTYF9UQJID)](https://codecov.io/gh/birjuvachhani/firestore_size) [![Pub Version](https://img.shields.io/pub/v/firestore_size?label=Pub)](https://pub.dev/packages/firestore_size)\n\nA tiny package to calculate the approximate size (in bytes) of a Firestore document. An improved Dart implementation of\n[firestore-size](https://www.npmjs.com/package/firestore-size) NPM package.\n\n\u003e This package strictly follows [Storage Size reference guide](https://cloud.google.com/firestore/docs/storage-size) by\n\u003e [Google Cloud](https://cloud.google.com) to calculate the size of a document.\n\n## Installation\n\nAdd this package to your dependencies in your `pubspec.yaml` file:\n\n```yaml\n  dependencies:\n    firestore_size: \u003clatest_version\u003e\n```\n\n## Usage\n\n### Get the size of a document\n\n```dart\n// Get the document size\nfinal int docSize = FirestoreSize.sizeOf(docSnapshot);\n\n// Get the size of the data in the document\nfinal int dataSize = FirestoreSize.sizeOf(map);\n\n// Get the document size with extension\nfinal int docSize = docSnapshot.sizeInBytes();\n\n// pretty print the size\nprint(docSize.prettySize()); // Prints size like 256 Bytes, 1 KB, 2 MB etc.\n```\n\n## Liked this package?\n\nShow some love and support by starring the repository. ⭐\n\nWant to support my work?\n\n\u003ca href=\"https://github.com/sponsors/BirjuVachhani\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/BirjuVachhani/spider/main/.github/sponsor.png?raw=true\" alt=\"Sponsor Author\" style=\"!important;width: 600px !important;\" \u003e\u003c/a\u003e\n\nOr You can\n\n\u003ca href=\"https://www.buymeacoffee.com/birjuvachhani\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-blue.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n\n## License\n\n```\nBSD 3-Clause License\n\nCopyright (c) 2023, Birju Vachhani\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n   list of conditions and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice,\n   this list of conditions and the following disclaimer in the documentation\n   and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its\n   contributors may be used to endorse or promote products derived from\n   this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\nAND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirjuvachhani%2Ffirestore_size","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbirjuvachhani%2Ffirestore_size","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbirjuvachhani%2Ffirestore_size/lists"}