{"_id":"@aymenkits/location-addresses","name":"@aymenkits/location-addresses","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aymenkits/location-addresses","version":"1.0.0","description":"Generic user address book — CRUD with default-flipping, coordinate validation, an app-extension payload (H3 cells, placeId, …) and a Geocoder seam with a Mapbox adapter (autocomplete + reverse).","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/location-kit.git","directory":"packages/addresses"},"keywords":["address","geocoding","mapbox","address-book","addresses"],"engines":{"node":">=18"},"sideEffects":false,"homepage":"https://github.com/aymenmokhtarikouki/location-kit#readme","bugs":{"url":"https://github.com/aymenmokhtarikouki/location-kit/issues"},"author":{"name":"Aymen Mokhtari"},"_id":"@aymenkits/location-addresses@1.0.0","gitHead":"54cb6f04bcb7490b20f6050b37dfe9d3ca2e4c24","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-rEygGEWU8lDSvF5iYJFJQodrBIJVbh2tVlWiJpGRFEiL3KjbHLZEuLvn3KaFHE1P3jF4bSlJya/CaDidhRZGlw==","shasum":"ab8fb5ab02f7ccf4cb9494dae0beff39fbc57dce","tarball":"https://registry.npmjs.org/@aymenkits/location-addresses/-/location-addresses-1.0.0.tgz","fileCount":23,"unpackedSize":31731,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCtmnpYIVvvHqquDdLLQCFBMNs1jP8bfL6B98cUMTN5KAIgahmPJWAYbtf6D42STPWxr6qWT/BfcEUm6gXuqCPqlko="}]},"_npmUser":{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"},"directories":{},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/location-addresses_1.0.0_1783791515751_0.8514034763782061"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T17:38:35.587Z","1.0.0":"2026-07-11T17:38:35.896Z","modified":"2026-07-11T17:38:36.064Z"},"maintainers":[{"name":"aymen-mokhtari","email":"ayman.mokhtari@proton.me"}],"description":"Generic user address book — CRUD with default-flipping, coordinate validation, an app-extension payload (H3 cells, placeId, …) and a Geocoder seam with a Mapbox adapter (autocomplete + reverse).","homepage":"https://github.com/aymenmokhtarikouki/location-kit#readme","keywords":["address","geocoding","mapbox","address-book","addresses"],"repository":{"type":"git","url":"git+https://github.com/aymenmokhtarikouki/location-kit.git","directory":"packages/addresses"},"author":{"name":"Aymen Mokhtari"},"bugs":{"url":"https://github.com/aymenmokhtarikouki/location-kit/issues"},"license":"MIT","readme":"# @aymenkits/location-addresses\n\nAddress book (CRUD + single-default flip logic) generic over your extra columns, plus a Geocoder seam with a ready Mapbox forward-geocoding adapter.\n\n## Install\n\n```bash\nnpm install @aymenkits/location-addresses\n```\n\nInstalls with it: nothing else — zero dependencies.\n\n## You provide\n\n- `AddressStore` — your table (lean, or enriched with e.g. precomputed H3 columns)\n- For geocoding: your Mapbox token (server-side)\n- Optional `onWrite` hook (e.g. compute H3 cells via @aymenkits/clustermap-core)\n\nThe package never owns tables, never imports an ORM, HTTP framework, or\nprovider SDK it can take as a parameter — storage and delivery are seams your\napp implements on its own stack.\n\n## Quick example\n\n```ts\nimport { createAddressService, mapboxGeocoder } from '@aymenkits/location-addresses'\n\nconst addresses = createAddressService({ store, onWrite })\nconst geocoder = mapboxGeocoder({ token: process.env.MAPBOX_TOKEN })\n```\n\n## Pairs with\n\n- `@aymenkits/clustermap-core` computeCells in the onWrite hook\n- `@aymenkits/auth-express` guards the routes\n\nKits pair **by shape, never by import** — pass the sibling kit, your own\nservice, or a stub in tests.\n\n## Docs\n\nFull contracts and integration guides live in the repo:\nhttps://github.com/aymenmokhtarikouki/location-kit (`contracts/`, `docs/`).\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-c4d34c8ebf0e2f49dd79b79294e274ab"}