# MovartAI
Minimal Elixir helpers for building tracked `movart.ai` links and basic
integration utilities.
This package is intentionally small but functional: it gives Elixir projects a
simple way to generate canonical landing URLs, UTM-tagged campaign links,
referral links, embed links, and verify webhook signatures for Movart AI.
Hex package page goal:
- show a clean package description
- expose `movart.ai` in the Hex `Links` section
- keep the package compliant by shipping real functionality
## Installation
Add `movart_ai` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:movart_ai, "~> 0.1.0"}
]
end
```
## Usage
```elixir
iex> MovartAI.website_url()
"https://movart.ai"
iex> MovartAI.campaign_url("/pricing", source: "hex", medium: "package", campaign: "launch")
"https://movart.ai/pricing?utm_campaign=launch&utm_medium=package&utm_source=hex"
iex> MovartAI.referral_url("creator-42")
"https://movart.ai?ref=creator-42"
iex> MovartAI.generate_share_url("/gallery", ref: "creator-42", source: "hex")
"https://movart.ai/gallery?ref=creator-42&utm_source=hex"
iex> MovartAI.embed_url("demo-video", autoplay: true)
"https://movart.ai/embed?asset=demo-video&autoplay=1"
```
Webhook example:
```elixir
payload = ~s({"event":"render.completed"})
signature = MovartAI.sign_webhook(payload, "topsecret")
MovartAI.verify_webhook_signature(payload, signature, "topsecret")
# true
```
## Publishing
1. Install Elixir and Hex.
2. Run `mix hex.user register` if you do not already have a Hex account.
3. Verify package metadata with `mix hex.build`.
4. Publish with `mix hex.publish`.
Convenience script:
```bash
./publish.sh
```
## Package Metadata
- Package name: `movart_ai`
- Hex links:
- `https://movart.ai/`
- `https://github.com/movart-ai/movart_ai`
## License
MIT