
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
@saasquatch/stencil-hooks
Advanced tools
Let's you use React-style hooks in your Stencil components. Based on haunted.
Prefered distribution is via NPM,
npm i @saasquatch/stencil-hooks
To use the library you need to call withHooks in the constructor of your component, and then you can use hooks inside of your render function.
import { withHooks, useState } from '@saasquatch/stencil-hooks';
@Component({
tag: 'my-counter',
})
export class Counter {
constructor() {
withHooks(this);
}
render() {
const [count, setCount] = useState(0);
return (
<div>
{count} <button onClick={() => setCount(count + 1)}>+1</button>
</div>
);
}
disconnectedCallback() {
// required for `useEffect` cleanups to run
}
}
See it in action on the live demo.
stencil-store and stencil-redux and stencil-state-tunnel. stencil-hooks uses the same forceUpdate from @stencil/core that is used by stencil-store.This library re-exports most of haunted, but swaps out the Context implementation with dom-context.
FAQs
Stencil Component Starter
We found that @saasquatch/stencil-hooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.