Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
solid-hcaptcha
Advanced tools
This is an unofficial port of
@hcaptcha/react-hcaptcha
for Solid.
hCaptcha is a drop-replacement for reCAPTCHA that protects user privacy, rewards websites, and helps companies get their data labeled.
Sign up at hCaptcha to get your sitekey today. You need a sitekey to use this library.
You can install this library via your favorite package manager.
# NPM
npm install solid-hcaptcha --save
# Yarn
yarn add solid-hcaptcha
# PNPm
pnpm add solid-hcaptcha
You can see multiple use cases on the example website.
import HCaptcha from "solid-hcaptcha";
const App: Component = () => {
return (
<HCaptcha
sitekey="10000000-ffff-ffff-ffff-000000000001"
onVerify={token => console.log(token)}
/>
);
};
export default App;
import type { HCaptchaFunctions } from "solid-hcaptcha";
import HCaptcha from "solid-hcaptcha";
const App: Component = () => {
let hcaptcha: HCaptchaFunctions | undefined;
const submitCaptcha = async () => {
if (!hcaptcha) return; // Check if the widget has loaded.
// Execute the captcha and get the response.
const response = await hcaptcha.execute();
console.log(response);
}
return (
<div>
<HCaptcha
sitekey="10000000-ffff-ffff-ffff-000000000001"
onLoad={hcaptcha_instance => (hcaptcha = hcaptcha_instance)}
size="invisible"
/>
<button onClick={submitCaptcha}>
Open captcha
</button>
</div>
);
};
export default App;
git clone https://github.com/Vexcited/solid-hcaptcha
I use pnpm
as the package manager, so run pnpm install
to install the dependencies.
pnpm build
: Builds to the dist
folder.pnpm lint
: Checks if there's any TypeScript error.pnpm release
: Script that I use to release new versions of this package.You can see how to contribute to the example website in the example
folder.
FAQs
hCaptcha Component Library for Solid.
The npm package solid-hcaptcha receives a total of 144 weekly downloads. As such, solid-hcaptcha popularity was classified as not popular.
We found that solid-hcaptcha demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.