
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.
Virtual joystick with delegate function for JavaScript.
A simple, touch-friendly virtual joystick written in pure JavaScript, utilizing HTML Canvas for drawing and Pointer Events for input handling.
It's great for touch controls because it leverages the modern Pointer Events API, which unifies input from mouse, touch, and pen. This ensures a reliable and responsive experience across mobile devices, tablets, and even desktops with touchscreens, making it an ideal choice for implementing virtual game controls.
Usage example:
<head>
</head>
<body>
<script type="module">
import { Joystick } from './node_modules/purejoyjs/joystick.js'
let currentX = 0;
let currentY = 0;
let isDragging = false;
let joystickId = null;
function handleJoystickMove(id, x, y, dragging) {
joystickId = id;
currentX = x;
currentY = y;
isDragging = dragging;
}
function gameLoop() {
if (joystickId !== null) {
console.log(`handleJoystickMove: ${joystickId} ${currentX} ${currentY} ${isDragging}`);
}
joystick.draw()
requestAnimationFrame(gameLoop);
}
const joystick = new Joystick("joystick", handleJoystickMove, 240)
joystick.placeJoystickAt(0,0,1000)
requestAnimationFrame(gameLoop);
</script>
</body>

Live Demo: https://demensdeum.com/software/cube-art-project-2-online/
FAQs
Virtual joystick with delegate function for JavaScript.
The npm package purejoyjs receives a total of 0 weekly downloads. As such, purejoyjs popularity was classified as not popular.
We found that purejoyjs 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.