About Mars Diary
Mars Diary is an open, searchable, plain-English archive of the raw images NASA’s Perseverance and Curiosity rovers send home. NASA publishes hundreds of thousands of raw frames, but they are listed by camera and file name. Here each image also gets a short plain-language description and tags, so you can search for “layered rocks”, “wheel tracks” or “the helicopter” instead of a camera code.
How it works
- Fetch. A script reads NASA’s public raw-image feeds for both rovers, skips thumbnails, removes duplicates and keeps a configurable sample per camera per sol (so the archive grows at a manageable pace).
- Prepare. Once a day, on the maintainer’s own Linux machine, a script picks up to 20 images that have no description yet, spread across rovers and cameras, newest first, and writes them to a batch file.
- Describe. A scheduled routine in the maintainer’s Grok Bot subscription has Grok look at each image and write a 2–3 sentence description, tags and a quality note. No paid API is used and nothing runs in GitHub Actions.
- Merge. A second script validates Grok’s results strictly (anything malformed is rejected), merges them, rebuilds the static search index, RSS feed and sitemap, and publishes.
- Publish. The site is plain HTML, CSS and JavaScript on GitHub Pages. Search runs entirely in your browser. Images are loaded directly from NASA; none are stored in this repository.
How descriptions are generated — and their limits
Every description shows an honest provenance label. “Described by Grok” means Grok wrote it in the Grok Bot routine described above, and the model and timestamp are recorded. “Sample description written for the demo — not Grok output” means it was written by hand as a launch placeholder; those are replaced as real batches run. (Anyone running their own copy can optionally use the xAI API instead; those are labelled “Described by Grok (xAI API)”.)
Grok’s descriptions can be wrong. They are told to describe only what is visible and to say “appears to” when unsure, but they may misjudge scale, colour, or what an object is. Raw images are unprocessed: they can be dark, blurry, cropped or show calibration targets. Descriptions are not scientific interpretation. If you spot a mistake, please report a wrong description.
Search uses simple stemming (so “layered” matches “layers”) and a small synonym list (“helicopter” finds “Ingenuity”, “dust devil” finds “whirlwind”). It is not a semantic AI search, so unusual wording can miss. Only images with a description are searchable, and only a sample of each sol’s images is archived.
NASA credit and policy
All images are from NASA/JPL-Caltech missions, shown with their credit lines (for example NASA/JPL-Caltech/MSSS for Curiosity Mastcam, MAHLI and MARDI; NASA/JPL-Caltech/ASU for Perseverance Mastcam-Z). Raw images are unprocessed. This site is not affiliated with or endorsed by NASA. See the NASA/JPL image use policy. Image data comes from NASA’s public raw-image feeds at mars.nasa.gov.
Privacy
Mars Diary has no accounts, no cookies, no analytics and no tracking scripts. Your searches never leave your browser. Your browser does load images directly from NASA’s servers, and the page is hosted on GitHub Pages, which has its own logs and privacy policy.
Open source
Code is MIT licensed: github.com/davidadamshirley/mars-diary. Built by David Adam Shirley (@xdas83); each description records how it was written. Subscribe with the RSS feed.