{"id":20767775,"url":"https://github.com/dmnsgn/primitive-octasphere","last_synced_at":"2026-03-04T05:32:18.677Z","repository":{"id":52957400,"uuid":"373291187","full_name":"dmnsgn/primitive-octasphere","owner":"dmnsgn","description":"An octasphere geometry for 3D rendering, including normals, UVs and cell indices (faces).","archived":false,"fork":false,"pushed_at":"2024-07-07T15:49:49.000Z","size":1609,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-09T13:38:36.154Z","etag":null,"topics":["geometry","gl","glsl","mesh","octasphere","primitive","simplicial-complex","stackgl","webgl"],"latest_commit_sha":null,"homepage":"https://dmnsgn.github.io/primitive-octasphere/","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/dmnsgn.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2021-06-02T20:12:09.000Z","updated_at":"2024-07-07T15:49:52.000Z","dependencies_parsed_at":"2024-11-18T01:34:56.425Z","dependency_job_id":null,"html_url":"https://github.com/dmnsgn/primitive-octasphere","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"1e9e10826f11c8ebc5d2117d75ba148e37384a4b"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/dmnsgn/primitive-octasphere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fprimitive-octasphere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fprimitive-octasphere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fprimitive-octasphere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fprimitive-octasphere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmnsgn","download_url":"https://codeload.github.com/dmnsgn/primitive-octasphere/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmnsgn%2Fprimitive-octasphere/sbom","scorecard":{"id":348196,"data":{"date":"2025-08-11","repo":{"name":"github.com/dmnsgn/primitive-octasphere","commit":"e0b0a943a5d5a6d3bdec0c8741d72143592b3f89"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-18T07:40:30.580Z","repository_id":52957400,"created_at":"2025-08-18T07:40:30.580Z","updated_at":"2025-08-18T07:40:30.580Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30072533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"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":["geometry","gl","glsl","mesh","octasphere","primitive","simplicial-complex","stackgl","webgl"],"created_at":"2024-11-17T11:33:21.860Z","updated_at":"2026-03-04T05:32:18.463Z","avatar_url":"https://github.com/dmnsgn.png","language":"JavaScript","funding_links":["https://paypal.me/dmnsgn"],"categories":[],"sub_categories":[],"readme":"# primitive-octasphere\n\n[![npm version](https://img.shields.io/npm/v/primitive-octasphere)](https://www.npmjs.com/package/primitive-octasphere)\n[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/primitive-octasphere)\n[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/primitive-octasphere)](https://bundlephobia.com/package/primitive-octasphere)\n[![dependencies](https://img.shields.io/librariesio/release/npm/primitive-octasphere)](https://github.com/dmnsgn/primitive-octasphere/blob/main/package.json)\n[![types](https://img.shields.io/npm/types/primitive-octasphere)](https://github.com/microsoft/TypeScript)\n[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-fa6673.svg)](https://conventionalcommits.org)\n[![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)\n[![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)\n[![license](https://img.shields.io/github/license/dmnsgn/primitive-octasphere)](https://github.com/dmnsgn/primitive-octasphere/blob/main/LICENSE.md)\n\nAn octasphere geometry for 3D rendering, including normals, UVs and cell indices (faces). Based on [Philip Rideout's article here](https://prideout.net/blog/octasphere/).\n\n[![paypal](https://img.shields.io/badge/donate-paypal-informational?logo=paypal)](https://paypal.me/dmnsgn)\n[![coinbase](https://img.shields.io/badge/donate-coinbase-informational?logo=coinbase)](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)\n[![twitter](https://img.shields.io/twitter/follow/dmnsgn?style=social)](https://twitter.com/dmnsgn)\n\n![](https://raw.githubusercontent.com/dmnsgn/primitive-octasphere/main/screenshot.gif)\n\n## Installation\n\n```bash\nnpm install primitive-octasphere\n```\n\n## Usage\n\n```js\nimport createOctasphere from \"primitive-octasphere\";\n\nconst geometry = createOctasphere();\n\nconsole.log(geometry);\n// {\n//   positions: [ [x, y, z], [x, y, z], ... ],\n//   cells: [ [a, b, c], [a, b, c], ... ],\n//   uvs: [ [u, v], [u, v], ... ],\n//   normals: [ [x, y, z], [x, y, z], ... ]\n// }\n```\n\n## API\n\n\u003c!-- api-start --\u003e\n\n## Functions\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#createOctasphere\"\u003ecreateOctasphere([options])\u003c/a\u003e ⇒ \u003ccode\u003e\u003ca href=\"#SimplicialComplex\"\u003eSimplicialComplex\u003c/a\u003e\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eAn octasphere geometry for 3D rendering, including normals, UVs and cell indices (faces).\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\n## Typedefs\n\n\u003cdl\u003e\n\u003cdt\u003e\u003ca href=\"#vec2\"\u003evec2\u003c/a\u003e : \u003ccode\u003eArray.\u0026lt;number\u0026gt;\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#vec3\"\u003evec3\u003c/a\u003e : \u003ccode\u003eArray.\u0026lt;number\u0026gt;\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#OctasphereOptions\"\u003eOctasphereOptions\u003c/a\u003e : \u003ccode\u003eobject\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003c/dd\u003e\n\u003cdt\u003e\u003ca href=\"#SimplicialComplex\"\u003eSimplicialComplex\u003c/a\u003e : \u003ccode\u003eobject\u003c/code\u003e\u003c/dt\u003e\n\u003cdd\u003e\u003cp\u003eGeometry definition.\u003c/p\u003e\n\u003c/dd\u003e\n\u003c/dl\u003e\n\n\u003ca name=\"createOctasphere\"\u003e\u003c/a\u003e\n\n## createOctasphere([options]) ⇒ [\u003ccode\u003eSimplicialComplex\u003c/code\u003e](#SimplicialComplex)\n\nAn octasphere geometry for 3D rendering, including normals, UVs and cell indices (faces).\n\n**Kind**: global function\n\n| Param     | Type                                                 | Default         |\n| --------- | ---------------------------------------------------- | --------------- |\n| [options] | [\u003ccode\u003eOctasphereOptions\u003c/code\u003e](#OctasphereOptions) | \u003ccode\u003e{}\u003c/code\u003e |\n\n\u003ca name=\"vec2\"\u003e\u003c/a\u003e\n\n## vec2 : \u003ccode\u003eArray.\u0026lt;number\u0026gt;\u003c/code\u003e\n\n**Kind**: global typedef\n\u003ca name=\"vec3\"\u003e\u003c/a\u003e\n\n## vec3 : \u003ccode\u003eArray.\u0026lt;number\u0026gt;\u003c/code\u003e\n\n**Kind**: global typedef\n\u003ca name=\"OctasphereOptions\"\u003e\u003c/a\u003e\n\n## OctasphereOptions : \u003ccode\u003eobject\u003c/code\u003e\n\n**Kind**: global typedef\n**Properties**\n\n| Name           | Type                | Default          |\n| -------------- | ------------------- | ---------------- |\n| [radius]       | \u003ccode\u003enumber\u003c/code\u003e | \u003ccode\u003e0.5\u003c/code\u003e |\n| [subdivisions] | \u003ccode\u003enumber\u003c/code\u003e | \u003ccode\u003e2\u003c/code\u003e   |\n\n\u003ca name=\"SimplicialComplex\"\u003e\u003c/a\u003e\n\n## SimplicialComplex : \u003ccode\u003eobject\u003c/code\u003e\n\nGeometry definition.\n\n**Kind**: global typedef\n**Properties**\n\n| Name      | Type                                     |\n| --------- | ---------------------------------------- |\n| positions | [\u003ccode\u003eArray.\u0026lt;vec3\u0026gt;\u003c/code\u003e](#vec3) |\n| normals   | [\u003ccode\u003eArray.\u0026lt;vec3\u0026gt;\u003c/code\u003e](#vec3) |\n| uvs       | [\u003ccode\u003eArray.\u0026lt;vec2\u0026gt;\u003c/code\u003e](#vec2) |\n| cells     | [\u003ccode\u003eArray.\u0026lt;vec3\u0026gt;\u003c/code\u003e](#vec3) |\n\n\u003c!-- api-end --\u003e\n\n## License\n\nMIT. See [license file](https://github.com/dmnsgn/primitive-octasphere/blob/main/LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmnsgn%2Fprimitive-octasphere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmnsgn%2Fprimitive-octasphere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmnsgn%2Fprimitive-octasphere/lists"}