Scan your whole stack
From OX Research Newsroom
Are you using @input-kit/confetti?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.2
@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.
| Version | Published | Status |
|---|---|---|
| 0.1.2 LATEST | 27 Nov 2026 | No rules fired |
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.
The publisher’s own README, as collected from the registry.
Lightweight, zero-dependency confetti effect for the browser. Built with the Canvas API, fully typed, SSR-safe, and cancellable.
celebrate() multi-burst presetvisibilitychange)document is unavailablenpm install @input-kit/confetti
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();
const stop = confetti({ particleCount: 500, ticks: 600 });
// Later:
stop?.();
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
| 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 |
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();
confetti({
particleCount: 200,
colors: ['#ff0000', '#ff7f00', '#ffff00', '#00ff00', '#0000ff', '#4b0082', '#9400d3'],
spread: 180,
});
import { confetti, celebrate } from '@input-kit/confetti';
function SubmitButton() {
const handleClick = () => {
celebrate();
};
return <button onClick={handleClick}>Submit</button>;
}
All types are exported:
import type { ConfettiOptions } from '@input-kit/confetti';
Requires Canvas 2D API — supported in all modern browsers. Not supported in Node.js / SSR (calls are silently no-ops).
MIT © Harshit
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.