Cooklang – Recipe Markup Language

Recipes

Cooklang and the tools we’ve built to use it, you can:

  • simplify your personal recipe management;
  • streamline your shopping routine;
  • make cooking more fun.

Here’s how the Cooklang ecosystem makes that happen:

  • All recipes are human-readable text files.
  • Everything is a file. No databases. And you have complete control over your information.
  • All the tools are simple, focused, and efficient; the UNIX way.

Getting Started

Create a recipe file, where each line is a step in the recipe. Tag your ingredients with @ and {}, then save your file. For a complete reference on Cooklang, see the language specification page.

Install a recipe viewer. We support a few tools for viewing Cooklang recipes:

Cook something! Open a recipe on your viewer of choice, whip out the ingredients, and make something tasty.

CookCLI

The Cook CLI command line program provides a suite of tools to create shopping lists and maintain recipes. We’ve built it to be simple and useful for automating your cooking and shopping routine with existing UNIX command line and scripting tools. It can also function as a webserver for your recipes, making them browsable on any device with a web browser.

Add sample recipes:

$ cook seed
$ tree .
.
├── Baked Potato Soup.cook
...
├── Neapolitan Pizza.cook
...
├── README.md
├── Root Vegetable Tray Bake.cook
...
└── config
    └── aisle.conf

3 directories, 15 files

Check “Neapolitan Pizza”:

$ cook recipe read "Neapolitan Pizza.cook"
Metadata:
    servings: 6

Ingredients:
    chopped tomato                3 cans
    dried oregano                 3 tbsp
    fresh basil                   18 leaves
    fresh yeast                   1.6 g
    garlic                        3 cloves
    mozzarella                    3 packs
    parma ham                     3 packs
    salt                          25 g
    tipo zero flour               820 g
    water                         530 ml

Steps:
     1. Make 6 pizza balls using tipo zero flour, water, salt and fresh yeast. Put in a fridge for 2 days.
        [fresh yeast: 1.6 g; salt: 25 g; tipo zero flour: 820 g; water: 530 ml]
     2. Set oven to max temperature and heat pizza stone for about 40 minutes.
        [–]
     3. Make some tomato sauce with chopped tomato and garlic and dried oregano. Put on a pan and leave for 15 minutes occasionally stirring.
        [chopped tomato: 3 cans; dried oregano: 3 tbsp; garlic: 3 cloves]
     4. Make pizzas putting some tomato sauce with spoon on top of flattened dough. Add fresh basil, parma ham and mozzarella.
        [fresh basil: 18 leaves; mozzarella: 3 packs; parma ham: 3 packs]
     5. Put in an oven for 4 minutes.
        [–]

Create a shopping list:

$ cook shopping-list 
> Neapolitan Pizza.cook 
> Root Vegetable Tray Bake.cook
BREADS AND BAKED GOODS
    breadcrumbs                   150 g

DRIED HERBS AND SPICES
    dried oregano                 3 tbsp
    dried sage                    1 tsp
    pepper                        1 pinch
    salt                          25 g, 2 pinches

FRUIT AND VEG
    beetroots                     300 g
    carrots                       300 g
    celeriac                      300 g
    fresh basil                   18 leaves
    garlic                        3 cloves
    lemon                         1 item
    onion                         1 large
    red onion                     2 items
    thyme                         2 springs

MEAT AND SEAFOOD
    parma ham                     3 packs

MILK AND DAIRY
    butter                        15 g
    egg                           1 item
    mozzarella                    3 packs

OILS AND DRESSINGS
    Dijon mustard                 1 tsp
    Marmite                       1 tsp
    cider                         150 ml
    olive oil                     3 tbsp

OTHER (add new items into aisle.conf)
    tipo zero flour               820 g

PACKAGED GOODS, PASTA AND SAUCES
    vegetable stock               150 ml
    water                         530 ml

TINNED GOODS AND BAKING
    cannellini beans              400 g
    chopped tomato                3 cans
    fresh yeast                   1.6 g
    redcurrant jelly              1 tsp

Run a web-server:

$ cook server
Started server on http://127.0.0.1:9080, serving cook files from /Users/pochho/recipes.

server

Here’s a quick demo to see its in action:

Mobile app

We created a mobile app (iOS only at the moment, subscribe for Android beta) to assist you while cooking, shopping, and meal planning. Simply connect the app to your recipe storage, open a recipe, and start cooking.

Recipes
Recipe
Shopping list

Read More
Randy Guillemette

Latest

AUSTRAC and SkyCity Adelaide Agree to $67M Penalty Proposal

Gaming and entertainment company that provides sports, amusement, and recreation services, SkyCity Adelaide Pty Ltd (SkyCity), and the Australian Transaction Reports and Analysis Centre (AUSTRAC) have filed joint submissions with the Federal Court of Australia.  Their proposed AU$67 million penalty mentioned in the joint submissions was deemed appropriate in the context of the casino’s contravention of

Their first baby came with medical debt: These parents won’t have another

by Noam N. Levey, KFF Health News Credit: CC0 Public Domain Heather Crivilare was a month from her due date when she was rushed to an operating room for an emergency cesarean section. The first-time mother, a high school teacher in rural Illinois, had developed high blood pressure, a sometimes life-threatening condition in pregnancy that

Heart attack symptoms: Know what’s a medical emergency

Heart attack symptoms: Know what's a medical emergency Whether the symptoms seem obvious or are more subtle, take them seriously and get immediate medical care. By Mayo Clinic Staff A heart attack usually causes chest pain for more than 15 minutes. The chest pain may be mild or severe. Some people don't have any chest

Ruger and Bnxn Drop Tracklist for Collaborative EP ‘RnB’

Music Nigerian music fans are in for a...

Newsletter

Don't miss

AUSTRAC and SkyCity Adelaide Agree to $67M Penalty Proposal

Gaming and entertainment company that provides sports, amusement, and recreation services, SkyCity Adelaide Pty Ltd (SkyCity), and the Australian Transaction Reports and Analysis Centre (AUSTRAC) have filed joint submissions with the Federal Court of Australia.  Their proposed AU$67 million penalty mentioned in the joint submissions was deemed appropriate in the context of the casino’s contravention of

Their first baby came with medical debt: These parents won’t have another

by Noam N. Levey, KFF Health News Credit: CC0 Public Domain Heather Crivilare was a month from her due date when she was rushed to an operating room for an emergency cesarean section. The first-time mother, a high school teacher in rural Illinois, had developed high blood pressure, a sometimes life-threatening condition in pregnancy that

Heart attack symptoms: Know what’s a medical emergency

Heart attack symptoms: Know what's a medical emergency Whether the symptoms seem obvious or are more subtle, take them seriously and get immediate medical care. By Mayo Clinic Staff A heart attack usually causes chest pain for more than 15 minutes. The chest pain may be mild or severe. Some people don't have any chest

Ruger and Bnxn Drop Tracklist for Collaborative EP ‘RnB’

Music Nigerian music fans are in for a...

10 Burna Boy Songs We Will Never Forget

MusicBurna Boy, a Nigerian singer and songwriter, burst...

News24 Business | For R350 a month, residents of informal settlements can use a waterless toilet

Qaqamba Matundu Share your Subscriber Article You have 5 articles to share every month. Send this story to a friend! Loading, please wait... Subscribers can listen to this article A waterless toilet provides clean and safe sanitation for informal residents (Ntando Mbhele/ Supplied). A waterless flushing toilet, to help communities that lack water and sanitation

Want to succeed in business? Find a problem to solve | Anthony Tan and Amane Dannouni

Update requirements Looking for ted.com? v95+ v58+ v13+ v96+ v82+ Looks like your browser is out of date For questions contact us at support@ted.com

News24 Business | Garth Theunissen | SENS needs fixing, but the JSE disagrees

Subscribers can listen to this article The JSE building in Sandton. (Fivepointsix/Getty) While the JSE has made efforts to simplify its listing requirements, little evidence of this can be seen in many an indecipherable regulatory announcement. Given the plethora of scandals involving JSE-listed companies in recent years, perhaps it's time to consider some plainer language