BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/vault-hyperiux/dotted-grid

Dotted Grid

vault-hyperiux/dotted-grid
FreeComponent

Canvas 2D fullscreen dot grid that autonomously cycles through five geometric shapes (star, square, circle ring, plus, triangle). Mouse cursor creates a dark shrinking head effect and leaves a glowing blue trail that lingers and fades.

Install it

npx shadcn@latest add https://vault.hyperiux.com/r/dotted-grid.json

Source

index.tsxvault.hyperiux.com/r/dotted-grid.json · first 6 KB
1// Built using Hyperiux Vault: https://vault.hyperiux.com
2
3"use client";
4
5import { useEffect, useRef, useSyncExternalStore } from "react";
6import { createSuspendedRaf } from "./createSuspendedRaf";
7
8const REDUCED_MOTION_QUERY = "(prefers-reduced-motion: reduce)";
9
10function subscribeToReducedMotion(callback: () => void) {
11 if (typeof window === "undefined") return () => {};
12 const mediaQueryList = window.matchMedia(REDUCED_MOTION_QUERY);
13 mediaQueryList.addEventListener("change", callback);
14 return () => mediaQueryList.removeEventListener("change", callback);
15}
16
17function getReducedMotionSnapshot(): boolean {
18 return window.matchMedia?.(REDUCED_MOTION_QUERY)?.matches ?? false;
19}
20
21function getServerReducedMotionSnapshot(): boolean {
22 return false;
23}
24
25// React hook form, for JSX output that depends on the preference (not just
26// the imperative reduceMotion flag already used inside the draw loop below).
27// Safe to call during render - returns false on the server.
28function usePrefersReducedMotion() {
29 return useSyncExternalStore(
30 subscribeToReducedMotion,
31 getReducedMotionSnapshot,
32 getServerReducedMotionSnapshot
33 );
34}
35
36
37const DEFAULT_SPACING = 24;
38const DEFAULT_BASE_RADIUS = 7.2;
39const DEFAULT_MOUSE_RADIUS = 380;
40const DEFAULT_TRAIL_LENGTH = 456;
41const DEFAULT_TRAIL_RADIUS = 230;
42const DEFAULT_TRAIL_FADE_MS = 1200;
43
44const RANDOM_TIME = 0.6;
45const COLLECT_TIME = 1.1;
46const SHAPE_HOLD_TIME = 1.2;
47const GRAY_DISPERSE_TIME = 0.9; // trail lingers ~2s
48
49const TOTAL_CYCLE_TIME = RANDOM_TIME + COLLECT_TIME + SHAPE_HOLD_TIME + GRAY_DISPERSE_TIME;
50const TOTAL_SHAPES = 5;
51
52
53const lerp = (a: number, b: number, t: number): number => a + (b - a) * t;
54const clamp01 = (v: number): number => Math.max(0, Math.min(1, v));
55const smoothstep = (e0: number, e1: number, v: number): number => {
56 const t = clamp01((v - e0) / (e1 - e0));
57 return t * t * (3 - 2 * t);
58};
59
60const getStarStrength = (x: number, y: number, time: number, width: number, height: number): number => {
61 const cx = width / 2;
62 const cy = height / 2;
63 const scale = Math.min(width, height) * 0.28;
64
65 const nx = (x - cx) / scale;
66 const ny = (y - cy) / scale;
67
68 const r = Math.sqrt(nx * nx + ny * ny);
69 const angle = Math.atan2(ny, nx);
70
71 const spikes = 5;
72 const star = Math.cos(spikes * angle);
73 const radius = 0.55 + 0.25 * star;
74
75 return clamp01(1 - smoothstep(radius - 0.05, radius + 0.05, r));
76};
77
78const getSquareStrength = (x: number, y: number, width: number, height: number): number => {
79// … truncated

Facts

Registry
vault-hyperiux
Type
registry:component
Access
Free
Files written
0
Licence
MPL-2.0
In the index
at or before 2026-08-11
Last confirmed
yesterday

Go to the source

vault.hyperiux.com Hyperiux-Immersion-Labs/hyperiux-components on GitHub Raw registry item This item as JSON

More from vault-hyperiux

All 120 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
3D Portfolio Slider3d-portfolio-slidervault-hyperiuxComponentsFree3 deps
Animated FAQanimated-faqvault-hyperiuxComponentsFree2 deps
Animated Formanimated-formvault-hyperiuxComponentsFree1 dep
Animated Modalanimated-modalvault-hyperiuxComponentsFree1 dep
Tabsanimated-tabsvault-hyperiuxComponentsFree1 dep
Animated Toggleanimated-togglevault-hyperiuxComponentsFreeno deps
Aperture Transitionaperture-transitionvault-hyperiuxComponentsFree2 deps
Arrow Fill Buttonarrow-fill-buttonvault-hyperiuxComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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. Changelog

BlockDex