Skip to content
CookDex docs

Recipe Dredger

Most Mealie tooling waits for you to paste a URL. CookDex can go and find recipes for you. In the web UI, Discover manages the sources it crawls; the crawl itself runs as the recipe-dredger task.

Discover finds recipes on sites you choose and copies them into your own Mealie. You run CookDex yourself, so you decide which sites it visits, and checking and following each site’s terms of use is up to you.

  • Suggested sources are checked first. A site is only suggested if its terms of use didn’t ban automated access when they were read. Each suggestion records when that was. Terms change, so check them again yourself. Sites you add yourself aren’t checked by anyone.
  • CookDex is a polite visitor. It says who it is in every request, follows each site’s robots.txt, waits between requests, and never tries to get around a site that refuses it.
  • It’s for your own collection. Don’t use Discover to republish other people’s recipes.
  • No warranty. CookDex is provided as-is under the AGPL-3.0, without warranty, and its authors aren’t liable for how it’s used.

Before anyone can use Discover, an owner has to accept these terms. Until then they sit over the Discover page, and everything under them is dimmed: previews, imports, schedules and automation steps for Discover don’t run. Every other page shows a banner, “Discover has terms to accept”. Owners get a Review the terms button; editors see that an owner has to accept them.

Discover with its responsible-use terms on top: Before you use Discover, four points about choosing sites, suggested sources, your own collection and no warranty, and an I understand and accept button. The sources and the At most picker are dimmed behind it.

Click I understand and accept to record who accepted and when. The acceptance is tied to the exact wording shown and signed with CookDex’s master key. If the wording changes in a later release, or the saved acceptance is edited by hand, an owner is asked to accept again. An acceptance from a 2026.11.4 beta needs accepting once more.

Discover suggests 125 sites in nine cuisine groups. Each was checked against its terms of use, and sites whose terms ban automated access aren’t suggested. Switch on the ones you want, or add a site of your own under Sources.

When a release changes the suggestions, Discover shows a banner: “Suggested sources were updated”. Review lists the new suggestions and any of your sources that aren’t suggested any more, with the reason. Nothing changes until you choose: ticked new sources are added switched off, ticked old ones are removed, and anything you leave unticked stays as it is. Recipes already imported from a removed source stay in Mealie. Dismiss keeps your sources as they are and hides the banner.

A source can point at one section of a site, such as a site’s /recipes. Discover reads robots.txt and the sitemaps from the site’s root, keeps only the pages under that section, and visits nothing outside it.

When a site can’t be added, the message says what its answer means:

Message What to do
This site refused CookDex (HTTP 401, 403 or 406). Some sites block automated visitors. Check that the site’s terms allow it, or try again later.
Nothing was found at this address (HTTP 404). Use the site’s home page or its recipe section.
The site asked CookDex to slow down (HTTP 429). Try again in a few minutes.
The site took too long to answer. Try again later.

Point it at a recipe site and it reads that site’s robots.txt and sitemap to enumerate candidate pages, then checks each one before importing anything. A page has to actually look like a recipe: CookDex looks for schema.org/Recipe JSON-LD with real ingredients and instructions, and cross-checks with recipe-scrapers, so listicles and how-to posts are rejected rather than imported and cleaned up later. Anything that passes is handed to Mealie’s own scraper.

It is built to be a polite crawler: robots.txt crawl-delay is honored, with a one-second floor that configuration cannot lower. Sitemaps are cached, and URLs already imported or rejected are skipped on later runs.

The Dredger’s settings are in Settings under Dredger:

Setting Default What it does
Recipe language (DREDGER_TARGET_LANGUAGE) en Recipes in other languages are skipped.
Pause between pages (DREDGER_CRAWL_DELAY) 2.0 seconds How long to wait between pages on the same site. A site’s own robots.txt wins when it asks for longer.
Re-read site maps after (DREDGER_CACHE_EXPIRY_DAYS) 7 days How long a site’s list of recipe pages is reused before it’s read again.

On Discover, pick At most (how many new recipes one run may import), then click Preview. A preview reports what it would import without writing to Mealie or recording any state. It leaves out recipes Mealie already has, as a live run does; if it can’t read Mealie’s recipe list, it says “This preview may list recipes that are already in Mealie.” When it looks right, click Import now.

Discover with one source switched on: the At most picker set to 25 new recipes, the tagged field, Preview and Import now buttons, then Sources with the add-source field, Check sources that are on, and the Asian group open with 1 of 33 sources on.

A preview’s pages are examples of what a run finds, not a list of what it will import. Each run visits your sources and their pages in a new random order, so a live run can import different pages from the same sites.

To import only some kinds of recipe, type words in the tagged field next to At most, separated by commas, such as vegan, gluten free. Only recipes the site itself tags with one of them are imported. CookDex reads the tags from the recipe data on the page (its diet, category, cuisine and keywords), so “GlutenFreeDiet”, “Gluten-Free” and “gluten free” all match. Words match whole: “vegan” matches “vegan desserts” but not “veganish”. While the field is filled in, recipes with no tags at all are skipped.

A skipped page isn’t marked as rejected, so a later run with other tags, or none, can still import it. Discover already opens each page to check it’s a recipe, so the filter adds no requests to the sites; it saves the import into Mealie for every recipe that doesn’t match.

While an import runs, Discover shows a banner with a Stop button. Recipes it already imported stay in Mealie.

Option Type Default Description
dry_run boolean true Preview imports without writing to Mealie.
max_total integer 25 New recipes per run: a run stops after this many new recipes from all your sources together. 0 means no limit.
only_tags string blank Only recipes tagged: comma-separated words; only recipes the site tags with one of them are imported. Blank imports everything.
limit integer 50 From one site, at most: keeps one site from filling a run on its own. 0 means no limit.
depth integer 1000 Maximum URLs to scan per site sitemap.
no_cache boolean false Ignore cached sitemaps and crawl fresh.
import_workers integer 2 Concurrent import workers, capped at 4.
precheck_duplicates boolean true Fetch existing Mealie recipes first and skip duplicates before import.
language_filter boolean true Skip recipes that do not match DREDGER_TARGET_LANGUAGE.
max_retry_attempts integer 3 Retry transient failures before marking a URL rejected. A page that makes Mealie time out on every try counts against this; connection errors and 502, 503 and 504 answers don’t.