Functions Glossary

Functions are blocks of code that run on demand without the need to manage any infrastructure. Develop on your local machine, test your code from the command line (using doctl), then deploy to App Platform — no servers required. Learn more about functions.


A function is a block of code that encapsulates logic to respond to an event or perform a task.
A namespace is a a collection of resources containing one or more functions which is hosted on DigitalOcean. After you build a project locally or on GitHub, you deploy it to a namespace to serve its functions from the cloud.
A package is a collection of functions. Packages let you organize functions within a project and the organization of packages determines the URL where functions are served.
A project is a collection of resources, including a configuration file and one or more packages, which is stored on your local computer or in a GitHub repository. You can deploy a project into a namespace on DigitalOcean to make its functions available in the cloud.