{"id":17702653,"url":"https://github.com/friendlymatthew/clay","last_synced_at":"2026-01-27T18:43:13.144Z","repository":{"id":257422799,"uuid":"857418937","full_name":"friendlymatthew/clay","owner":"friendlymatthew","description":"Web Assembly. Infinite canvas. Rectangles.","archived":false,"fork":false,"pushed_at":"2024-09-29T21:42:37.000Z","size":2250,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-31T03:27:12.394Z","etag":null,"topics":["design","simd","wasm"],"latest_commit_sha":null,"homepage":"https://friendlymatthew.github.io/clay/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/friendlymatthew.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-09-14T15:55:29.000Z","updated_at":"2025-01-03T19:39:09.000Z","dependencies_parsed_at":"2024-09-16T17:07:26.413Z","dependency_job_id":"a8a6f2fc-28cb-42f4-8460-1b0dfad395e0","html_url":"https://github.com/friendlymatthew/clay","commit_stats":null,"previous_names":["friendlymatthew/clay"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fclay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fclay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fclay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/friendlymatthew%2Fclay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/friendlymatthew","download_url":"https://codeload.github.com/friendlymatthew/clay/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252778028,"owners_count":21802694,"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":["design","simd","wasm"],"created_at":"2024-10-24T19:08:38.567Z","updated_at":"2026-01-27T18:43:13.116Z","avatar_url":"https://github.com/friendlymatthew.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clay\n\n\u003cimg src=\"./gocoturtle.png\" alt=\"Goco Turtle\" /\u003e\n\n\u003cbr\u003e\n\nThis crate aims to provide a interactive design tool as a functional Yew component. Currently, `clay` can move around and freehand, draw rectangles or circles on an infinite canvas.\n\n`clay` heavily relies on wasm32 SIMD intrinsics. Since this problem space is bound to planar and spatial operations, this crate also aims to implement every geometric operation in SIMD.\n\nThere isn't a clear roadmap ahead but most exciting ideas are persisting shapes to disk and simple multicollaboration.\n\n## How to Run\n\u003e *These instructions make use of `just`. To install, simply `cargo install just`*\n\u003e\n\u003e [Install prerequisites](https://yew.rs/docs/getting-started/introduction)\n\nTo run the app:\n```bash\njust run    \n```\n\nTo compile or test the `math` crate:\n```bash\ncd math \u0026\u0026 just build # or just test\n```\n\n## Performance\nThe effects of SIMD are not measured yet. An ad-hoc benchmark comparing `clay` and the original Typescript scalar implementation [written by Alikiki](https://github.com/alikiki/baby-tldraw) is planned. \n\n## Reading \n[Baby Tldraw](https://www.hajeon.xyz/posts/post-content/20240413_tldraw.html)\n\n[Creating a Zoom UI](https://www.steveruiz.me/posts/zoom-ui)\n\n\u003e A canvas is a fixed 2-dimensional plane of infinite dimensions. All shapes and objects rendered on the canvas operate in 2-dimensional space. \n\u003e \n\u003e The camera is suspended above and points at the canvas. The camera operates in 3-dimensional space.\n\u003e\n\u003e The implementations for converting from screen to canvas and finding the viewport can be found in Steve Ruiz's blog post above.\n\n[MDN's SVG Resource](https://developer.mozilla.org/en-US/docs/Web/SVG)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlymatthew%2Fclay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffriendlymatthew%2Fclay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffriendlymatthew%2Fclay/lists"}