
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
@stackmeister/react-use-document-visibility
Advanced tools
@stackmeister/react-use-document-visibility ===========================================
A hook that checks if a screen is currently rendered by its system or not.
Mostly relies on document.hidden and the visibilitychange event.
This hook can help with green coding, to stop animations and heavy stuff when the app is not currently on top or rendered.
// Yarn
yarn add @stackmeister/react-use-document-visibility
// NPM
npm i @stackmeister/react-use-document-visibility
TypeScript typings are included (No @types/ package needed)
import useDocumentVisibility from '@stackmeister/react-use-document-visibility'
const App = () => {
const { visible } = useDocumentVisibility()
return (
<div>
{visible && <HeavyComponent />}
</div>
)
}
FAQs
@stackmeister/react-use-document-visibility ===========================================
The npm package @stackmeister/react-use-document-visibility receives a total of 7 weekly downloads. As such, @stackmeister/react-use-document-visibility popularity was classified as not popular.
We found that @stackmeister/react-use-document-visibility demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.