{"_id":"@absolutejs/dataset-gleif","_rev":"3-7b853fb0ea3d384215851a287b6b21e1","name":"@absolutejs/dataset-gleif","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@absolutejs/dataset-gleif","version":"0.0.1","keywords":["absolutejs","discover","dataset","gleif","lei","company-data"],"author":"Alex Kahn","license":"Apache-2.0","_id":"@absolutejs/dataset-gleif@0.0.1","maintainers":[{"name":"alexkahndev","email":"alexkahn2019@gmail.com"}],"dist":{"shasum":"8ee1c6ae22f78767f5999ec0d3702de07f1d72eb","tarball":"https://registry.npmjs.org/@absolutejs/dataset-gleif/-/dataset-gleif-0.0.1.tgz","fileCount":5,"integrity":"sha512-3hQDNtnLDY99HBWAITaQV9rgZdtH3bF1+Fhh9LzvqA2U0F/3/FTUDcCZn/WomuEkpd3fVBxZ+Z403ya9p1/CKg==","signatures":[{"sig":"MEUCIQD1TA6GM/me8agw+23Ik7HNkxGGumtms+2VzF+i8hjEkwIgUOFGJ9NPy4V7EAyhWhNdREP2uRZlgwawoi84IbfPNSo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15083},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","shasum":"8ee1c6ae22f78767f5999ec0d3702de07f1d72eb","scripts":{"build":"rm -rf dist && bun build src/index.ts --outdir dist --target=bun --external @absolutejs/discover && tsc --emitDeclarationOnly --project tsconfig.json","release":"bun run build && bun publish","typecheck":"tsc --noEmit"},"_npmUser":{"name":"alexkahndev","email":"alexkahn2019@gmail.com"},"_integrity":"sha512-3hQDNtnLDY99HBWAITaQV9rgZdtH3bF1+Fhh9LzvqA2U0F/3/FTUDcCZn/WomuEkpd3fVBxZ+Z403ya9p1/CKg==","repository":{"url":"https://github.com/absolutejs/dataset-adapters.git","type":"git","directory":"gleif"},"_npmVersion":"10.8.3","description":"GLEIF (Global LEI) DatasetSource adapter for @absolutejs/discover — resolve a company to its official legal entity (LEI, jurisdiction, country) from open CC0 registry data.","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"5.8.3","@absolutejs/discover":"^0.0.3"},"peerDependencies":{"@absolutejs/discover":">=0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dataset-gleif_0.0.1_1780710771762_0.5429168101728259","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@absolutejs/dataset-gleif","version":"0.0.2","keywords":["absolutejs","discover","dataset","gleif","lei","company-data"],"author":"Alex Kahn","license":"Apache-2.0","_id":"@absolutejs/dataset-gleif@0.0.2","maintainers":[{"name":"alexkahndev","email":"alexkahn2019@gmail.com"}],"dist":{"shasum":"a7b014973ae1bf1e9d6705b7e02968ed3a57eafa","tarball":"https://registry.npmjs.org/@absolutejs/dataset-gleif/-/dataset-gleif-0.0.2.tgz","fileCount":6,"integrity":"sha512-Hc+JRIpSTw3UJfAeQaZDsPR+a8r37NSw7yQ7R++BSWYJ2NR9QluZcOv0NYfsAmoWh8ORpWWOs/DO2PRC5Vkjkw==","signatures":[{"sig":"MEQCIEazYJ2lj/rkd8Lkdsy3ap3W71xvMkZIEDgmI0VHK395AiA2cVRw1LM2UfEMXcmD8YmHV8hKi7U6elDEDDbJirRU4w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16201},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","shasum":"a7b014973ae1bf1e9d6705b7e02968ed3a57eafa","scripts":{"build":"rm -rf dist && bun build src/index.ts --outdir dist --target=bun --external @absolutejs/discover && tsc --emitDeclarationOnly --project tsconfig.json","release":"bun run build && bun publish","typecheck":"tsc --noEmit"},"_npmUser":{"name":"alexkahndev","email":"alexkahn2019@gmail.com"},"_integrity":"sha512-Hc+JRIpSTw3UJfAeQaZDsPR+a8r37NSw7yQ7R++BSWYJ2NR9QluZcOv0NYfsAmoWh8ORpWWOs/DO2PRC5Vkjkw==","repository":{"url":"https://github.com/absolutejs/dataset-adapters.git","type":"git","directory":"gleif"},"_npmVersion":"10.8.3","description":"GLEIF (Global LEI) DatasetSource adapter for @absolutejs/discover — resolve a company to its official legal entity (LEI, jurisdiction, country) from open CC0 registry data.","directories":{},"_nodeVersion":"24.3.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@types/bun":"latest","typescript":"5.8.3","@absolutejs/discover":"^0.0.3"},"peerDependencies":{"@absolutejs/discover":">=0.0.3"},"_npmOperationalInternal":{"tmp":"tmp/dataset-gleif_0.0.2_1780711014423_0.6379160994868409","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"author":{"name":"Alex Kahn"},"description":"GLEIF (Global LEI) DatasetSource adapter for @absolutejs/discover — resolve a company to its official legal entity (LEI, jurisdiction, country) from open CC0 registry data.","devDependencies":{"@absolutejs/discover":"^0.0.3","@types/bun":"latest","typescript":"5.8.3"},"keywords":["absolutejs","discover","dataset","gleif","lei","company-data"],"bin":{"gleif-snapshot":"dist/snapshot.js"},"license":"Apache-2.0","main":"./dist/index.js","name":"@absolutejs/dataset-gleif","peerDependencies":{"@absolutejs/discover":">=0.0.3"},"publishConfig":{"access":"public"},"repository":{"directory":"gleif","type":"git","url":"git+https://github.com/absolutejs/dataset-adapters.git"},"scripts":{"build":"rm -rf dist && bun build src/index.ts --outdir dist --target=bun --external @absolutejs/discover && bun build scripts/snapshot.ts --outdir dist --target=bun --external @absolutejs/discover && tsc --emitDeclarationOnly --project tsconfig.json","release":"bun run build && bun publish","typecheck":"tsc --noEmit"},"type":"module","types":"./dist/index.d.ts","version":"0.0.3","_id":"@absolutejs/dataset-gleif@0.0.3","gitHead":"145e2d237a4a962069655288be21086aee146ab9","bugs":{"url":"https://github.com/absolutejs/dataset-adapters/issues"},"homepage":"https://github.com/absolutejs/dataset-adapters#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-+6g2+NUnga8ugECS9/vUusmOxUfKfzGVoCpvyMfv7pLPJnZ6D09hSLwxUQ1CaEoydNZnZpRLyxWcjXM9pw/dtw==","shasum":"0702b64052b19b54b3ee431da3811d81fac12c8c","tarball":"https://registry.npmjs.org/@absolutejs/dataset-gleif/-/dataset-gleif-0.0.3.tgz","fileCount":7,"unpackedSize":22858,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDqjqVQfJLoxbpIPALoP9btU8eLUMbfOlYSioTbt7cQGQIhAP45JftMN8e9ekMEMFBZ4kGZMwHXWVQ9j3J+oMW90ksP"}]},"_npmUser":{"name":"alexkahndev","email":"alexkahn2019@gmail.com"},"directories":{},"maintainers":[{"name":"alexkahndev","email":"alexkahn2019@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dataset-gleif_0.0.3_1780772844788_0.22344298276215846"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-06T01:52:51.665Z","modified":"2026-06-06T19:07:25.037Z","0.0.1":"2026-06-06T01:52:51.912Z","0.0.2":"2026-06-06T01:56:54.601Z","0.0.3":"2026-06-06T19:07:24.904Z"},"author":{"name":"Alex Kahn"},"license":"Apache-2.0","keywords":["absolutejs","discover","dataset","gleif","lei","company-data"],"repository":{"directory":"gleif","type":"git","url":"git+https://github.com/absolutejs/dataset-adapters.git"},"description":"GLEIF (Global LEI) DatasetSource adapter for @absolutejs/discover — resolve a company to its official legal entity (LEI, jurisdiction, country) from open CC0 registry data.","maintainers":[{"name":"alexkahndev","email":"alexkahn2019@gmail.com"}],"readme":"# @absolutejs/dataset-gleif\n\nA [`@absolutejs/discover`](https://www.npmjs.com/package/@absolutejs/discover)\n**DatasetSource** over [GLEIF](https://www.gleif.org/en/about/open-data) — the\nGlobal Legal Entity Identifier registry, published as open **CC0** data.\n\n```ts\nimport { gleifSource } from \"@absolutejs/dataset-gleif\";\nimport { discoverContacts } from \"@absolutejs/discover\";\n\nconst gleif = gleifSource();\n\nawait gleif.findCompany({ name: \"Stripe, Inc.\" });\n// → { name: \"STRIPE, INC.\", country: \"US\", registryId: \"<LEI>\", source: \"gleif\" }\n\n// Or hand it to discover as a seed source consulted before LLM/web:\nawait discoverContacts({ company: \"Acme\" }, { sources: [gleif], extract });\n```\n\n## What it does — and doesn't\n\nGLEIF is **legal entities, not people**, so this adapter implements **`findCompany`\nonly**. It canonicalizes a name to its official legal entity and returns the\n**LEI** (`registryId`) — the key to follow up for parent/subsidiary relationships\nin the GLEIF graph — plus the registered country.\n\n**Honest limits:** GLEIF carries **no domains**, so matching is by name and is\ninherently ambiguous — a fulltext `\"Stripe\"` can surface an unrelated `\"Stripe\nB.V.\"`. Treat a hit as *\"a legal entity by this name\"*, not a certainty. It also\nhas no industry, headcount, or contacts — pair it with `@absolutejs/discover`\n(people) and `@absolutejs/enrich` (emails). Defaults to ACTIVE entities only.\n\n## Offline snapshot — no rate limits, no network\n\nFor high-volume or offline use, build a local SQLite index from GLEIF's full\n**Golden Copy** dump (~2.7M entities) and point the adapter at it:\n\n1. **Download** the Golden Copy (LEI2, CSV or `.zip`) from\n   <https://goldencopy.gleif.org> (it's CC0). Their bulk host WAF-blocks many\n   data-center IPs, so fetch it from a browser / allowed network — this tool does\n   not download it for you.\n2. **Build** the snapshot:\n   ```sh\n   bunx gleif-snapshot golden-copy.zip gleif-snapshot.sqlite\n   # or: bun run node_modules/@absolutejs/dataset-gleif/dist/snapshot.js <file> [out]\n   ```\n3. **Use** it:\n   ```ts\n   gleifSource({ snapshotPath: \"gleif-snapshot.sqlite\" });\n   ```\n   `findCompany` resolves from the snapshot — instant, offline, zero rate limits —\n   falling back to the live API only on a miss. Re-run the generator to refresh\n   (GLEIF republishes 3×/day). Snapshot reads use `bun:sqlite` (loaded lazily;\n   live-only use needs nothing).\n\nApache-2.0. Pure importer of public CC0 data — the self-collected, self-healing\ndataset is deliberately not part of any adapter.\n","readmeFilename":"README.md","homepage":"https://github.com/absolutejs/dataset-adapters#readme","bugs":{"url":"https://github.com/absolutejs/dataset-adapters/issues"}}