> ## Documentation Index
> Fetch the complete documentation index at: https://dapplets.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Document App

> A simple example of configuring an app for document handling.

```javascript theme={null}
{
  "metadata": {
    "name": "Document App Example"
  },
  "controller": "${REPL_ACCOUNT}/widget/DocumentExample.Main",
  "$targets": [
    {
      "namespace": "${REPL_ACCOUNT}/parser/twitter",
      "contextType": "root"
    }
  ],
  "$permissions": {
    "documents": true
  }
}
```

Explanation

* `controller:` The main component that controls the app’s functionality.

* `$targets:` Specifies that the app will be injected into the root of Twitter.

* `$permissions:` Grants permission to work with documents.
