Hey Fedi, do you know if there is a federated (perhaps even #ActivityPub-powered) cooking recipe hosting service? If not, let's 👏 make 👏 this 👏 happen!
I hate modern recipe websites. All of them are full with ads and tracking. The leading recipe hosting in my country loads over 30 different trackers, and that's excluding the ads!
@kytta this has been suggested before (but I can't find that toot).
There I also mentioned that a more generic solution might handle that use case.. and a gazillion others: A federated PubSub server app, where publishers send linked data to according to a Profile (in this case a Recipe). They might be vetted on the server by someone, and then they federate to other instances interested in that information. Subscribers, based on specific metadata, receive the content to use for whatever purpose.
@saenzjj @kytta if it's a #recipe, it should probably have a title, some free-form text, an area to list ingredients and tools, an area for step by step instructions, and support for pictures, yeah? So long as it's all markdown or html, that should fit in an #ActivityPub post just fine.
Maybe use multiple CW in a single post and rename them to hide some of the sections?
Every field in your recipe is machine-readable, and can be used in powerful search and filter UI's.
If you then also used a well-known vocabulary for recipes, other apps and services can use the data right away.
I never use Google Search normally, but they are doing that too..
@Crazypedia @kytta Ingredients need a full-on #database, as there is a many-many relation between ingredients and recipes. Also ingredients and nutrients (see USDA Food Data Central database). Add to that a table mapping FDC (above) ID's to bar codes (UPC or EAN) and you're talking some informational empowerment. #pubwan
@n8chz @kytta PS I work supporting a food industry business, so I'm a little familiar with USDA in being a regulatory body and having specific and strict legal objectives in the way they wrote things. It's a little burdensome for a casual home user. That blog post is 100% right about the amount of data mapping and entry 😅 defiantly something that should maybe have a matching algorithm for suggesting ingredient entries
@Crazypedia @kytta If the data live in a database, scaling recipes and converting systems of measurement become trivial. If database incorporates food composition database, reporting nutrient information becomes super-automated (but this is of course a very inexact science, including on-label). If community has resources to keep tabs on prices by time/place (a big #pubwan if), cost per serving is an automatable feature.
@Crazypedia @kytta In a federated post? That's an added layer of challenge. The databases I envision seem like they want to be somewhat centralized, for a single source of truth. In Mastodon (from what I can see) hashtags are searchable while toot text in general is not, so as suggested in prior toot, ingredients as hashtags is a good place to start. As far as I know, Mastodon only supports single-hashtag searches. If there's a fediverse way to do multi-hashtag searches, that would help a lot.
@n8chz @Crazypedia @kytta it should support the full Google recipe api so modern recipe apps (I use paprika) can scrape them. Totally agree recipe sites now are 99% anecdotal storytelling and advertising and 1% recipe https://developers.google.com/search/docs/advanced/structured-data/recipe
@A8bit @Crazypedia @kytta Hmm this format seems to hardcode a lot of things but JSON descriptions of this type could be generated ad hoc. For using the JSON for searches you'd want a way for one particular configuration (for example, "multiple") of each recipe to be "canonical."
"2 cups of flour",
My instincts are to have "2", "cups", and "flour" as separate fields, so I'd rather build output for Google API from internal structure, not other way around.
My plan is to develop a file format for recipe sharing; one that, when paired with correct tools, would support portions calculation and unit conversion. The Google's API is only a bunch of tags for the HTML page, so that Google just knows which fields mean what
@kytta Not ActivityPub-powered, but @noeldemartin is working on something built on Solid: https://noeldemartin.com/tasks/implementing-a-recipes-manager-using-solid
@VincentTunru @kytta Hey I'm curious about these use-cases. Why would you want a recipes app powered by Activity Pub? I've seen other people mentioning this type of thing before, but AFAIK Activity Pub is intended for social network-type apps, and a recipes manager doesn't fit that description. Is it in order to add comments to recipes and such? Or if you want to share the recipes, would posting a toot with a link to the recipe be enough?
@noeldemartin @VincentTunru the idea comes partly from Funkwhale. I want a hybrid solution, both a private cookbook one can keep for themselves, but also with a social element. Likes and comments are thus nice to have.
It doesn't have to be ActivityPub per se, but I really would want it to be federated
> AFAIK Activity Pub is intended for social network-type apps, and a recipes manager doesn't fit that description
I'm curious about this observation. Isn't most online collaborative interaction social in nature? And the exchange of recipes in themed communities, groups of friends, discuss, improve, review, share, a real-life social experience to model?
Wonder if your notion on the use case of ActivityPub is colored by well-established platforms we now have?
I did know about Funkwhale, but I don't understand how it's using ActivityPub either so I guess I'll take a look. I do like the idea of enabling recipe variants, modifications, and such.
@ccamara @humanetech @kytta @VincentTunru The only question that comes to mind is that all of this needs to happen in the server-side, right? At the moment, I am building my apps completely in the client-side, so I'm not sure how I'd manage to do anything with ActivityPub under that constraint.
In any case, I don't think I'll look into this anytime soon, because I want to focus on finishing the first version. But thanks for the ideas :).
@noeldemartin @VincentTunru @kytta An idea would be to have an activity type or flag to indicate that a post contains a recipe. On the recieving side it can then be parsed and added to your recipe book. You might edit it and repost. If it has the same name then it will overwrite the recipe in your followers books.
Things like this would be more interesting because they are not just a silo of recipies, and spread in a more anarcho manner.
@kytta yes to all of this!
I regularly cook "from" my phone and most recipe sites OOM Android Chrome on my few-years-old mid-range phone from all the bells, whistles and adds.
Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.