{"id":13492779,"url":"https://github.com/lokesh-coder/blobshape","last_synced_at":"2025-05-07T15:23:13.436Z","repository":{"id":37211789,"uuid":"271814254","full_name":"lokesh-coder/blobshape","owner":"lokesh-coder","description":"Generate SVG blob shapes","archived":false,"fork":false,"pushed_at":"2023-09-15T06:20:26.000Z","size":9,"stargazers_count":80,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-28T02:38:29.846Z","etag":null,"topics":[],"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/lokesh-coder.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}},"created_at":"2020-06-12T14:13:16.000Z","updated_at":"2025-03-24T07:56:47.000Z","dependencies_parsed_at":"2024-01-16T10:08:40.148Z","dependency_job_id":null,"html_url":"https://github.com/lokesh-coder/blobshape","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokesh-coder%2Fblobshape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokesh-coder%2Fblobshape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokesh-coder%2Fblobshape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lokesh-coder%2Fblobshape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lokesh-coder","download_url":"https://codeload.github.com/lokesh-coder/blobshape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252903170,"owners_count":21822386,"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":[],"created_at":"2024-07-31T19:01:09.105Z","updated_at":"2025-05-07T15:23:13.414Z","avatar_url":"https://github.com/lokesh-coder.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003ch3  align=\"center\"\u003e\n\n\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/1754676/111070745-0c1ecb80-84f9-11eb-9128-fff8b2ab2b40.png\"  alt=\"Blobs\"\u003e\u003c/p\u003e\n\n\u003c/h3\u003e\n\n\u003ch4  align=\"center\"\u003eGenerate unique and fixed shape blobs for web apps\u003c/h4\u003e\n\n\u0026nbsp;\n\n\n\n## Installation\n\n```shell\nnpm i blobshape\n```\n\n## Usage\n\n### Generate random blob\n\n```js\nimport blobshape from \"blobshape\";\n\nconst { path, seedValue } = blobshape();\nconst svg = `\u003csvg viewBox=\"0 0 100 100\"\u003e\u003cpath d=\"${path}\" /\u003e\u003c/svg\u003e`;\n\n// seedValue - returns id string, later it can be used to get same shape\n```\n\n### Get fixed shape blob\n\nSet `seed` value to get same fixed shape\n\n```js\nimport blobshape from \"blobshape\";\n\nconst { path } = blobshape({ seed: \"6-6-7171\" });\nconst svg = `\u003csvg viewBox=\"0 0 100 100\"\u003e\u003cpath d=\"${path}\" /\u003e\u003c/svg\u003e`;\n```\n\n### Config\n\n`growth` - Minimum size of the blob in percentage. More the smaller more the randomness.\n\n`edges` - Total nodes to create a shape. Increasing this value will add complexity to the shape.\n\n`size` - SVG blob path size\n\n```js\nimport blobshape from \"blobshape\";\n\nconst { path } = blobshape({ size: 300, growth: 6, edges: 6, seed: null });\nconst svg = `\u003csvg viewBox=\"0 0 100 100\"\u003e\u003cpath d=\"${path}\" /\u003e\u003c/svg\u003e`;\n```\n\n## Demo\n\nTo see live action of this package check [blobs.app](https://lokesh-coder.github.io/blobs.app) and you can find the source code for that in [github repo](https://github.com/lokesh-coder/blobs.app).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flokesh-coder%2Fblobshape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flokesh-coder%2Fblobshape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flokesh-coder%2Fblobshape/lists"}