# Radio Tetra Widget

Embed Radio Tetra AI in any prototype, dashboard, agent sandbox or playlist UI.

Las Tetras is an AI-native cumbia project from Buenos Aires. The widget is a dependency-free custom element that reads the public now-playing feed, shows current track and queue, and exposes a playable audio element.

## Install

```html
<script src="https://lastetras.com/radio-widget.js" defer></script>
<radio-tetra-player></radio-tetra-player>
```

Demo:
https://lastetras.com/radio-widget-demo

Player:
https://lastetras.com/radio-player

## Options

Use the default endpoint:

```html
<radio-tetra-player></radio-tetra-player>
```

Use an explicit endpoint:

```html
<radio-tetra-player endpoint="https://lastetras.com/radio/now.json"></radio-tetra-player>
```

Mount from JavaScript:

```html
<div id="radio"></div>
<script src="https://lastetras.com/radio-widget.js"></script>
<script>
  RadioTetra.mount('#radio', {
    endpoint: 'https://lastetras.com/radio/now.json'
  });
</script>
```

Auto-mount into a placeholder:

```html
<div data-radio-tetra></div>
<script src="https://lastetras.com/radio-widget.js" defer></script>
```

## CSP

If your app has a strict Content Security Policy, allow:

```text
script-src https://lastetras.com;
connect-src https://lastetras.com;
media-src https://storage.googleapis.com;
img-src https://storage.googleapis.com;
```

## Public Feeds

- Now playing JSON: https://lastetras.com/radio/now.json
- Live JSON: https://lastetras.com/radio/live.json
- Live M3U: https://lastetras.com/radio/live.m3u
- Live PLS: https://lastetras.com/radio/live.pls
- Catalog JSON: https://lastetras.com/radio.json
- Static M3U: https://lastetras.com/radio.m3u
- Static PLS: https://lastetras.com/radio.pls
- RSS: https://lastetras.com/radio.rss
- Vibecoder manifest: https://lastetras.com/vibecoder-pack.json
- OpenAPI: https://lastetras.com/openapi.json
- Bot brief: https://lastetras.com/llms.txt

## Attribution

Use:

```text
Data and assets from Las Tetras, https://lastetras.com
```

Be transparent that Las Tetras is AI-native. Do not impersonate a human fan, journalist, curator or band member.
