
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
@hcaptcha/loader
Advanced tools
This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling.
This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling. It also includes a retry mechanism that will attempt to load the hCaptcha script several times in the event if fails to load due to a network or unforeseen issue.
hCaptcha is a drop-replacement for reCAPTCHA that protects user privacy.
Sign up at hCaptcha to get your sitekey today. You need a sitekey to use this library.
npm install @hcaptcha/loader
import { hCaptchaLoader } from '@hcaptcha/loader';
await hCaptchaLoader();
hcaptcha.render({
sitekey: '<your_sitekey>'
});
const { response } = await hcaptcha.execute({ async: true });
| Name | Values/Type | Required | Default | Description |
|---|---|---|---|---|
loadAsync | Boolean | No | true | Set if the script should be loaded asynchronously. |
cleanup | Boolean | No | true | Remove script tag after setup. |
crossOrigin | String | No | - | Set script cross origin attribute such as "anonymous". |
scriptSource | String | No | https://js.hcaptcha.com/1/api.js | Set script source URI. Takes precedence over secureApi. |
scriptLocation | HTMLElement | No | document.head | Location of where to append the script tag. Make sure to add it to an area that will persist to prevent loading multiple times in the same document view. |
secureApi | Boolean | No | false | See enterprise docs. |
apihost | String | No | - | See enterprise docs. |
assethost | String | No | - | See enterprise docs. |
endpoint | String | No | - | See enterprise docs. |
hl | String | No | - | See enterprise docs. |
host | String | No | - | See enterprise docs. |
imghost | String | No | - | See enterprise docs. |
recaptchacompat | String | No | - | See enterprise docs. |
reportapi | String | No | - | See enterprise docs. |
sentry | Boolean | No | - | See enterprise docs. |
custom | Boolean | No | - | See enterprise docs. |
FAQs
This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling.
The npm package @hcaptcha/loader receives a total of 167,500 weekly downloads. As such, @hcaptcha/loader popularity was classified as popular.
We found that @hcaptcha/loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.