sirfilips/centmeta-backend ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python backend for a Magic: The Gathering meta site for Centurion Commander.

I want a FastAPI app that keeps a local SQLite database up to date by pulling public deck lists from Moxfield and card data from Scryfall, then serves REST APIs for stats like mana curve, card type breakdowns, synergy rates, and trend changes over time. It should cache responses so the site feels fast, and it should do a nightly refresh so the data is ready when the first user opens the dashboard.

Please also include a separate scraper script that can update the database incrementally, only fetching new or changed decks, with sensible rate limiting and retry handling. Make sure there’s an admin endpoint protected by a secret so I can blacklist or remove a deck, and keep everything privacy friendly by avoiding any personal data storage. If you need to check the latest FastAPI or Scryfall docs while building it, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab