{"id":18744792,"url":"https://github.com/litecanvas/utils","last_synced_at":"2025-08-23T04:09:30.029Z","repository":{"id":253665539,"uuid":"822853915","full_name":"litecanvas/utils","owner":"litecanvas","description":"🛠️ Small collection of tools for developing games with litecanvas.","archived":false,"fork":false,"pushed_at":"2025-07-26T13:20:27.000Z","size":199,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-08T19:04:58.562Z","etag":null,"topics":["camera","litecanvas","math","utilities","vector"],"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/litecanvas.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}},"created_at":"2024-07-02T00:58:37.000Z","updated_at":"2025-07-26T13:20:31.000Z","dependencies_parsed_at":"2025-01-29T16:29:45.294Z","dependency_job_id":"31195504-09af-4560-b174-99f6918ed180","html_url":"https://github.com/litecanvas/utils","commit_stats":null,"previous_names":["litecanvas/utils"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/litecanvas/utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litecanvas%2Futils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litecanvas%2Futils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litecanvas%2Futils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litecanvas%2Futils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litecanvas","download_url":"https://codeload.github.com/litecanvas/utils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litecanvas%2Futils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271740725,"owners_count":24812642,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["camera","litecanvas","math","utilities","vector"],"created_at":"2024-11-07T16:15:56.217Z","updated_at":"2025-08-23T04:09:30.001Z","avatar_url":"https://github.com/litecanvas.png","language":"JavaScript","funding_links":[],"categories":["Resources"],"sub_categories":["Utilities \u0026 Snippets"],"readme":"# Litecanvas Utilities\n\nSmall collection of tools for developing games with [Litecanvas](https://github.com/litecanvas/game-engine).\n\n## Install\n\n### NPM package\n\n```\nnpm i @litecanvas/utils\n```\n\n```js\n// import everything\nimport * as utils from \"@litecanvas/utils\"\n\nconst pos = utils.vec(0, 0)\n```\n\n```js\n// or import just what you want\nimport { vec } from \"@litecanvas/utils\"\n\nconst pos = vec(0, 0)\n```\n\n### CDN\n\nDownload from https://unpkg.com/browse/@litecanvas/utils/dist/ and load in a `\u003cscript\u003e` tag in your HTML.\n\n```js\n// now the \"utils\" namespace is created\nconst pos = utils.vec(0, 0)\n```\n\n```js\n// also, you can  call this once to\n// expose the components globally\nutils.global()\n\n// now the namescape is not required\nconst pos = vec(0, 0)\n```\n\n## Components\n\n- **Camera**: Move-, zoom- and rotatable camera with shake. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/camera)\n- **Vector**: Modular 2D vector. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/vector)\n- **Actor**: class to represent game entities. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/actor)\n- **Grid**: class to handle retangular grid areas. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/grid)\n- **Collision** utilities. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/collision)\n- **Tween** to create animations. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/tween)\n- **Image** to manipulate images. [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/image)\n- **Collection** to manipulate lists (arrays). [Usage \u0026 Docs](https://github.com/litecanvas/utils/tree/main/src/collection)\n- And some [math utilities](https://github.com/litecanvas/utils/tree/main/src/math)...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitecanvas%2Futils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitecanvas%2Futils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitecanvas%2Futils/lists"}