BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/motiq/cursor-comet

Cursor Comet

motiq/cursor-comet
FreeComponent

A canvas particle comet that reads pointer velocity, not just position: a tight ember when you drift, a long azure-to-cyan plume with coral sparks when you flick. Idle, the particles coil into an ambient orbit ring. Fixed particle pool, pre-rendered sprites with additive blending, DPR capped at 2x, one rAF loop, offscreen-paused, static orbit frame under reduced motion.

Live preview

live · rendered by the registry
Rendered by motiq on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://www.motiq.dev/r/cursor-comet.json

Source

registry/cursor/cursor-comet.tsxwww.motiq.dev/r/cursor-comet.json · first 6 KB
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6import { useReducedMotion, useVisibilityPause } from "@/lib/motiq";
7
8/* -------------------------------------------------------------------------- */
9/* Types */
10/* -------------------------------------------------------------------------- */
11
12export interface CursorCometProps extends React.HTMLAttributes<HTMLDivElement> {
13 /** Fixed particle pool size (clamped 24–800). No allocation happens per frame. */
14 particleBudget?: number;
15 /** 0–1 fraction of pointer velocity each particle inherits, reversed. */
16 velocityGain?: number;
17 /** Exponential drag coefficient, per second. */
18 drag?: number;
19 /** Head/young-particle color — any CSS color, resolved from tokens by default. */
20 headColor?: string;
21 /** Tail/old-particle color. */
22 tailColor?: string;
23 /** Ionization spark color — the rare signature moment. */
24 sparkColor?: string;
25 /** Pointer speed (px/s) above which coral sparks ignite at the head. */
26 sparkThreshold?: number;
27 /** Coil the particles into an ambient orbit ring when the pointer is away. */
28 idleOrbit?: boolean;
29 /** Deterministic seed for the particle jitter (SSR-stable markup). */
30 seed?: number;
31 /** Stop the rAF loop when scrolled offscreen or the tab is hidden. */
32 pauseWhenHidden?: boolean;
33 /** Force the static, motion-free variant regardless of system preference. */
34 reducedMotion?: boolean;
35}
36
37/* -------------------------------------------------------------------------- */
38/* Helpers */
39/* -------------------------------------------------------------------------- */
40
41const clamp = (v: number, a: number, b: number) => (v < a ? a : v > b ? b : v);
42
43/** mulberry32 — deterministic jitter, no Math.random at render or module scope. */
44function makeRng(seed: number) {
45 let a = seed >>> 0;
46 return () => {
47 a = (a + 0x6d2b79f5) | 0;
48 let t = Math.imul(a ^ (a >>> 15), 1 | a);
49 t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t;
50 return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
51 };
52}
53
54/** Resolve any computed CSS color string (rgb/rgba/#hex) to an [r,g,b] triple. */
55function parseRgb(input: string): [number, number, number] {
56 const c = input.trim();
57 if (c.startsWith("#")) {
58 let h = c.slice(1);
59 if (h.length === 3) h = h.split("").map((d) => d + d).join("");
60// … truncated

What it pulls in

Other registry items

  • https://motiq.dev/r/utils.json
  • https://motiq.dev/r/primitives.json

Files it writes

  • registry/cursor/cursor-comet.tsx

Facts

Registry
motiq
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-12
Last confirmed
today

Go to the source

Docs on motiq www.motiq.dev RMahammad/motiq on GitHub Raw registry item This item as JSON

More from motiq

All 100 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Activity Streamactivity-streammotiqComponentsFree1 dep
Adaptive Safe-Zone Gridadaptive-safe-zone-gridmotiqComponentsFreeno deps
Agent Run Timelineagent-run-timelinemotiqComponentsFree1 dep
AI Response Streamai-response-streammotiqComponentsFree1 dep
Animated Accordionanimated-accordionmotiqComponentsFree2 deps
Animated Buttonanimated-buttonmotiqComponentsFree1 dep
Animated Dialoganimated-dialogmotiqComponentsFree2 deps
Animated Gridanimated-gridmotiqComponentsFree2 deps
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex