{"id":24097212,"url":"https://github.com/poode/firebase-modeling","last_synced_at":"2026-05-06T08:32:41.230Z","repository":{"id":44358431,"uuid":"510143038","full_name":"poode/firebase-modeling","owner":"poode","description":"Get firebase/firestore entity model to migrate to mongo or any db later","archived":false,"fork":false,"pushed_at":"2022-07-10T22:04:45.000Z","size":151,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T06:27:11.434Z","etag":null,"topics":["data","database","firebase","firestore","modeling","schema"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/poode.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}},"created_at":"2022-07-03T21:51:34.000Z","updated_at":"2022-07-09T15:56:32.000Z","dependencies_parsed_at":"2022-08-25T14:00:39.705Z","dependency_job_id":null,"html_url":"https://github.com/poode/firebase-modeling","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/poode/firebase-modeling","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poode%2Ffirebase-modeling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poode%2Ffirebase-modeling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poode%2Ffirebase-modeling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poode%2Ffirebase-modeling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poode","download_url":"https://codeload.github.com/poode/firebase-modeling/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poode%2Ffirebase-modeling/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32684644,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["data","database","firebase","firestore","modeling","schema"],"created_at":"2025-01-10T13:26:11.474Z","updated_at":"2026-05-06T08:32:41.212Z","avatar_url":"https://github.com/poode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firebase/Firestore Schema Finder\n Since I asked this question [Database modeling to migrate to mongodb](https://stackoverflow.com/questions/72815824/database-modeling-to-migrate-to-mongodb).\n I got no answers so I started the hard way to find my project schema for each entity.\n\n Project is still under development and of course bug can be showen at any time :)\n Also It was a sketchy code I did not take care of code quality so you are welcome to enahnce with me.\n\n![Image](/static/img.png)\n\n### Result is like that: \n\n```\n{\n    \"testCollection/{document}/anotherSubCollection\": {\n        \"anyField\": \"String\"\n    },\n    \"testCollection\": {\n        \"stringFiled\": \"String\",\n        \"nullField\": \"Null\",\n        \"geoPointField\": \"GeoPoint\",\n        \"arrayFiled\": \"Array\",\n        \"boolenField\": \"Boolean\",\n        \"numberFiled\": \"Integer\",\n        \"refField\": \"Reference\",\n        \"timestampFiled\": \"Timestamp\",\n        \"mapFiled\": \"Map\",\n        \"testField\": \"String\",\n        \"anotherTestField\": \"String\"\n    },\n    \"testCollection/{document}/testSubCollection\": {\n        \"testSubcollectionField\": \"String\"\n    },\n    \"testCollection/{document}/anotherSubCollection/{document}/subOfSubCollection\": {\n        \"anyField\": \"String\"\n    }\n}\n\n```\n\n## Note\nYou will get generated files in your home directory as below:\n* `pathSchema.txt` where I collect the full paths to process later.\n* `dbPaths.json` where I get the collectiona and subcollections full paths.\n* `schema.json` where We can get the final result.\n\n ## Known Issue:\n The script takes too much time, this is becuase of db data, as the script loop on each document to find sub-collections ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoode%2Ffirebase-modeling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoode%2Ffirebase-modeling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoode%2Ffirebase-modeling/lists"}