
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

A lightweight command menu library that supercharges your web app's navigation and feature discoverability. It's framework-agnostic, headless, composable, <6kB, and has no runtime dependencies.
npm install qursor
import "qursor/styles.css";
import type { CursorComponentProps } from "qursor";
const DefaultCursor = ({ isHidden }: CursorComponentProps) => (
<div
style={{
width: 16,
height: 16,
backgroundColor: "#333",
borderRadius: "50%",
transform: "translate(-50%, -50%)",
opacity: isHidden ? 0 : 1,
}}
/>
);
const HoverCursor = ({ isHidden }: CursorComponentProps) => (
<div
style={{
width: 32,
height: 32,
border: "2px solid #0066ff",
borderRadius: "50%",
transform: "translate(-50%, -50%)",
opacity: isHidden ? 0 : 1,
}}
/>
);
import { CursorProvider } from "qursor";
const variants = {
default: DefaultCursor,
hover: HoverCursor,
};
function App() {
return (
<CursorProvider variants={variants}>
{/* Your app content */}
</CursorProvider>
);
}
// Declarative approach
<button data-cursor="hover">Hover me!</button>
// Component approach
<CursorTarget variant="hover">
<button>Hover me!</button>
</CursorTarget>
// Programmatic approach
function MyComponent() {
const { setVariant } = useCursor();
return (
<button onClick={() => setVariant('hover')}>
Click to change cursor
</button>
);
}
function MyComponent() {
const { pushVariant } = useCursor();
const handleAsync = async () => {
pushVariant("loading", { timeout: 3000 });
await fetchData();
// Cursor automatically reverts after timeout or you can popVariant()
};
}
function DraggableItem() {
const { pushVariant, popVariant } = useCursor();
return (
<div
onMouseDown={() => pushVariant("drag")}
onMouseUp={() => popVariant()}
onMouseLeave={() => popVariant()}
>
Draggable content
</div>
);
}
function RoutePage() {
const { setVariant } = useCursor();
useEffect(() => {
setVariant("page-specific");
return () => setVariant("default");
}, []);
}
function ThemedApp() {
const { setVariantComponent } = useCursor();
const applyDarkTheme = () => {
const DarkCursor = () => <div style={{ background: "#fff" }}>•</div>;
setVariantComponent("default", DarkCursor);
};
}
function InteractiveCanvas() {
const { variant, pushVariant, popVariant } = useCursor();
return (
<div
onMouseEnter={() => pushVariant("canvas")}
onMouseLeave={() => popVariant()}
onMouseDown={() => pushVariant("drawing")}
onMouseUp={() => popVariant()}
>
Canvas content
</div>
);
}
prefers-reduced-motion: reduceFalls back to system cursor on unsupported browsers.
FAQs
Plug n' play cursors for React.
We found that qursor demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.