> For the complete documentation index, see [llms.txt](https://rivet.itg.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rivet.itg.sh/contracts/helpers.md).

# Helpers

## `load(contractPath)`

Loads a contract file referencing any [configured](/contracts/configuration.md) `aliases`.

## `generate(contractPath | schemaObject)` (async)

Generates mock data from a contract, asynchronously.

## `generateSync(contractPath | schemaObject)`

Generates mock data from a contract.
