{"id":19686130,"url":"https://github.com/loiccoyle/strandify","last_synced_at":"2026-03-02T01:33:35.143Z","repository":{"id":253461397,"uuid":"532011883","full_name":"loiccoyle/strandify","owner":"loiccoyle","description":"🎨 Easy peasy string art","archived":false,"fork":false,"pushed_at":"2025-03-06T18:14:29.000Z","size":15127,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-29T06:32:45.687Z","etag":null,"topics":["art","generative-art","string-art","wasm"],"latest_commit_sha":null,"homepage":"https://strandify.loiccoyle.com/","language":"Rust","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/loiccoyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-02T17:03:19.000Z","updated_at":"2025-01-18T15:15:45.000Z","dependencies_parsed_at":"2024-08-25T22:04:43.980Z","dependency_job_id":"14100c85-4574-4428-945b-7a15e09a1215","html_url":"https://github.com/loiccoyle/strandify","commit_stats":null,"previous_names":["loiccoyle/strandify","loiccoyle/stringart"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/loiccoyle/strandify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fstrandify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fstrandify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fstrandify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fstrandify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loiccoyle","download_url":"https://codeload.github.com/loiccoyle/strandify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loiccoyle%2Fstrandify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29989020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T22:42:38.399Z","status":"ssl_error","status_checked_at":"2026-03-01T22:41:51.863Z","response_time":124,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["art","generative-art","string-art","wasm"],"created_at":"2024-11-11T18:26:16.582Z","updated_at":"2026-03-02T01:33:35.128Z","avatar_url":"https://github.com/loiccoyle.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\u003cimg src=\"https://i.imgur.com/4jvon2p.png\" width=\"1000\"\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003eA CLI utility to create string art.\u003c/b\u003e\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://crates.io/crates/strandify\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/strandify\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://crates.io/crates/strandify-cli\"\u003e\u003cimg src=\"https://img.shields.io/crates/v/strandify-cli\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://npmjs.com/package/strandify-wasm\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/strandify-wasm\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://docs.rs/strandify/latest/strandify/\"\u003e\u003cimg src=\"https://img.shields.io/docsrs/strandify\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/loiccoyle/strandify/actions\"\u003e\u003cimg src=\"https://github.com/loiccoyle/strandify/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\"\u003e\u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/platform-linux%20%7C%20macOS%20%7C%20windows-informational\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003e\n  Create your string art \u003ca href=\"https://loiccoyle.com/strandify\"\u003ehere\u003c/a\u003e\n  \u003c/b\u003e\n\u003c/p\u003e\n\nThis repo contains two crates:\n\n- `strandify` crate contains the string art library.\n- `strandify-cli` crate provides the command line interface.\n\nAnd one `npm` package:\n\n- `strandify-wasm` provides the wasm bindings and allows `strandify` to be used in the browser.\n\n## 📦 Installation\n\n## Command line\n\nTo use the `strandify` binary to generate string art, install the `strandify-cli` crate:\n\n```sh\ncargo install strandify-cli\n```\n\n### 📋 Usage\n\nOnce installed, you can use the `strandify` binary.\n\nSomething like:\n\n```sh\nstrandify input_img.png output_img.png\n```\n\nIf in doubt see the help:\n\n\u003c!-- help start --\u003e\n\n```console\n$ strandify -h\nCLI utility to generate string art\n\nUsage: strandify [OPTIONS] \u003cINPUT\u003e [OUTPUT]\n\nArguments:\n  \u003cINPUT\u003e   Input image or blueprint json file\n  [OUTPUT]  Output file, either image format, svg or json\n\nOptions:\n  -i, --iterations \u003cITERATIONS\u003e\n          Number of iterations [default: 4000]\n  -t\n          Transparent background\n  -c, --yarn-color \u003cYARN_COLOR\u003e\n          Yarn color [default: \"0 0 0\"]\n      --project-to-yarn-color\n          Project image to yarn color\n  -S, --peg-shape \u003cSHAPE\u003e\n          Peg distribution shape [default: circle] [possible values: circle, square, border]\n  -n, --peg-number \u003cPEG_NUMBER\u003e\n          Number of pegs. Depending on the shape, can be slightly off [default: 288]\n  -m, --peg-margin \u003cPEG_MARGIN\u003e\n          Margin between pegs and image edge [0, 1] [default: 0.05]\n  -j, --peg-jitter \u003cPEG_JITTER\u003e\n          Add jitter to the peg position\n  -s, --peg-skip-within \u003cPEG_SKIP_WITHIN\u003e\n          Don't connect pegs within pixel distance\n  -O, --yarn-opacity \u003cYARN_OPACITY\u003e\n          Yarn opacity to use to render the image [0, 1] [default: 0.2]\n  -W, --yarn-width \u003cYARN_WIDTH\u003e\n          Yarn width to use to render the image [default: 1]\n  -o, --line-opacity \u003cLINE_OPACITY\u003e\n          Line opacity to use when computing the path, controls how much to lighten the pixels at each line pass, low values encourage more line overlap [0, 1] [default: 0.1]\n  -w, --line-width \u003cLINE_WIDTH\u003e\n          Line width to use when computing the path [default: 2]\n  -b, --beam-width \u003cBEAM_WIDTH\u003e\n          Beam search width, a value of 1 results in a purely greedy algorithm [default: 1]\n  -e, --early-stop-threshold \u003cEARLY_STOP_THRESHOLD\u003e\n          If provided, early stop pathing when consecutive path losses are greater than threshold\n  -E, --early-stop-count \u003cEARLY_STOP_COUNT\u003e\n          Number of consecutive iterations with path losses above threshold to allow [default: 100]\n      --output-scale \u003cOUTPUT_SCALE\u003e\n          Output scale [default: 1]\n      --save-pegs \u003cPEG_SAVE_FILE\u003e\n          Write pegs to file\n      --load-pegs \u003cPEG_LOAD_FILE\u003e\n          Read pegs from file\n  -v, --verbose...\n          Increase logging verbosity\n  -q, --quiet...\n          Decrease logging verbosity\n  -h, --help\n          Print help\n```\n\n\u003c!-- help end --\u003e\n\n## Library\n\nTo use the library as a dependency in your project, add the `strandify` crate:\n\n```sh\ncargo add strandify\n```\n\nSee the [docs](https://docs.rs/strandify) for usage.\n\n## Wasm\n\nTo use the `wasm` bindings in your project, add the `strandify-wasm` `npm` package:\n\n```sh\nnpm add strandify-wasm\n```\n\nI would recommend taking a look at the [demo page's source code](https://github.com/loiccoyle/strandify/tree/gh-pages) to see how to use it.\n\n## 👓 Examples\n\nSee the [examples](https://github.com/loiccoyle/strandify/tree/main/examples) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiccoyle%2Fstrandify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floiccoyle%2Fstrandify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floiccoyle%2Fstrandify/lists"}