A reasonably self-contained module of code that performs a specific function on a website, such as sending broadcast emails, and which can be easily re-used on other websites.