{"name":"a5-js","version":"1.0.0-beta.3","license":"Apache-2.0","_id":"a5-js@1.0.0-beta.3","maintainers":[{"name":"felixpalmer","email":"felixpalmer+npm@gmail.com"}],"homepage":"https://github.com/felixpalmer/a5#readme","bugs":{"url":"https://github.com/felixpalmer/a5/issues"},"dist":{"shasum":"2041b3170aa0a7452bfef03e8e9ad12cad55f22c","tarball":"http://registry-npm.ywwl.com/a5-js/download/a5-js-1.0.0-beta.3.tgz","fileCount":11,"integrity":"sha512-pJ9tXy3ZANBw7flQgECLg82x/OHxN7tl1RsVURgZWl12KQ9XJkH9pWCYT1cGRsugHX2gsNy/vDObY6v+sNRg5g==","signatures":[{"sig":"MEUCIQDOKMavcdSCrLznjgErcN8rGeyky9Hsx6v8RnvChAb3yAIgORl4SmZ+6cLP3DPMOGEoxDHBg49KyXXHkVYDgZ/frUQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIAy44XrYE9XEnkx77b8TZgl/HOavOCAJ6V5m1EDLD0XNAiBkFjAbov2IcFNyoDu31reOLrhWiXWQ+IkSb1VERqYtTA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/a5-js@1.0.0-beta.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1737144,"size":446481,"noattachment":false,"key":"/a5-js/-/a5-js-1.0.0-beta.3.tgz"},"main":"./dist/a5.cjs","type":"module","types":"./dist/a5.d.ts","module":"./dist/a5.js","exports":{".":{"default":{"types":"./dist/a5.d.ts","default":"./dist/a5.js"},"require":{"types":"./dist/a5.d.ts","default":"./dist/a5.cjs"}}},"gitHead":"dfec8837bea213a7e5af738cb800fdce14ecefa4","scripts":{"test":"vitest","bench":"tsup benchmarks/a5-bench.ts --no-config --format esm --target es2020 --out-dir benchmarks/.build --silent && vitest bench --run","build":"tsup","start":"tsup --watch","format":"prettier --write \"**/*.{ts,tsx,js,jsx,cjs,mjs,json}\"","coverage":"vitest run --coverage","format:check":"prettier --check \"**/*.{ts,tsx,js,jsx,cjs,mjs,json}\"","sync-fixtures":"python3 scripts/sync_fixtures.py","verify-snippets":"yarn build && node scripts/verify-snippets.cjs","check-api-parity":"python3 scripts/check_api_parity.py --check","generate-fixtures":"yarn build && node scripts/generate-fixtures.cjs"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"714118ef-41d3-49a9-8255-ee9e082bb2f5"}},"repository":{"url":"git+https://github.com/felixpalmer/a5.git","type":"git"},"_npmVersion":"11.21.0","description":"A5 - Global Pentagonal Geospatial Index","directories":{},"sideEffects":false,"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"packageManager":"yarn@4.6.0","readmeFilename":"README.md","devDependencies":{"tsup":"^8.0.2","h3-js":"^4.4.0","vitest":"^1.3.1","prettier":"^3.3.3","gl-matrix":"^3.4.3","node-fetch":"^3.3.1","typescript":"^5.0.0","s2-geometry":"^1.2.10"},"_npmOperationalInternal":{"tmp":"tmp/a5-js_1.0.0-beta.3_1792008155588_0.8395016095770071","host":"s3://npm-registry-packages-npm-production"},"readme":"<img src=\"https://raw.githubusercontent.com/felixpalmer/a5/main/website/static/images/a5-globe.jpg\" alt=\"A5 logo made of pentagonal cells flying onto a globe\" width=\"100%\" />\n\nA5 is a geospatial index that partitions the world into [pentagonal cells](https://a5geo.org/examples/teohedron). The cells are available at [31 resolution levels](https://a5geo.org/examples/hierarchy), from a handful covering the whole world down to less than 30mm², and every cell at a given resolution has [exactly the same area](https://a5geo.org/examples/area). Each cell is identified by a 64-bit integer, which is frozen from v1.0: an A5 cell ID stored today will refer to the same place in the future.\n\nOnce data is in cells, very different datasets can be joined, aggregated and compared directly: points can be counted per cell, as with the [density of holiday rentals](https://a5geo.org/examples/airbnb) across a city, and regions such as countries or parcels of land become [coverings](https://a5geo.org/docs/api-reference/coverings), sets of cells which support union, intersection and difference.\n\n## Key strengths\n\n- **Equal area, single topology**: every cell is an exactly equal-area pentagon with 5 neighbors, so aggregates are free of bias from unequal cell sizes. See [A5 vs H3](https://a5geo.org/docs/recipes/a5-vs-h3).\n- **Built for big data**: cell IDs follow a [space-filling curve](https://a5geo.org/examples/teohedral-curve) that never crosses itself, so polygons and coverings are compact ID ranges. Billions of cells can be filled, combined and counted in seconds.\n- **Fast & rich API**: high-level functions for [indexing](https://a5geo.org/docs/api-reference/indexing), [hierarchy](https://a5geo.org/docs/api-reference/hierarchy), [traversal](https://a5geo.org/docs/api-reference/traversal) and [coverings](https://a5geo.org/docs/api-reference/coverings), with a native Rust core.\n- **Strong ecosystem**: official libraries for [TypeScript](https://a5geo.org/docs/quickstart/javascript), [Python](https://a5geo.org/docs/quickstart/python) and [Rust](https://a5geo.org/docs/quickstart/rust), with [DuckDB](https://a5geo.org/docs/quickstart/duckdb), [PostgreSQL](https://a5geo.org/docs/quickstart/postgresql), R, QGIS and deck.gl integrations. See the [Ecosystem](https://a5geo.org/docs/ecosystem).\n\n## Where to start\n\n- [Quickstart](https://a5geo.org/docs/quickstart/javascript): index your first cell in your language of choice\n- [DuckDB playground](https://a5geo.org/examples/duckdb-playground): use DuckDB to experiment with A5\n- [Examples](https://a5geo.org/examples): interactive examples showcasing the system\n- [API Reference](https://a5geo.org/docs/api-reference): every function, with snippets in each language\n- [What's new](https://a5geo.org/docs/whats-new): the changes in v1.0\n\nA5 is [open source](https://github.com/felixpalmer/a5) and licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.txt).\n\n## Links\n\n- Website: [a5geo.org](https://a5geo.org)\n- Bugs or feature requests: [GitHub Issues](https://github.com/felixpalmer/a5/issues)\n- Questions and discussion: [join the community on Slack](https://join.slack.com/t/a5-3ap4392/shared_invite/zt-35rpdc904-2vcsoikrJKFRJF7ncN1fmw)\n","publish_time":1792008155706,"_cnpm_publish_time":1792008155706,"dist-tags":{"beta":"1.0.0-beta.4","latest":"1.0.0"}}