# API

In order for Standard Library development to be as quick, efficient, and powerful as possible, requiring each file from the depths of the source was not going to be pratical. For this reason, an API has been created, which can be accessed by using the following template:

```javascript
export default function(cheddar) {
    // API is now exposed as `cheddar`
}
```

For more information, reference the [Getting Started](https://github.com/cheddar/docs/tree/48c6d425cd54768a27ab1dc5d3df0eef0c8cee40/Developing/API/gs.md) article.

## API Contents

### Primitives

* `string`
* `number`
* `array`
* `bool`
* `func`
* `nil`

### Classes

* `variable`
* `class`
* `scope`

### Symbols

* `error`

### Helper Functions

* `init`
* `make`
* `var`
* `prop`
* `namespace`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cheddar.vihan.org/docs/developing/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
