Node RDAP is a client library designed for Node.js environments, providing an interface to the Registration Data Access Protocol (RDAP). It serves as a modern alternative to traditional Whois lookups, enabling developers to programmatically retrieve registration data for domains, IPv4 and IPv6 addresses, and Autonomous System Numbers (ASNs). The current stable version is 0.5.0, indicating it is under active development and may undergo further API refinements before reaching a 1.0 stable release. While a specific release cadence isn't explicitly published, pre-1.0 versions typically imply iterative updates. Its key differentiators include native support for modern Node.js (requiring Node.js >=20.19.0 or >=22.12.0), adherence to the RDAP standard, and the provision of distinct, type-safe functions for different lookup types (domain, IP, autnum). It ships with TypeScript types, enhancing the developer experience for statically typed projects, and is primarily intended for server-side use cases requiring public registration data.
npm install node-rdapVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to perform domain, IPv4, IPv6, and Autonomous System Number (ASN) RDAP lookups using the async/await pattern.
Refer to the official GitHub repository for the latest documentation and changelog before upgrading minor or patch versions.
Implement proper caching mechanisms, introduce delays between successive queries, or integrate with a proxy service that handles rate limiting across multiple requests.
Thoroughly inspect the structure of results from various TLDs and IP ranges. Implement robust error handling and null/undefined checks when accessing properties within the RDAP response object.
Upgrade your Node.js runtime to at least version 20.19.0 or 22.12.0 to meet the engine requirements.
Ensure your project uses ES modules (`import { domain } from 'node-rdap';`) and that your `package.json` specifies `"type": "module"` or files have `.mjs` extensions.Verify network connectivity, check firewall rules, and ensure the target RDAP server is operational. This could also indicate rate limiting or IP blocking from the server side.
Increase the request timeout if possible (though the library might not expose this), or retry the request after a short delay. Investigate the health and responsiveness of the target RDAP server.
Add explicit checks for `null` or `undefined` before accessing properties of the RDAP lookup result. Wrap property access in `if` statements or use optional chaining (`?.`) to gracefully handle missing data.
No dependency data recorded yet.