
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@markharrison/markjslaserbeam
Advanced tools
🚀 A lightweight JavaScript library for creating laser beam effects on HTML5 Canvas, designed for web games and interactive applications.
MarkJSLaserbeam is a lightweight JavaScript library for rendering laser beam effects in web games and interactive applications. Built for performance and easy integration with HTML5 Canvas.
• Fast, dependency-free ES Module • Realistic laser beam rendering with customizable color, width, and glow • Designed for game loops and interactive effects • Performance optimized for real-time animation • Works in all modern browsers with Canvas support
npm install @markharrison/markjslaserbeam --save
Or include markjslaserbeam.js directly in your HTML.
import { MarkJSLaserbeam } from "@markharrison/markjslaserbeam";
const canvas = document.getElementById("myCanvas");
const laser = new MarkJSLaserbeam(canvas);
// Add laser on click
canvas.addEventListener("click", (e) => {
const rect = canvas.getBoundingClientRect();
const x = e.clientX - rect.left;
const y = e.clientY - rect.top;
laser.fire({
x1: 100,
y1: 100,
x2: x,
y2: y,
color: "#FF0000",
width: 8,
});
});
// Game loop
function gameLoop(deltaTime) {
laser.update(deltaTime);
laser.render();
requestAnimationFrame(gameLoop);
}
requestAnimationFrame(gameLoop);
See laserbeammark.md for detailed developer documentation, API reference, and advanced usage.
Open index.html in your browser to explore and test laser beam effects and customization options.
MIT License - see LICENSE for details.
FAQs
A reusable ui system for laserbeam effects.
We found that @markharrison/markjslaserbeam 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.