cooklang / cookcli

Command line program which provides a suite of tools to create shopping lists and maintain recipes.
https://cooklang.org
MIT License
743 stars 33 forks source link

Possible to integrate with Recipe schema structured data? #52

Open shayaknyc opened 2 years ago

shayaknyc commented 2 years ago

I absolutely L-L-LOVE cooklang! Recently discovered it and just jumped in head-first. I did notice, however, that there already exists a Recipe schema for structured data: https://schema.org/Recipe

Wondering if it's possible to enhance the CLI to output a json-formatted structured data for inclusion on the web for enhanced SEO by google, and other search engine crawlers? Perhaps through including metadata fields that map to specific schema Properties like >> servings would map to recipeYield during output, and a validator can tell you what schema properties are missing for the output to be valid? Just thinking out loud.... as this would be a great way to bridge these two technologies.

Edit: I just noticed that cook recipe read recipe.cook --output-format json spits out json, would be great if there's an output format that will allow to map to the Recipe schema, like --output-format recipe-json or something like that.....

dubadub commented 2 years ago

I'm definitely for this feature and find use-case valid. At the moment there're other priorities and probably it will take some time before I can get to this...

shayaknyc commented 2 years ago

No rush! Thank you!