
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@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.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.