{"schemaVersion":1,"id":"lygia","name":"Lygia","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/lygia/","officialUrl":"https://lygia.xyz","isCatalog":false,"description":"Modular GLSL, HLSL, and WGSL functions for color, lighting, noise, geometry, and image processing.","tasks":["Reusable shader functions","Generative graphics and image processing"],"categoryIds":["graphics"],"subcategoryIds":["graphics.shaders"],"tags":["GLSL","HLSL","WGSL","shaders"],"aliases":["patriciogonzalezvivo/lygia"],"platforms":[],"stack":[],"compatibility":null,"pricing":"freemium","freeUsage":"Noncommercial shaders and commercial evaluation within Prosperity’s cumulative 30-day period.","paidUsage":"Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.","license":"Prosperity Public License 3.0.0 / commercial Patron License. Free noncommercial use; the commercial trial is limited to 30 days. Ongoing commercial use requires a license through Patron/sponsorship or a separate agreement.","selectionGuide":{"purpose":"Reusable shader functions","chooseWhen":["Reusable shader functions","Generative graphics and image processing"],"considerInstead":[],"requirements":["A local shader pipeline requires an include resolver; prune.py lets you retain files for the selected language."],"limitations":["Costs and limits of free use: Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.","Terms of use: Prosperity Public License 3.0.0 / commercial Patron License. Free noncommercial use; the commercial trial is limited to 30 days. Ongoing commercial use requires a license through Patron/sponsorship or a separate agreement.","The thirty-day company trial is not a permanent free commercial right; exact Patron pricing and terms have not been established."],"faq":[{"question":"What can you use for free in Lygia?","answer":"Noncommercial shaders and commercial evaluation within Prosperity’s cumulative 30-day period."},{"question":"What additional costs might arise with Lygia?","answer":"Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately."},{"question":"What terms of use matter for Lygia?","answer":"Prosperity Public License 3.0.0 / commercial Patron License. Free noncommercial use; the commercial trial is limited to 30 days. Ongoing commercial use requires a license through Patron/sponsorship or a separate agreement."},{"question":"How do you get started with Lygia?","answer":"Check the project's stack and version against the current Lygia documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license."},{"question":"How does local LYGIA use differ from the server resolver, and how is the trial counted?","answer":"Local shaders must resolve #include dependencies; the library can be embedded in the project, used through an npm bundle, or added with a bundler plugin. The server resolver resolves dependencies online. Prosperity 3.0.0 permits noncommercial use and a 30-day commercial trial: a company has one trial for its entire staff rather than a separate trial for every developer."}],"related":[],"sources":["https://lygia.xyz","https://github.com/patriciogonzalezvivo/lygia","https://github.com/patriciogonzalezvivo/lygia/blob/main/README.md","https://github.com/patriciogonzalezvivo/lygia/blob/main/LICENSE.md","https://lygia.xyz/license","https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/HEAD/README.md","https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/HEAD/LICENSE.md"]},"selectionCheckedAt":null,"applicationGuide":{"goal":"Reusable shader functions with Lygia.","inputs":["A working GLSL; HLSL; WGSL project and a specific use case: reusable shader functions.","A design, interface states, or dataset; target screens and accessibility requirements."],"steps":["Check the project's stack and version against the current Lygia documentation; add the package or the required source component.","Implement the selected workflow with the supplied data, adapting styles and states to the project.","Check the result in the target environment, remove sample data, and retain the notices required by the license."],"checks":["The example works in the chosen tech stack, including target dimensions and input errors.","Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met."]},"sources":["https://lygia.xyz","https://github.com/patriciogonzalezvivo/lygia","https://github.com/patriciogonzalezvivo/lygia/blob/main/README.md","https://github.com/patriciogonzalezvivo/lygia/blob/main/LICENSE.md","https://lygia.xyz/license","https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/HEAD/README.md","https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/HEAD/LICENSE.md"],"checkedAt":"2026-10-06","reviewScope":"Purpose, published primary source code/documentation, and license terms were reviewed. An example was not run in a local project.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Development library / tool","kind":"library","pricingNote":"Noncommercial shaders and commercial evaluation within Prosperity’s cumulative 30-day period. Continued commercial use requires a Patron/sponsorship or other commercial license; GPU and application hosting are billed separately.","notes":null,"labeledSources":[{"url":"https://lygia.xyz","label":"Official website"},{"url":"https://github.com/patriciogonzalezvivo/lygia","label":"Source code"},{"url":"https://github.com/patriciogonzalezvivo/lygia/blob/main/README.md","label":"Documentation and use"},{"url":"https://github.com/patriciogonzalezvivo/lygia/blob/main/LICENSE.md","label":"License"},{"url":"https://lygia.xyz/license","label":"Commercial Patron License"},{"url":"https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/HEAD/README.md","label":"Official source"},{"url":"https://raw.githubusercontent.com/patriciogonzalezvivo/lygia/HEAD/LICENSE.md","label":"Official source"}],"licenseGuides":[{"id":"custom","title":"Custom license — this product's terms apply","scope":null,"summary":"The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.","url":null}],"entryIds":[],"composition":null}