{"id":33191340,"url":"https://github.com/ChrisNikkel/SharpVG","last_synced_at":"2025-11-21T00:02:09.138Z","repository":{"id":53819126,"uuid":"61974152","full_name":"ChrisNikkel/SharpVG","owner":"ChrisNikkel","description":"Create SVG vector graphics in F#","archived":false,"fork":false,"pushed_at":"2025-10-11T16:07:06.000Z","size":677,"stargazers_count":79,"open_issues_count":22,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-20T18:44:42.193Z","etag":null,"topics":["animation","graphics","svg","vector-graphics"],"latest_commit_sha":null,"homepage":"http://www.sharpvg.com/","language":"F#","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/ChrisNikkel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2016-06-26T04:50:26.000Z","updated_at":"2025-10-11T16:07:10.000Z","dependencies_parsed_at":"2024-01-06T23:57:38.496Z","dependency_job_id":"d4880eba-45bb-4a29-ac14-b7431a24d277","html_url":"https://github.com/ChrisNikkel/SharpVG","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChrisNikkel/SharpVG","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisNikkel%2FSharpVG","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisNikkel%2FSharpVG/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisNikkel%2FSharpVG/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisNikkel%2FSharpVG/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisNikkel","download_url":"https://codeload.github.com/ChrisNikkel/SharpVG/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisNikkel%2FSharpVG/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285532343,"owners_count":27187706,"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","status":"online","status_checked_at":"2025-11-20T02:00:05.334Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["animation","graphics","svg","vector-graphics"],"created_at":"2025-11-16T06:00:41.329Z","updated_at":"2025-11-21T00:02:09.127Z","avatar_url":"https://github.com/ChrisNikkel.png","language":"F#","funding_links":[],"categories":["Visualization"],"sub_categories":["Creating Type Providers"],"readme":"# SharpVG\n\nA .NET Standard library for F# to generate vector graphics in SVG format.\n\n_[Pull requests](https://github.com/ChrisNikkel/SharpVG/pulls) and [suggestions](https://github.com/ChrisNikkel/SharpVG/issues) are greatly appreciated._\n\n[Source code on GitHub](https://github.com/ChrisNikkel/SharpVG)\n\n![.NET Core](https://github.com/ChrisNikkel/SharpVG/workflows/.NET%20Core/badge.svg)\n\n## Why SharpVG?\n\n  - Allows you to emit SVG using simple F# commands so that you can create graphics and animations that are easy to distribute\n  - All basic SVG elements are supported: [line](https://github.com/ChrisNikkel/SharpVG/wiki/Line), [circle](https://github.com/ChrisNikkel/SharpVG/wiki/Circle), [ellipse](https://github.com/ChrisNikkel/SharpVG/wiki/Ellipse), [rect](https://github.com/ChrisNikkel/SharpVG/wiki/Rect), [text](https://github.com/ChrisNikkel/SharpVG/wiki/Text), [polygon](https://github.com/ChrisNikkel/SharpVG/wiki/Polygon), [polyline](https://github.com/ChrisNikkel/SharpVG/wiki/polyLine), [path](https://github.com/ChrisNikkel/SharpVG/wiki/Path), [image](https://github.com/ChrisNikkel/SharpVG/wiki/Image), and [groups](https://github.com/ChrisNikkel/SharpVG/wiki/Group)\n  - No understanding of SVG is required and its as easy as using seq, list, or array\n  - No external dependencies other than SharpVG are required\n  - Cross platform support on Windows, Linux, and OSX\n  - Limited support for SVG animations\n  - Reusable styles\n\n## SharpVG Goals\n  - To enable easy cross platform graphics in F#\n  - To create simple and clear DSL\n  - To reduce invalid state and runtime problems\n\n## Examples\n\n```F#\nlet position = Point.ofInts (10, 10)\nlet area = Area.ofInts (50, 50)\nlet style = Style.create (Color.ofName Colors.Cyan) (Color.ofName Colors.Blue) (Length.ofInt 3) 1.0 1.0\n\nRect.create position area\n  |\u003e Element.createWithStyle style\n  |\u003e printf \"%O\"\n```\n\n```html\n\u003crect stroke=\"blue\" stroke-width=\"3\" fill=\"cyan\" opacity=\"1\" x=\"10\" y=\"10\" height=\"50\" width=\"50\"/\u003e\n```\n\n```F#\nlet center = Point.ofInts (60, 60)\nlet radius = Length.ofInt 50\nlet style = Style.create (Color.ofName Colors.Violet) (Color.ofName Colors.Indigo) (Length.ofInt 3) 1.0 1.0\n\nCircle.create center radius\n  |\u003e Element.createWithStyle style\n  |\u003e Svg.ofElement\n  |\u003e Svg.toHtml \"Example\"\n  |\u003e printf \"%s\"\n```\n\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n\u003ctitle\u003eExample\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003csvg\u003e\u003ccircle stroke=\"indigo\" stroke-width=\"3\" fill=\"violet\" opacity=\"1\" r=\"50\" cx=\"60\" cy=\"60\"/\u003e\u003c/svg\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Building SharpVG\n\nClone the repository:\n```bash\ngit clone https://github.com/ChrisNikkel/SharpVG.git\ncd SharpVG\n```\n\nStart the build:\n```bash\ndotnet build\n```\n\nRun the tests:\n```bash\ndotnet test Tests\n```\n\nRun the examples:\n```bash\ndotnet run -p Examples/Triangle/Triangle.fsproj\ndotnet run -p Examples/Life/Life.fsproj\n```\n\nExplore interactively:\n```bash\nfsharpi -r:SharpVG/bin/Debug/netcoreapp2.0/SharpVG.dll\n```\n```F#\nopen SharpVG;;\nCircle.create Point.origin (Length.ofInt 10) |\u003e printf \"%O\";;\nCircle.create Point.origin (Length.ofInt 10) |\u003e Element.create |\u003e Svg.ofElement |\u003e Svg.toHtml \"Example\";;\n#quit;;\n```\n\nExplore interactively with a Notebook:\n\nInstall Visual Studio Code plugin for [Interactive Notebooks](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.dotnet-interactive-vscode)\n\n```bash\nCode Examples/Notebooks/SharpVG.dib\n```\n\n## Documentation\n\nRead the documentation [here](https://github.com/ChrisNikkel/SharpVG/wiki).\n\n## Support\n\nPlease submit bugs and feature requests [here](https://github.com/ChrisNikkel/SharpVG/issues).\n\n## Library License\n\nThe library is available under the MIT license. For more information see the [license file](https://github.com/ChrisNikkel/SharpVG/blob/master/LICENSE.md).\n\n## Maintainer(s)\n\n  - [@ChrisNikkel](https://github.com/ChrisNikkel)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChrisNikkel%2FSharpVG","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FChrisNikkel%2FSharpVG","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FChrisNikkel%2FSharpVG/lists"}