{"schemaVersion":1,"id":"github-com-svgdotjs-svg-js","name":"SVG.js","locale":"en","canonicalUrl":"https://base.akulich.dev/en/library/github-com-svgdotjs-svg-js/","officialUrl":"https://github.com/svgdotjs/svg.js","isCatalog":false,"description":"A small, dependency-free library for building and animating SVG. Useful for vector diagrams, logos, and custom graphics components that Codex can describe in ordinary JavaScript.","tasks":["An animated logo","An interactive SVG diagram","A vector generator","Programmatic work with paths and shapes"],"categoryIds":["graphics","motion"],"subcategoryIds":["graphics.svg","motion.vector"],"tags":["SVG.js","JavaScript","SVG","Codex"],"aliases":[],"platforms":[],"stack":["JavaScript","SVG"],"compatibility":null,"pricing":"free","freeUsage":"The open-source library is free.","paidUsage":null,"license":"MIT; commercial use is permitted when the license notice is retained.","selectionGuide":{"purpose":"An animated logo","chooseWhen":["An animated logo","An interactive SVG diagram","A vector generator"],"considerInstead":[],"requirements":["Add the @svgdotjs/svg.js package and an SVG element to the application; use documentation for the major version you are running."],"limitations":["Access terms: The open-source library is free. SVG illustrations, logos, and other external materials retain their own licenses.","Terms of use: MIT; commercial use is permitted when the license notice is retained.","The library focuses on SVG and does not replace a WebGL engine or video renderer.","An old benchmark on a particular computer does not guarantee a speed advantage for every scene and device."],"faq":[{"question":"What can you use for free in SVG.js?","answer":"The open-source library is free."},{"question":"What are the access terms for SVG.js?","answer":"The open-source library is free. SVG illustrations, logos, and other external materials retain their own licenses."},{"question":"What terms of use matter for SVG.js?","answer":"MIT; commercial use is permitted when the license notice is retained."},{"question":"Which environment can you use SVG.js in?","answer":"Tech stack: JavaScript, SVG."},{"question":"How do you get started with SVG.js?","answer":"For the task “An animated logo”: first build a static version that makes the content and action available without animation. Add a motion sequence for the chosen use case; set the duration and easing to suit the action. Test restarting, interrupting, and leaving the page; clean up the effect when the component finishes its work."},{"question":"What should you consider when choosing SVG.js?","answer":"Vanilla JavaScript/TypeScript, npm or CDN; React is optional."},{"question":"Which SVG capabilities can SVG.js control?","answer":"The dependency-free library creates and modifies SVG shapes, groups, text paths, gradients/patterns, masks/clipping, and events. The Animation API controls size, position, transformations, and color. The move/size/center API is shared by different shapes; plugins and extensions add to the basic feature set."}],"related":[],"sources":["https://github.com/svgdotjs/svg.js","https://svgjs.dev/","https://raw.githubusercontent.com/svgdotjs/svg.js/master/LICENSE.txt","https://raw.githubusercontent.com/svgdotjs/svg.js/master/README.md","https://svgjs.dev/docs/3.0/"]},"selectionCheckedAt":null,"applicationGuide":{"inputs":["One scene or interaction: its initial state, trigger, and final state.","The text, SVG, or page elements to animate, and the intended rhythm.","From the tech stack mentioned on this page, choose an option that suits your project: React, JavaScript, TypeScript, WebGL; check version compatibility in the documentation."],"steps":["For the task “An animated logo”: first build a static version that makes the content and action available without animation.","Add a motion sequence for the chosen use case; set the duration and easing to suit the action.","Test restarting, interrupting, and leaving the page; clean up the effect when the component finishes its work."],"checks":["Repeated actions do not start conflicting animations; the final state matches the application's state.","The scene keeps its meaning with reduced motion; scrolling and interaction remain comfortable on mobile."],"goal":"Example workflow with SVG.js: An animated logo."},"sources":["https://github.com/svgdotjs/svg.js","https://svgjs.dev/","https://raw.githubusercontent.com/svgdotjs/svg.js/master/LICENSE.txt","https://raw.githubusercontent.com/svgdotjs/svg.js/master/README.md","https://svgjs.dev/docs/3.0/"],"checkedAt":"2026-10-03","reviewScope":"Purpose and published terms were reviewed against the cited primary sources. This product page does not confirm execution or testing in every environment.","relatedIds":[],"dataVersion":"cbbe7123b47a5ae80983","type":"Library / tool","kind":"library","pricingNote":"The open-source library is free. SVG illustrations, logos, and other external materials retain their own licenses.","notes":"Vanilla JavaScript/TypeScript, npm or CDN; React is optional. The library focuses on SVG and does not replace a WebGL engine or video renderer.","labeledSources":[{"url":"https://github.com/svgdotjs/svg.js","label":"Source code"},{"url":"https://svgjs.dev/","label":"Source: svgjs.dev"},{"url":"https://raw.githubusercontent.com/svgdotjs/svg.js/master/LICENSE.txt","label":"License"},{"url":"https://raw.githubusercontent.com/svgdotjs/svg.js/master/README.md","label":"Official source"},{"url":"https://svgjs.dev/docs/3.0/","label":"Official source"}],"licenseGuides":[{"id":"mit","title":"MIT — permissive license","scope":null,"summary":"You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.","url":"https://opensource.org/license/mit"}],"entryIds":[],"composition":null}