> For the complete documentation index, see [llms.txt](https://alix-lahuec.gitbook.io/zotero-roam/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alix-lahuec.gitbook.io/zotero-roam/v0.6/getting-started/install.md).

# 1.2 Installation in {{roam/js}}

You can install the extension by adding a single `{{[[roam/js]]}}` block to your graph :

```javascript
// To install the extension, simply add the code below :
var s = document.createElement("script");
s.src = "https://cdn.jsdelivr.net/npm/@alixlahuec/zotero-roam@0.6";
s.id = "zotero-roam";
s.type = "text/javascript";
document.getElementsByTagName("body")[0].appendChild(s);
```

Next, you'll need to specify a few settings to get the extension running ; that's where your **API key** and **user ID** (from Step 1.1) will come into play !

{% hint style="info" %}
The code above loads the extension's scripts into your Roam graph, but it will not do anything unless you add some settings. Keep going to [1.3 Basic Setup](/zotero-roam/v0.6/getting-started/api.md) for that!
{% endhint %}

![Make sure to indent the extension's code under the {{\[\[roam/js\]\]}} block.](/files/-Ml0oZ8cqcrq9wmKvfyD)
