# LYGIA — card for AI agents

Large multi-language shader function library (noise, SDFs, color, lighting, filters) for GLSL, HLSL, WGSL and Metal.

Category: Video references and motion backgrounds (also: Web animation examples and effects) · maker Patricio Gonzalez Vivo · checked 2026-11-05 · style: abstract, geometric

## Price
- Price: Free tier
- Free tier: Free for non-commercial use; commercial use needs the Patron license after a 30-day trial.

## License
Prosperity Public License 3.0.0 + Patron License — https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md

- commercial: **conditions** (Commercial use with conditions)
  > This license allows you to use and share this software for noncommercial purposes for free and to try this software for commercial purposes for thirty days.
  (https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md)
- attribution: **no** (No credit needed)
  > Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
  (https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md)
- in app: **conditions** (Ship inside your app with conditions)
  > Limit your use of this software for commercial purposes to a thirty-day trial period.
  (https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md)
- redistribute: **conditions** (Pass the files on to your users only with conditions)
  > Make sure everyone who gets a copy of any part of this software from you, with or without changes, also gets the text of this license and the contributor and source code lines above.
  (https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md)

## Rules to follow
- Commercial sites/apps need the paid Patron license after 30 days.
- Ship the license text with any copied functions.

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm install lygia (pin version) or #include functions from the repo; for commercial use the user gets a Patron license first. (sign-in: none)
- Formats: glsl, hlsl, wgsl
- Not allowed: Non-commercial unless Patron license

## How to connect
- Package (npm/PyPI)
- npm: `npm install lygia`
- Repository: https://github.com/patriciogonzalezvivo/lygia
- Website: https://lygia.xyz

## Notes
lygia.xyz did not respond to curl on the check date; terms from the repo LICENSE.md. npm declares 'Prosperity License & Patron License'.

## Numbers (AgentGid data)
- Gid Score: 10
- GitHub stars: 3,494
- Downloads last week: 983

## Lines to paste into your prompt or AGENTS.md

```
- LYGIA (Video references and motion backgrounds, Web animation examples and effects). Large multi-language shader function library (noise, SDFs, color, lighting, filters) for GLSL, HLSL, WGSL and Metal. Price: free tier; commercial use with conditions; no credit needed; ship inside your app with conditions; pass the files on to your users only with conditions. Style: abstract, geometric.
  Connect: npm lygia.
  Get files: npm install lygia (pin version) or #include functions from the repo; for commercial use the user gets a Patron license first (glsl, hlsl, wgsl).
  Not allowed: Non-commercial unless Patron license
  Rule: Commercial sites/apps need the paid Patron license after 30 days.
  Rule: Ship the license text with any copied functions.
  License: https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md (checked 2026-11-05; details: https://agentgid.com/assets/lygia/)
```

## Links
- AgentGid page: https://agentgid.com/assets/lygia/
- Is it free for commercial use? https://agentgid.com/assets/lygia/commercial-use/
- Source: https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/main/LICENSE.md
- Source: https://registry.npmjs.org/lygia/latest

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
