{"id":13426601,"url":"https://github.com/btmills/geopattern","last_synced_at":"2026-10-19T11:09:35.189Z","repository":{"id":13666813,"uuid":"16360460","full_name":"btmills/geopattern","owner":"btmills","description":"Generate beautiful SVG patterns","archived":false,"fork":false,"pushed_at":"2021-05-19T22:55:23.000Z","size":251,"stargazers_count":1843,"open_issues_count":3,"forks_count":213,"subscribers_count":35,"default_branch":"master","last_synced_at":"2026-10-17T02:50:09.251Z","etag":null,"topics":["geopattern","javascript","svg","visualization"],"latest_commit_sha":null,"homepage":"http://btmills.github.io/geopattern/","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/btmills.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}},"created_at":"2014-01-29T21:57:21.000Z","updated_at":"2026-10-17T01:12:18.000Z","dependencies_parsed_at":"2022-09-09T11:51:35.833Z","dependency_job_id":null,"html_url":"https://github.com/btmills/geopattern","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/btmills/geopattern","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btmills%2Fgeopattern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btmills%2Fgeopattern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btmills%2Fgeopattern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btmills%2Fgeopattern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/btmills","download_url":"https://codeload.github.com/btmills/geopattern/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/btmills%2Fgeopattern/sbom","scorecard":{"id":256797,"data":{"date":"2025-08-11","repo":{"name":"github.com/btmills/geopattern","commit":"7f7fd7916fe13b9600b9d586d73a59541e4060dd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":4,"reason":"Found 7/17 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.2.3 not signed: https://api.github.com/repos/btmills/geopattern/releases/855226","Warn: release artifact v1.2.2 not signed: https://api.github.com/repos/btmills/geopattern/releases/855233","Warn: release artifact v1.2.3 does not have provenance: https://api.github.com/repos/btmills/geopattern/releases/855226","Warn: release artifact v1.2.2 does not have provenance: https://api.github.com/repos/btmills/geopattern/releases/855233"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T09:53:45.663Z","repository_id":13666813,"created_at":"2025-08-17T09:53:45.663Z","updated_at":"2025-08-17T09:53:45.663Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38355214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"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":["geopattern","javascript","svg","visualization"],"created_at":"2024-07-31T00:01:38.835Z","updated_at":"2026-10-19T11:09:34.853Z","avatar_url":"https://github.com/btmills.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","javascript","Libraries"],"sub_categories":[],"readme":"# GeoPattern\n\n[![npm version][npm-image]][npm-url]\n[![build status][travis-image]][travis-url]\n[![downloads][downloads-image]][npm-url]\n\nThis is a JavaScript port of [jasonlong/geo_pattern](https://github.com/jasonlong/geo_pattern) with a [live preview page](http://btmills.github.io/geopattern/) and is derived from the background generator originally used for [GitHub Guides](http://guides.github.com/).\n\n## Usage\n\n### Web\n\nInclude the [minified script](https://github.com/btmills/geopattern/releases/download/v1.2.3/geopattern-1.2.3.min.js) from your server. jQuery is optional.\n\n```html\n\u003cscript src=\"js/jquery.min.js\"\u003e\u003c/script\u003e \u003c!-- optional --\u003e\n\u003cscript src=\"js/geopattern.min.js\"\u003e\u003c/script\u003e\n```\n\nOr reference it from a [CDN](https://cdnjs.com/libraries/geopattern).\n\n```html\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js\"\u003e\u003c/script\u003e \u003c!-- optional --\u003e\n\u003cscript src=\"https://cdnjs.cloudflare.com/ajax/libs/geopattern/1.2.3/js/geopattern.min.js\"\u003e\u003c/script\u003e\n```\n\nUse either the `GeoPattern` browser global or the jQuery plugin:\n\n```js\n// Use the global...\nvar pattern = GeoPattern.generate('GitHub');\n$('#geopattern').css('background-image', pattern.toDataUrl());\n\n// ...or the plugin\n$('#geopattern').geopattern('GitHub');\n```\n\nFor backwards compatibility with the script on the [Guides](http://guides.github.com/), the source hash for generation can be supplied with a `data-title-sha` attribute on the element. If the attribute exists, the generator will ignore the input string and use the supplied hash.\n\nTo run on Internet Explorer 9, the GeoPattern script requires polyfills for [`window.btoa()`](https://github.com/btmills/geopattern/blob/gh-pages/js/base64.min.js) and [`Uint32Array`](https://github.com/btmills/geopattern/blob/gh-pages/js/typedarray.js).\n\nView [`index.html` on the `gh-pages` branch](https://github.com/btmills/geopattern/blob/gh-pages/index.html) for a complete example.\n\n### Node.js\n\n```bash\nnpm install geopattern\n```\n\nAfter requiring `geopattern`, the API is identical to the browser version, minus the jQuery plugin.\n\n```js\nvar GeoPattern = require('geopattern');\nvar pattern = GeoPattern.generate('GitHub');\npattern.toDataUrl(); // url(\"data:image/svg+xml;...\n```\n\nPS - If you are going to use **Webpack** (or any other bundler) to bundle `geopattern` and it will be used in a browser, ignore `buffer` shim from the bundling to decrease its size. See [#32](https://github.com/btmills/geopattern/issues/32) for more details. \n\n\n### API\n\n#### GeoPattern.generate(string, options)\n\nReturns a newly-generated, tiling SVG Pattern.\n\n- `string` Will be hashed using the SHA1 algorithm, and the resulting hash will be used as the seed for generation.\n\n- `options.color` Specify an exact background color. This is a CSS hexadecimal color value.\n\n- `options.baseColor` Controls the relative background color of the generated image. The color is not identical to that used in the pattern because the hue is rotated by the generator. This is a CSS hexadecimal color value, which defaults to `#933c3c`.\n\n- `options.generator` Determines the pattern. [All of the original patterns](https://github.com/jasonlong/geo_pattern#available-patterns) are available in this port, and their names are camelCased.\n\n#### Pattern.color\n\nGets the pattern's background color as a hexadecimal string.\n\n```js\nGeoPattern.generate('GitHub').color // =\u003e \"#455e8a\"\n```\n\n#### Pattern.toString() and Pattern.toSvg()\n\nGets the SVG string representing the pattern.\n\n#### Pattern.toBase64()\n\nGets the SVG as a Base64-encoded string.\n\n#### Pattern.toDataUri()\n\nGets the pattern as a data URI, i.e. `data:image/svg+xml;base64,PHN2ZyB...`.\n\n#### Pattern.toDataUrl()\n\nGets the pattern as a data URL suitable for use as a CSS `background-image`, i.e. `url(\"data:image/svg+xml;base64,PHN2ZyB...\")`.\n\n## License\n\nLicensed under the terms of the MIT License, the full text of which can be read in [LICENSE](LICENSE).\n\n\n[downloads-image]: https://img.shields.io/npm/dm/geopattern.svg?style=flat-square\n[npm-image]: https://img.shields.io/npm/v/geopattern.svg?style=flat-square\n[npm-url]: https://www.npmjs.com/package/geopattern\n[travis-image]: https://img.shields.io/travis/btmills/geopattern/master.svg?style=flat-square\n[travis-url]: https://travis-ci.org/btmills/geopattern\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtmills%2Fgeopattern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbtmills%2Fgeopattern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbtmills%2Fgeopattern/lists"}