API
The forms API is packaged as a function that you call to render a form on top of a DOM element. The function takes in the target DOM element and a configuration block, works out the schema, options and layout information that is needed, and then renders the form.
Start here: Usage, then Views, then Layouts.