{"id":13838416,"url":"https://github.com/Zheoni/cooklang-chef","last_synced_at":"2025-07-10T21:32:48.103Z","repository":{"id":156963396,"uuid":"595880282","full_name":"Zheoni/cooklang-chef","owner":"Zheoni","description":"A CLI to manage cooklang recipes","archived":false,"fork":false,"pushed_at":"2024-07-17T15:12:11.000Z","size":1575,"stargazers_count":67,"open_issues_count":4,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-12T11:54:15.045Z","etag":null,"topics":["cli","cooking-recipes","cooklang","parser","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zheoni.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-01T01:50:31.000Z","updated_at":"2024-10-23T09:45:55.000Z","dependencies_parsed_at":"2024-06-12T19:00:06.845Z","dependency_job_id":"532f005c-7c8e-4ee8-bab0-f186fac96736","html_url":"https://github.com/Zheoni/cooklang-chef","commit_stats":null,"previous_names":["zheoni/cooklang-rs"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fcooklang-chef","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fcooklang-chef/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fcooklang-chef/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zheoni%2Fcooklang-chef/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zheoni","download_url":"https://codeload.github.com/Zheoni/cooklang-chef/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224354469,"owners_count":17297413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","cooking-recipes","cooklang","parser","rust"],"created_at":"2024-08-04T15:01:56.123Z","updated_at":"2025-07-10T21:32:48.097Z","avatar_url":"https://github.com/Zheoni.png","language":"Rust","funding_links":[],"categories":["Rust","For Developers"],"sub_categories":["CLI Tools"],"readme":"# cooklang-chef\n\nA CLI to manage [cooklang](https://cooklang.org/) recipes with extensions.\n\n\u003e The parser has been moved to [cooklang/cooklang-rs](https://github.com/cooklang/cooklang-rs)\n\n\u003e `0.10.x` will be the last version of `chef` published on `crates.io`.\n\n\u003e `0.15.x` will be the last versions of `cooklang-fs`, `cooklang-to-cooklang`\n\u003e `cooklang-to-human` and `cooklang-to-md` published on `crates.io`.\n\n## What is cooklang\nCooklang is a markup language for cooking recipes. An in depth explanation can\nbe found in [cooklang.org](https://cooklang.org/).\n\nAn example cooklang recipe:\n```cooklang\nIn a large #bowl mix @flour{450%g}, @yeast{2%tsp}, @salt{2%tsp} and\n@warm water{375%ml}.\n\nCover the dough and leave on counter for ~{2-3%hour}.\n\nSprinkle work surface with @\u0026flour{10%g} and shape the dough. Sprinkle the top\nwith some more @\u0026flour{5%g}.\n\nBake with a preheated #oven at 230ºC for ~{30%min}.\n```\n![](./images/bread3.png)\n\n## What is cooklang-chef\n`chef` is a CLI to manage, read and convert cooklang recipes.\n\nI wanted a couple more features that cooklang did not have, so I extended the\ncooklang syntax and semantics a bit.\n\n**All regular cooklang files parse as the same recipe**, the extensions\nare a superset of the original cooklang format. Also, the\n**extensions can be turned off**, so the parser can be used for regular cooklang\nif you don't like the extensions. All extensions except the multiline steps\nare enabled by default[^1].\n\n[^1]: This is done to maximize compatibility with other cooklang parsers.\n\nYou can see a detailed list of all extensions explained in [the parser repo](https://github.com/cooklang/cooklang-rs/blob/main/extensions.md).\n\nFull user documentation [here](./docs/README.md).\n\nYou can install `chef` with:\n```sh\ncargo install --git https://github.com/Zheoni/cooklang-chef/ --tag \"v0.10.0\" --locked\n```\n\nYou can also get a prebuilt binary from the github releases.\n\nAfter installing it, run:\n```sh\nchef config --setup\n```\n\nKey features:\n\n- **Web UI**. The [CLI](./docs/cli.md) comes with an embedded web UI.\n  - Scale and convert the quantities.\n  - Hot reload of recipes. Just edit the `.cook` file and save.\n  - Open the `.cook` file in a code editor.\n  \n  ![](./images/webui.png)\n\n- **Ingredient references**. You can now refer to ingredients you already used\n  before. I think the most important extension to the original cooklang. You can\n  read about using references in [this document](./docs/using_references.md).\n\n- **Good error reporting**. Error reports are a top priority.\n\n  This little recipe contain errors:\n  ```cooklang\n  \u003e\u003e servings: 3|6|8\n\n  Add @water{1%kg}, mix, and ~{5 min} later add more @\u0026water{1|2%L}.\n  ```\n  ![](./images/error_report.png)\n\n- **Units**. An ingredient quantity means nothing without a unit. This is why\n  the units are parsed and checked. With units come:\n  - Unit conversion. You can read your recipe in your prefered unit system.\n  - Configurable units. You can add, remove and rename units.\n\n## Crates\n\n- [Cooklang parser](https://github.com/cooklang/cooklang-rs) [![Crates.io](https://img.shields.io/crates/v/cooklang)](https://crates.io/crates/cooklang) [![docs.rs](https://img.shields.io/docsrs/cooklang)](https://docs.rs/cooklang/)\n- The CLI [![Crates.io](https://img.shields.io/crates/v/cooklang-chef)](https://crates.io/crates/cooklang-chef)\n- [cooklang-fs](./cooklang-fs). [![Crates.io](https://img.shields.io/crates/v/cooklang-fs)](https://crates.io/crates/cooklang-fs)\n  Utilities to deal with referencing recipe, images and data related to recipes that are in other files.\n- [cooklang-to-cooklang](./cooklang-to-cooklang). [![Crates.io](https://img.shields.io/crates/v/cooklang-to-cooklang)](https://crates.io/crates/cooklang-to-cooklang) Recipe back to Cooklang.\n- [cooklang-to-human](./cooklang-to-human). [![Crates.io](https://img.shields.io/crates/v/cooklang-to-human)](https://crates.io/crates/cooklang-to-human) Write a recipe in a human friendly way.\n- [cooklang-to-md](./cooklang-to-md). [![Crates.io](https://img.shields.io/crates/v/cooklang-to-md)](https://crates.io/crates/cooklang-to-md) Recipe into Markdown.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZheoni%2Fcooklang-chef","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FZheoni%2Fcooklang-chef","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FZheoni%2Fcooklang-chef/lists"}