{"id":22120343,"url":"https://github.com/joshbrew/canvasdraw-webcomponent","last_synced_at":"2026-05-01T01:32:13.877Z","repository":{"id":201095104,"uuid":"706953733","full_name":"joshbrew/canvasdraw-webcomponent","owner":"joshbrew","description":"Basic canvas drawing interface pure JS web component","archived":false,"fork":false,"pushed_at":"2023-10-19T05:50:20.000Z","size":290,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T06:34:29.000Z","etag":null,"topics":["html","javascript","webcomponents"],"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/joshbrew.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}},"created_at":"2023-10-18T23:41:36.000Z","updated_at":"2023-10-19T00:52:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3cfec6b-9ec2-4e8e-b7d3-00fd0bcd4d8b","html_url":"https://github.com/joshbrew/canvasdraw-webcomponent","commit_stats":null,"previous_names":["joshbrew/canvasdraw"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joshbrew/canvasdraw-webcomponent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fcanvasdraw-webcomponent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fcanvasdraw-webcomponent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fcanvasdraw-webcomponent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fcanvasdraw-webcomponent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshbrew","download_url":"https://codeload.github.com/joshbrew/canvasdraw-webcomponent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshbrew%2Fcanvasdraw-webcomponent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32482460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["html","javascript","webcomponents"],"created_at":"2024-12-01T14:22:55.726Z","updated_at":"2026-05-01T01:32:13.845Z","avatar_url":"https://github.com/joshbrew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Canvas drawing interface pure JS web component\n\n`npm i canvasdraw-webcomponent`\n\nAdd it to the page:\n```html\n\u003ccanvas-with-controls width=\"500\" height=\"500\"\u003e\u003c/canvas-with-controls\u003e\n\u003cscript src=\"CanvasWithControls.js\"\u003e\u003c/script\u003e\n```\nIf pulling from node_modules, `import 'canvasdraw-webcomponent'` in your main script, then link that source. The HTML tag will be added automatically\n\nExtends HTMLElement natively.\n\nThis is mostly a primitive for building on top of. E.g. the css controls are limited.\n\n- The unbundled script by default this works by fetching the html and css files associated on first run.\n- The bundled script has the html and css pre-fetched (e.g. with npm install).\n\nPan with middle mouse click or alt+left click, zoom with scroll wheel or the slider.\n\n## Test\nServe the index.html from this folder to test the component out.\n\n![png](./Capture.PNG)\n\nGPT 3.5 wrote it, I mostly just prompted.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbrew%2Fcanvasdraw-webcomponent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshbrew%2Fcanvasdraw-webcomponent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshbrew%2Fcanvasdraw-webcomponent/lists"}