{"id":15823268,"url":"https://github.com/devloop01/vecteur","last_synced_at":"2026-02-24T12:01:18.436Z","repository":{"id":203050280,"uuid":"708376511","full_name":"devloop01/vecteur","owner":"devloop01","description":"JS vector library for you next game (prob. 😉)","archived":false,"fork":false,"pushed_at":"2024-10-29T18:11:21.000Z","size":184,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-18T10:09:26.193Z","etag":null,"topics":["javascript","math","typescript","vector"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/vecteur","language":"TypeScript","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/devloop01.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-22T11:38:19.000Z","updated_at":"2024-10-29T18:10:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"738653bb-faec-493c-ae70-113f6dec3bad","html_url":"https://github.com/devloop01/vecteur","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.4482758620689655,"last_synced_commit":"f53f3181b866bbb4f7aa1a5b1694a18633a1a113"},"previous_names":["devloop01/vecteur"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/devloop01/vecteur","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Fvecteur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Fvecteur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Fvecteur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Fvecteur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devloop01","download_url":"https://codeload.github.com/devloop01/vecteur/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devloop01%2Fvecteur/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29781207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["javascript","math","typescript","vector"],"created_at":"2024-10-05T08:07:24.049Z","updated_at":"2026-02-24T12:01:18.418Z","avatar_url":"https://github.com/devloop01.png","language":"TypeScript","readme":"# Vecteur\r\n\r\nVecteur (Frech for `vector`) is a simple `vector` library for Javascript/Typescript.\r\n\r\n## Installation\r\n\r\n```bash\r\n# npm\r\nnpm install vecteur\r\n# yarn\r\nyarn add vecteur\r\n# pnpm\r\npnpm add vecteur\r\n```\r\n\r\n## Basic Usage\r\n\r\n```js\r\nimport { vec2 } from 'vecteur/2d';\r\n\r\nconst v = vec2(1, 2);\r\n\r\nconsole.log(v.toString()) // x: 1, y: 2\r\n\r\nv.add(2, 3).sub(1).mult(-1)\r\n\r\nconsole.log(v.toString()) // x: -2, y: -4\r\n```\r\n\r\nimport from specific file for smaller bundle size (tree shaking)\r\n\r\n```js\r\nimport { vec2, ... } from 'vecteur/2d'; // only 2d vector\r\nimport { vec3, ... } from 'vecteur/3d'; // only 3d vector\r\nimport { vec2, vec3, ... } from 'vecteur'; // both 2d and 3d vector\r\n```\r\n\r\n## Inspiration\r\n\r\nWhile working on a project, I needed a simple vector library. I found [Victor](https://github.com/maxkueng/victor) but it was not maintained anymore. I also found [p5.Vector](https://p5js.org/reference/#/p5.Vector) but it was too heavy for my needs. So I decided to create my own library.\r\n\r\nWhile it might not be as complete as the two libraries mentioned above, it is enough for my needs. I will add more features as I need them.\r\n\r\n### Contributing\r\n\r\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\r\n\r\n#### Built with ❤️ by [Sikriti Dakua](https://github.com/devloop01)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevloop01%2Fvecteur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevloop01%2Fvecteur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevloop01%2Fvecteur/lists"}