> For the complete documentation index, see [llms.txt](https://kykurniawan.gitbook.io/tagly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kykurniawan.gitbook.io/tagly/installation.md).

# Installation

You can install Tagly by downloading it directly from the [repository here](https://github.com/kykurniawan/tagly). After you downloaded the file, extract it and then include the tagly.min.js file on your web page. Alternatively, if you don't want to download, you can use a CDN to include Tagly.

## Downloading From Repository

Download code from Tagly repository, extract the archive file then include the tagly.min.js file

```html
<script src="/path/to/tagly.min.js"></script>
<script>
    const element = document.getElementById('tagly')
    new Tagly(element)
</script>
```

## Embed With CDN

When using CDN, you don't required to download file manually, just copy and paste to your web page.

#### UNPKG CDN

```url
https://unpkg.com/@kykurniawan/tagly@latest/dist/tagly.min.js
```

#### jsDelivr CDN

```url
https://cdn.jsdelivr.net/npm/@kykurniawan/tagly@latest/dist/tagly.min.js
```

#### Example

```html
<script src="https://cdn.jsdelivr.net/npm/@kykurniawan/tagly@latest/dist/tagly.min.js"></script>
<script>
    const element = document.getElementById('tagly')
    new Tagly(element)
</script>
```
