{"id":28368248,"url":"https://github.com/leaferjs/leaferjs","last_synced_at":"2026-04-23T02:02:36.661Z","repository":{"id":196628140,"uuid":"693456163","full_name":"leaferjs/LeaferJS","owner":"leaferjs","description":"绚丽多彩的 HTML5 Canvas 2D 图形渲染引擎， 可结合 AI 绘图、生成界面。能让你拥有瞬间创建 100 万个图形的超强能力，免费开源、易学易用、场景丰富。","archived":false,"fork":false,"pushed_at":"2026-04-21T02:40:09.000Z","size":114,"stargazers_count":487,"open_issues_count":0,"forks_count":49,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-04-21T04:31:23.080Z","etag":null,"topics":["canvas","leaferjs"],"latest_commit_sha":null,"homepage":"https://www.leaferjs.com","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/leaferjs.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-19T04:24:36.000Z","updated_at":"2026-04-21T02:22:40.000Z","dependencies_parsed_at":"2025-11-29T07:05:51.176Z","dependency_job_id":"d5eb652a-b722-4018-ae37-11bfaaf8341e","html_url":"https://github.com/leaferjs/LeaferJS","commit_stats":null,"previous_names":["leaferjs/leaferjs"],"tags_count":77,"template":false,"template_full_name":null,"purl":"pkg:github/leaferjs/LeaferJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2FLeaferJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2FLeaferJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2FLeaferJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2FLeaferJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leaferjs","download_url":"https://codeload.github.com/leaferjs/LeaferJS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leaferjs%2FLeaferJS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32162613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"online","status_checked_at":"2026-04-23T02:00:06.710Z","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":["canvas","leaferjs"],"created_at":"2025-05-29T04:09:14.031Z","updated_at":"2026-04-23T02:02:36.634Z","avatar_url":"https://github.com/leaferjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeaferJS\n\n一款好用的 Canvas 渲染引擎，革新的体验。可用于高效绘图 、UI 交互（小游戏、互动应用、组态）、图形编辑，前端开发必备～\n\n能让你拥有瞬间创建 100 万个图形的超强能力，免费开源、易学易用、场景丰富。\n\n## 运行\n\nLeaferJS 完全依赖于子仓库 [leafer](https://github.com/leaferjs/leafer)、[leafer-ui](https://github.com/leaferjs/leafer-ui)、[leafer-in](https://github.com/leaferjs/leafer-in)、[leafer-draw](https://github.com/leaferjs/leafer-draw)、[leafer-game](https://github.com/leaferjs/leafer-game)、[leafer-editor](https://github.com/leaferjs/leafer-editor) ， 提供运行官网示例代码、自定义打包的能力。\n\n复制以下命令并运行：\n\n```sh\n\ngit clone  https://github.com/leaferjs/LeaferJS.git --recurse-submodules\n\ncd LeaferJS\n\nnpm install\nnpm run start\n\n```\n\n将在本地创建一个 LeaferJS 项目，并自动下载 [leafer](https://github.com/leaferjs/leafer)、[leafer-ui](https://github.com/leaferjs/leafer-ui)、[leafer-in](https://github.com/leaferjs/leafer-in)、[leafer-draw](https://github.com/leaferjs/leafer-draw)、[leafer-game](https://github.com/leaferjs/leafer-game)、[leafer-editor](https://github.com/leaferjs/leafer-editor) 子仓库代码到 src 目录。\n\n安装启动完成后，可在浏览器中访问：http://localhost:10101\n\n复制 [官网](https://leaferjs.com) 示例代码到 index.ts 中，可以实时查看运行效果。\n\n## 更新\n\n```sh\n\ngit pull --recurse-submodules\n\n```\n\n## 打包\n\n```sh\n\nnpm run core # 打包核心代码，环境打包的依赖项\n\nnpm run web # 仅打包web环境代码\n\nnpm run all # 打包所有环境的代码\n\nnpm run dts # 为所有包生成d.ts文件\n\nnpm run clear # 清空所有打包内容\n\n\n```\n\n## License\n\nLeaferJS 是采用 MIT 许可的开源项目，可以永久免费使用。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaferjs%2Fleaferjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleaferjs%2Fleaferjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleaferjs%2Fleaferjs/lists"}