{"id":13447778,"url":"https://github.com/SVG-Edit/svgedit","last_synced_at":"2025-03-22T01:31:18.290Z","repository":{"id":18428290,"uuid":"21611548","full_name":"SVG-Edit/svgedit","owner":"SVG-Edit","description":"Powerful SVG-Editor for your browser","archived":false,"fork":false,"pushed_at":"2025-03-12T08:22:33.000Z","size":122734,"stargazers_count":6898,"open_issues_count":54,"forks_count":1602,"subscribers_count":217,"default_branch":"master","last_synced_at":"2025-03-12T15:49:15.707Z","etag":null,"topics":["javascript","svg","svg-edit","svg-editor"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SVG-Edit.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"docs/Contributing.md","funding":".github/FUNDING.yml","license":"LICENSE-MIT.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["brettz9","OptimistikSAS"]}},"created_at":"2014-07-08T12:22:05.000Z","updated_at":"2025-03-12T08:22:39.000Z","dependencies_parsed_at":"2024-04-25T15:25:55.032Z","dependency_job_id":"9e65b41c-35ad-4415-94b2-ad436c00a5b4","html_url":"https://github.com/SVG-Edit/svgedit","commit_stats":{"total_commits":3742,"total_committers":114,"mean_commits":"32.824561403508774","dds":0.810529128808124,"last_synced_commit":"403237c18228df15846374a8ca789cccf5237ec4"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SVG-Edit%2Fsvgedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SVG-Edit%2Fsvgedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SVG-Edit%2Fsvgedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SVG-Edit%2Fsvgedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SVG-Edit","download_url":"https://codeload.github.com/SVG-Edit/svgedit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244893437,"owners_count":20527592,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","svg","svg-edit","svg-editor"],"created_at":"2024-07-31T05:01:26.640Z","updated_at":"2025-03-22T01:31:17.678Z","avatar_url":"https://github.com/SVG-Edit.png","language":"JavaScript","readme":"\u003cimg src=\"https://svg-edit.github.io/svgedit/src/editor/images/logo.svg\" width=\"50\" height=\"50\" /\u003e\n\n# SVGEdit\n\n[![npm](https://img.shields.io/npm/v/svgedit.svg)](https://www.npmjs.com/package/svgedit)\n[![Actions Status](https://github.com/SVG-Edit/svgedit/workflows/Node%20CI/badge.svg)](https://github.com/SVG-Edit/svgedit/actions)\n[![Known Vulnerabilities](https://snyk.io/test/github/SVG-Edit/svgedit/badge.svg)](https://snyk.io/test/github/SVG-Edit/svgedit)\n[![Total Alerts](https://img.shields.io/lgtm/alerts/g/SVG-Edit/svgedit.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/SVG-Edit/svgedit/alerts)\n[![Code Quality: Javascript](https://img.shields.io/lgtm/grade/javascript/g/SVG-Edit/svgedit.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/SVG-Edit/svgedit/context:javascript)\n\n**SVGEdit** is a fast, web-based, JavaScript-driven SVG drawing editor that\nworks in any modern browser. **SVGEdit** is based on a powerful SVG canvas **@svgedit/svgcanvas**\n\n![screenshot](docs/screenshot.png)\n[](https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg)\n\n## Contributions\n\nSVGEdit is the most popular open source SVG editor. It was started more than 13 years ago by a fantastic team of developers. Unfortunately, the product was not maintained for quite a long time. We decided to give this tool a new life by refreshing many aspects.\n\nPlease let us know by creating an issue or a discussion if you wish to contribute.\n\n## I want to use SVGEdit\n\nThanks to **Netlify**, you can access the following builds from your favorite browser:\n\n- [Try SVGEdit V7 (master branch on github)](https://svgedit.netlify.app/editor/index.html)\n- [Try SVGEdit V7 (latest published version on npm)](https://unpkg.com/svgedit@latest/dist/editor/index.html)\n\n### Prior to V7:\n\nWe recommend using the V7 version but for older browsers or some abandoned features, you may need to access older versions of SVGEdit.\n\n- [Try SVGEdit 6.1.0 here](https://60a0000fc9900b0008fd268d--svgedit.netlify.app/editor/index.html)\n- [Try SVGEdit 5.1.0 here](https://unpkg.com/svgedit@5.1.0/editor/svg-editor.html)\n\nAdditional tip: you may try a version released on NPM using `unpkg`, for example, with version 3.2.0\n\n- [https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html](https://unpkg.com/svgedit@3.2.0/editor/svg-editor.html)\n\n## I want to host SVGEdit in my environment\n\nIf you want to host a local version of SVGEdit, please follow these instructions:\n\n1. clone or copy the repository contents from github\n1. run `npm i` to install dependencies\n1. run `npm run build --workspace @svgedit/svgcanvas` to build the svgcanvas dependency locally\n1. to test, you can run `npm run start` to start a local server\n1. and access `http://localhost:8000/src/editor/index.html` with a supported browser\n1. run `npm run build` to build a bundle that you can serve from your own web server\n\n## I want to contribute to SVGEdit\n\n**Thanks!**\n\nSVGEdit is made of two major components:\n\n1. The \"svgcanvas\" that takes care of the underlying svg editor. It can be used to build your own editor\n1. The \"editor\" that takes care of the editor UI (menus, buttons, etc.)\n\nYou should fork SVGEdit in your github environment and install SVGEdit locally as explained above.\n\nBefore you submit your PR, please make sure you run locally:\n\n1. `npm run lint` to check that you follow the standardjs rules (https://standardjs.com/rules) for the linter\n1. `npm run test` to run a suite of Cypress tests (https://www.cypress.io/)\n\nIf you intend to contribute on a regular basis, let us know so we can add you to the maintainer team.\n\n## I want to integrate SVGEdit into my own Web application\n\nV7 is changing significantly the way to integrate and customize SVGEdit. You can have a look at `index.html` to see how you can insert a `div` element into your HTML code and inject the editor into the `div`.\n\n**Warning: This `div` can be positioned anywhere in the DOM but it must have a numeric width and a numeric height (i.e. not 'auto' which happens when the `div` is hidden)**\n\n```html\n\u003chead\u003e\n   \u003c!-- You need to include the CSS for SVGEdit somewhere in your application --\u003e\n  \u003clink href=\"./svgedit.css\" rel=\"stylesheet\" media=\"all\"\u003e\u003c/link\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003c!-- svgedit container can be positioned anywhere in the DOM\n       but it must have a width and a height --\u003e\n  \u003cdiv id=\"container\" style=\"width:100%;height:100vh\"\u003e\u003c/div\u003e\n\u003c/body\u003e\n\u003cscript type=\"module\"\u003e\n  /* You need to call the Editor and load it in the \u003cdiv\u003e */\n  import Editor from './Editor.js'\n  /* for available options see the file `docs/tutorials/ConfigOptions.md` */\n  const svgEditor = new Editor(document.getElementById('container'))\n  /* initialize the Editor */\n  svgEditor.init()\n  /* set the configuration */\n  svgEditor.setConfig({\n          allowInitialUserOverride: true,\n          extensions: [],\n          noDefaultExtensions: false,\n          userExtensions: []\n  })\n\u003c/script\u003e\n\u003c/html\u003e\n```\n\n## I want to build my own svg editor\nYou can just use the underlying canvas and use it in your application with your favorite framework.\nSee example in the demos folder or the svg-edit-react repository. \n\nTo install the canvas:\n\n`npm i -s '@svgedit/svgcanvas'`\n\nyou can then import it in your application: \n\n`import svgCanvas from '@svgedit/svgcanvas'`\n\n## Supported browsers\n\nDevelopment and Continuous Integration are done with a **Chrome** environment. Recent versions of Chrome, FireFox, and Safari are supported (in the meaning that we will try to fix bugs for these browsers).\n\nTo support old browsers, you may need to use an older version of the package. However, please open an issue if you need support for a specific version of your browser so that the project team can decide if we should support it in the latest version of SVGEdit.\n\n## Sample extension based on React\n\nA sample React component was used to build a SVGEdit extension.\n\nTo activate:\n\n- \"npm run build\" from the extension folder \"src/editor/react-extensions/react-test\" in order to create the bundle for the extension.\n- modify \"index.html\" to activate the extension as a `userExtensions`\n\n```javascript\nsvgEditor.setConfig({\n          allowInitialUserOverride: true,\n          extensions: [],\n          noDefaultExtensions: false,\n          userExtensions: ['./react-extensions/react-test/dist/react-test.js']\n        })\n```\n\n## Further reading and more information\n\n- Participate in [discussions](https://github.com/SVG-Edit/svgedit/discussions)\n- See [AUTHORS](AUTHORS) file for authors.\n- [StackOverflow](https://stackoverflow.com/tags/svg-edit) group.\n\n## Hosting\n\nSVGEdit versions are deployed to:\n\n[![Deploys by Netlify](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)](https://www.netlify.com)\n\n---\n\n[⇈ Back to Top](#svgedit)\n","funding_links":["https://github.com/sponsors/brettz9","https://github.com/sponsors/OptimistikSAS"],"categories":["JavaScript","javascript","Programming Libraries","SVG editor","Tools for creating figures"],"sub_categories":["Videos"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSVG-Edit%2Fsvgedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FSVG-Edit%2Fsvgedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FSVG-Edit%2Fsvgedit/lists"}