Magic: The Gathering Search Engine


Magic: The Gathering is a trading card game created by Richard Garfield and published by Wizards of the Coast.

Not satisfied with the speed, reliability, and ease-of-use of their official card search engine over at , I created my own: .

It regularly downloads the entirety of Wizards' card database and cross-references the cards with other card databases for, among other things, higher-quality images and current market prices. Its interface is designed to work on desktop as well as mobile, and a client-side image cache ensures peak performance at minimal traffic.

Technical Details

Multi-threaded PHP (via pthreads ) to download and parse the card data (using my personal implementation of XMLHttpRequest , and PHP's native implementation of XPath ).
Stored in a MySQL database.
XSLT (with some EXSLT ) to generate the frontend.
HTML to display the search form and the results.
The image cache is based on a (shared) Web Worker and stores all previously requested card images in a local Indexed Database , and it displays its status via an HTML template .


Search Form
That's a lot of options.
Standard Planeswalkers
Which blue planeswalkers are currently legal in Standard?
1 card all big and stuff
Close-up for the beautiful artwork!