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 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.

Packages can contain single-file functions or multi-file functions.

Packages can contain any number of functions. A project can contain any number of packages. This lets you organize your project in the way that makes the most sense to you.