← All work
Tooling · 2024

Firestore Admin Scripts, NFT Collection & Item Maintenance

A multi-chain token launchpad

Overview

A small set of Python maintenance scripts for the NFT marketplace’s Firestore database, used to add and remove collections and NFT items directly via the Firebase Admin SDK. Operational tooling rather than product code.

Why It Exists

Running a live NFT marketplace requires occasional out-of-band data fixes, pruning a bad collection, removing an item, or seeding records, that are faster and safer to perform with a targeted script than through the application UI. These scripts provided that administrative escape hatch.

What We Built

Four focused scripts, add-collection.py, remove-collection.py, add-nft.py, and remove-nft.py, that authenticate with a Firebase service-account credential and operate directly on Firestore collections (e.g. Collections2) using the firestore admin client. Each script targets specific documents by ID and applies set/delete operations.

Technologies & Approach

Python with the firebase-admin SDK and a service-account certificate for privileged Firestore access. Deliberately minimal and procedural, built to be run on demand by an operator against the production database backing the marketplace functions.

Outcome / Impact

Gave the team a quick, repeatable way to correct and maintain marketplace collection and NFT records in Firestore without touching the application backend, complementing the Cloud Functions marketplace service.

Capabilities Demonstrated

  • Scripting privileged Firestore operations with the Firebase Admin SDK
  • Service-account-based automation for production data maintenance
  • Targeted NFT and collection record management
More work See all →