
Research
/Security News
GlassWASM: WebAssembly Malware Found in Trojanized Open VSX Extensions
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.
@opensite/hooks
Advanced tools
Performance-first React hooks for UI state, storage, events, and responsive behavior with tree-shakable exports.

Performance-first React hooks for UI state, storage, events, and responsive behavior. Designed to be tree-shakable, SSR-safe, and CDN-ready.
@opensite/hooks provides a focused set of high-performance React hooks that work across OpenSite and any open-source React project. Every hook is built for minimal bundle size, avoids unnecessary renders, and is safe for SSR.
pnpm add @opensite/hooks
Peer deps: react and react-dom (17+).
import { useBoolean, useDebounceValue } from "@opensite/hooks";
export function SearchBox() {
const [query, setQuery] = React.useState("");
const debouncedQuery = useDebounceValue(query, 300);
const { value: isOpen, setTrue, setFalse } = useBoolean(false);
React.useEffect(() => {
if (debouncedQuery) {
// fetch results
}
}, [debouncedQuery]);
return (
<>
<button onClick={setTrue}>Open</button>
{isOpen && (
<div>
<input value={query} onChange={(e) => setQuery(e.target.value)} />
<button onClick={setFalse}>Close</button>
</div>
)}
</>
);
}
useBoolean - Boolean state with stable togglers.useDebounceValue - Debounced state for inputs and API calls.useDebounceCallback - Debounced function wrapper with optional max wait.useLocalStorage - Persistent state with SSR-safe hydration.useSessionStorage - Session scoped storage state.useOnClickOutside - Dismiss components on outside clicks.useMediaQuery - Responsive JavaScript behavior.useEventListener - Safe event binding with cleanup.useIsClient - Hydration-safe client checks.useCopyToClipboard - Clipboard helper with fallback.usePrevious - Previous value tracking.useThrottle - Throttled state for scroll/resize events.useResizeObserver - ResizeObserver-based size tracking.useHover - Hover state with pointer events.useIsomorphicLayoutEffect - SSR-safe layout effect.useMap - Immutable Map state helpers.Prefer granular imports to minimize bundle size:
import { useMediaQuery } from "@opensite/hooks/core/useMediaQuery";
import { useBoolean } from "@opensite/hooks/hooks/useBoolean";
<script src="https://cdn.jsdelivr.net/npm/@opensite/hooks@0.1.0/dist/browser/opensite-hooks.umd.js"></script>
<script>
const { useBoolean } = window.OpensiteHooks;
</script>
FAQs
Performance-first React hooks for UI state, storage, events, and responsive behavior with tree-shakable exports.
The npm package @opensite/hooks receives a total of 57 weekly downloads. As such, @opensite/hooks popularity was classified as not popular.
We found that @opensite/hooks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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
The trojanized extensions use TinyGo-compiled WebAssembly and Solana transaction memos to resolve command-and-control infrastructure.

Security News
Anthropic says the directive cited national security concerns over a narrow jailbreak, but offered no specific technical details.

Security News
A network of 152 Chrome live wallpaper extensions hid ad tracking and made extension-driven traffic look like Google search clicks.