'(functional software)

Sending Mela Recipes to Bring!

I keep my recipes in Mela and my shopping list in Bring!. The two don't talk to each other, so I wrote a tool to ingest .melarecipe files and create a temporary web page which is then sent to Bring to parse.

Implementation

Bring! has no public API except the bringrecipes/deeplink endpoint which fetches a public URL and parses schema.org Recipe markup, then deep-links into the Add Ingredients view.

mela2bring is a HTTP bridge that handles both steps:

Mela  ──Share──▶  POST /upload ──▶ mela2bring (in-memory, TTL)
                                       │  returns bring_url
iOS opens bring_url ──▶ Bring! server fetches GET /r/{id} (schema.org)

                                       ▼  307
                          Bring! app: "Add ingredients from recipe"

You POST a .melarecipe file to /upload, it parses the file, holds the recipe in memory, serves a schema.org page, and returns the Bring! deeplink to open.

On iOS, a Shortcut receives share-sheet input from Mela's share menu.

The source is on Codeberg: mvg/mela-rs, the bridge under mela2bring/.