In Foldit, a Recipe is the alternative to hand folding.
Recipes, which are also known as scripts, macros, or apps, can do most of the things you can do "by hand" in the Foldit user interface.
Recipes are good at several things that are difficult for humans:
- repetition - many recipes run until you stop them, constantly trying different things
- randomness - recipes can use a random number generator to change up how they do things
- scorekeeping - recipes can keep track of the best score and restore it at the end
Many recipes are available under Recipes on the fold.it website. Recipes shown on the website can be added to players' cookbooks, and then used when playing Foldit.
Recipes are written in the Lua programming language.
The wiki covers Lua programming in detail, including these tutorials:
- Lua Scripting Tutorial (Beginner 1) (browsing, loading and running scripts, open output window)
- Lua Scripting Tutorial (Beginner 2) (Lua commands)
- Lua Scripting Tutorial (Beginner 3) (using game commands)
- Lua Scripting Tutorial (Intermediate) (similar to beginner tutorials, but more compact)
- Lua Scripting Tutorial (Advanced) (using functions and tables)
The complete list of over 150 Foldit commands, better known as functions, which can be used in recipes is here:
The Lua Scripting page has more Lua references.