
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
next-web-player
Advanced tools
Минимум ререндеров. Максимум гибкости и контроля. Веб Плеер для Next.js.
simple library for convenient work with Next.js applications
In Next.js applications we use the same functions, such as click outside an element, search/sort, or for example a debounce hook. Shinigami contains popular functions for working with Next.js applications, and components that can be used in your application. Some of the basic shinigami components are pagination, endless loading and an improved Image component.
$ npm i shinigami
Close your component if click was outside of it, or if some of dependencies changed.
import {useOutSideClick} from "shinigami";
useOutSideClick({
containerRef,
setIsOpen,
dependencies,
functionInCondition,
functionAfterCondition,
});
containerRef: Component will be closed if click was outside this container,
setIsOpen: set here your SetStateAction to close Component,
dependencies: use this if you want set some dependencies,
functionInCondition?: additional function, that will work if click was outside Component,
functionAfterCondition?: additional function, that will work after closing your Component or if some of dependencies changed,
// This hook will close container if click was outside, and also if pathname was changed.
// This wont work without functionAfterCondition();
useOutSideClick({
containerRef,
dependencies: [containerRef, pathname],
setIsOpen,
functionAfterCondition: () => {
setIsOpen(false);
},
});
This is just a basic component from Next.js wrapped by div to avoid resizes on some devices.
import {NextImage} from "shinigami";
<NextImage
src={picture}
alt={username}
width='w-[128px]'
height='h-[128px]'
className='rounded-full object-cover'
/>
FAQs
Минимум ререндеров. Максимум гибкости и контроля. Веб Плеер для Next.js.
We found that next-web-player 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.