
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
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.
The npm package next-web-player receives a total of 0 weekly downloads. As such, next-web-player popularity was classified as not popular.
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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.