Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@input-kit/confetti

Latest version: v0.1.2

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: malicious-dev
1 Versions
21 Downloads

Scan summary

@input-kit/confetti was last scanned on 27 Nov 2026 at version 0.1.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 27 Nov 2026.
  • Findings: No rules fired in version 0.1.2.
  • Downloads: 21 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.2 LATEST 27 Nov 2026 No rules fired

No rules fired in 0.1.2

Findings

Findings for v0.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@input-kit/confetti

Lightweight, zero-dependency confetti effect for the browser. Built with the Canvas API, fully typed, SSR-safe, and cancellable.

Features

  • Canvas-based particle renderer — no external dependencies
  • Configurable launch angle, spread, gravity, drift, and particle count
  • Built-in celebrate() multi-burst preset
  • Returns a cancellation function to stop an in-flight animation
  • Automatically cancels when the tab is hidden (via visibilitychange)
  • SSR-safe — no-ops when document is unavailable
  • Zero React required — works with any framework or plain HTML

Installation

npm install @input-kit/confetti

Quick Start

import { confetti, celebrate } from '@input-kit/confetti';

// Basic burst from center
confetti();

// Custom burst
confetti({
  particleCount: 150,
  angle: 90,
  spread: 60,
  origin: { x: 0.5, y: 0.8 },
  colors: ['#ff6b6b', '#feca57', '#48dbfb'],
  gravity: 0.6,
  ticks: 250,
});

// Built-in multi-burst celebration
celebrate();
Cancel an animation
const stop = confetti({ particleCount: 500, ticks: 600 });
// Later:
stop?.();

API

confetti(options?)

Fires a confetti burst. Returns a cancellation function, or undefined in SSR environments.

function confetti(options?: ConfettiOptions): (() => void) | undefined
fireConfetti(options?)

Alias for confetti.

celebrate()

Fires three sequential bursts — left cannon, right cannon, center explosion — for a full-screen celebration effect.

function celebrate(): void

ConfettiOptions

Option Type Default Description
particleCount number 100 Number of particles to spawn
angle number 90 Launch direction in degrees. 0 = right, 90 = up, 180 = left, 270 = down
spread number 360 Cone width in degrees centered on angle. 360 = all directions, 60 = narrow cone
origin { x: number; y: number } { x: 0.5, y: 0.5 } Launch point as fraction of viewport. (0, 0) = top-left, (1, 1) = bottom-right
colors string[] 6-color rainbow Array of CSS color strings for particle fill
gravity number 0.5 Downward acceleration per frame. Higher = particles fall faster
drift number 0 Horizontal drift per frame. Positive = right, negative = left
ticks number 200 Lifetime of each particle in frames. Roughly ticks / 60 seconds

Examples

Fireworks effect
const end = Date.now() + 3000;

function frame() {
  confetti({ particleCount: 2, angle: 60, spread: 55, origin: { x: 0, y: 0.6 } });
  confetti({ particleCount: 2, angle: 120, spread: 55, origin: { x: 1, y: 0.6 } });
  if (Date.now() < end) requestAnimationFrame(frame);
}

frame();
Custom color palette
confetti({
  particleCount: 200,
  colors: ['#ff0000', '#ff7f00', '#ffff00', '#00ff00', '#0000ff', '#4b0082', '#9400d3'],
  spread: 180,
});
React usage
import { confetti, celebrate } from '@input-kit/confetti';

function SubmitButton() {
  const handleClick = () => {
    celebrate();
  };

  return <button onClick={handleClick}>Submit</button>;
}

TypeScript

All types are exported:

import type { ConfettiOptions } from '@input-kit/confetti';

Browser Support

Requires Canvas 2D API — supported in all modern browsers. Not supported in Node.js / SSR (calls are silently no-ops).

License

MIT © Harshit

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @input-kit/confetti

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229