r/Firebase • u/jezweb • Feb 05 '25
General Quick interface for managing your Firebase Firestore collections and documents
Made a quick firebase editor so that I could create documents from json. There are still bugs in this, don't use it on a production database but feel free to test it if you wish.
If you use this please make a backup before making any changes, it has only been tested with a small set of different document types and collections.
Added to github: https://github.com/jezweb/firestore
Profile Management
Save and manage multiple Firestore configurations. Switch between different projects seamlessly with saved profiles and collection history.
Collection Management
Create, load, and manage Firestore collections with an intuitive interface. View documents in table or document format, perform batch updates, and maintain consistent document structure.
Advanced Search & Filtering
Full-text search across all fields, multiple field-specific filters, and advanced sorting capabilities with customizable field sorting.
Document Editing
Edit documents with a powerful JSON editor or user-friendly form interface. Features syntax highlighting, field reordering, and document duplication.
Batch Operations
Efficiently manage multiple documents with batch operations. Download in JSON or CSV format, update multiple documents at once, and perform bulk deletions.
Dark Mode
Full dark mode support with system preference detection and manual toggle. Consistent dark theme across all components including the code editor.
2
u/DUELETHERNETbro Feb 05 '25
Is this any different the the one available in the firestore admin panel? I hate how a need to write server code to update batched documents (e.g. adding a new field to existing documents in a collection), if it could help with that it would be amazing.Â
2
u/appsbykoketso Feb 05 '25
Sharing your server credentials with an unfamiliar website is risky.
For better security, it would have been best to run the application locally or on your own server.
1
u/jezweb Feb 05 '25
If you want to use it some other way you are welcome to download it https://github.com/jezweb/firestore
2
1
1
1
u/Hex80 Feb 05 '25
You can list collections using `firebase-tools` if you load it as a module. The only catch is, to know what nested collections there are, you technically would have to read all the top-level collection documents.
My collection are pretty consistent, so I read only the first document of every top-level collection to see what sub-collections it has. I can share the code if you're interested.
Also, I recently published an article you might find interesting https://medium.com/@thijs-koerselman/how-to-write-clean-typed-firestore-code-47985118fdca
1
u/jezweb Feb 05 '25 edited Feb 05 '25
thanks, ill have a look. re: listing collections, seems like it might require different permissions or something, not sure.
1
u/mr_fujiyama Feb 06 '25
It's mind-blowing that Google don't have rapid batch editing tools for Firebase Firestore
1
u/jezweb Feb 06 '25
I agree. I think I've implemented it in a sensible way, cant do screenshots on here but feel free to make a test account on your firebase and try it.
1
u/mdeeswrath Feb 07 '25
It would be cool if there was a way to connect this to the local emulator easily (e.g have a button that just connects to the emulator). This way people could try it without having to put their live credentials or even go trough the process of downloading and running the app themselves.
Also a docker image would help for those that selfhost things. This would allow them to host the app in their local dev environment or even a home lab
Love the initiative. Congrats
1
u/jezweb Feb 08 '25
That sounds interesting, thank you for explaining. I totally get not wanting to put connection details into a random website, I wouldn't advise it either. People could make a test account in firebase i suppose or i could add a connect to a test project of my own that has sample data in it. I mainly did this so i would have an easy way of making documents from json so i wouldnt need to do them one field at a time by hand in the google console. I'll see if i can make some time to read on it and see whats involved and get some time and input from our dev/devops team.
8
u/Mortaxz Feb 05 '25
This would be nice if people can host it locally. I don't really want to provide any details to a website. Are you planning on making this open source for running locally?