BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Svelte Animations/glyph-matrix
This component no longer exists. It was in Svelte Animations’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-05 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.

Glyph Matrix

svelte-animations/glyph-matrix
RemovedBlock

An animated grid of subtly shifting glyphs on a canvas, with a theme-aware color driven by the consumer.

Install it

npx shadcn@latest add https://sv-animations.vercel.app/r/glyph-matrix.json

Source

./src/lib/components/magic/glyph-matrix/glyph-matrix.sveltesv-animations.vercel.app/r/glyph-matrix.json
1<script lang="ts">
2 import { cn } from "$UTILS$";
3 import { watch } from "runed";
4 import type { HTMLAttributes } from "svelte/elements";
5
6 interface GlyphMatrixProps extends HTMLAttributes<HTMLCanvasElement> {
7 /** Characters to randomly pick from */
8 glyphs?: string;
9 /** Cell size in px (also font size) */
10 cellSize?: number;
11 /** Probability (0-1) a cell mutates each tick */
12 mutationRate?: number;
13 /** Tick interval in ms */
14 interval?: number;
15 /** Fade out toward bottom (0 = no fade) */
16 fadeBottom?: number;
17 /** Glyph color (any CSS color). Use a lighter color for a brighter matrix look. */
18 color?: string;
19 /** Brightness multiplier. 1 = original, 1.15-1.25 = subtle, 1.4-1.6 = strong, 1.8+ = very bright. */
20 boost?: number;
21 class?: string;
22 }
23
24 type RGBA = {
25 r: number;
26 g: number;
27 b: number;
28 a: number;
29 };
30
31 const DEFAULT_GLYPHS = "01\u00B7\u2022+*/\\<>=";
32 const DEFAULT_COLOR = "#6B7280";
33 const DEFAULT_RGBA: RGBA = { r: 107, g: 114, b: 128, a: 1 };
34
35 let {
36 glyphs = DEFAULT_GLYPHS,
37 cellSize = 14,
38 mutationRate = 0.04,
39 interval = 90,
40 class: className = "",
41 fadeBottom = 0.6,
42 color = DEFAULT_COLOR,
43 boost = 1.2,
44 style,
45 ...props
46 }: GlyphMatrixProps = $props();
47
48 let canvas: HTMLCanvasElement | null = $state(null);
49 let rgba = DEFAULT_RGBA;
50 let alphaBoost = 1;
51
52 function randomGlyph(pool: string) {
53 return pool[Math.floor(Math.random() * pool.length)] ?? " ";
54 }
55
56 function randomAlpha(range: number) {
57 return 0.05 + Math.random() * range;
58 }
59
60 function normalizeBoost(amount: number) {
61 return Math.max(0, amount);
62 }
63
64 function boostChannel(value: number, amount: number) {
65 const normalized = normalizeBoost(amount);
66 const mix = Math.max(0, normalized - 1);
67 return Math.min(255, Math.round(value + (255 - value) * mix));
68 }
69
70 function getAlphaBoost(amount: number) {
71 const normalized = normalizeBoost(amount);
72 return normalized <= 1 ? normalized : 1 + (normalized - 1) * 1.75;
73 }
74
75 // Resolve CSS colors once so the draw loop can stay cheap.
76 // `boost` brightens the glyph color and also makes the glyphs read more clearly.
77 function resolveColor(value: string, amount: number): RGBA {
78 if (typeof document === "undefined") return DEFAULT_RGBA;
79
80 const probe = document.createElement("canvas");
81 const context = probe.getContext("2d");
82
83 if (!context) return DEFAULT_RGBA;
84
85 context.fillStyle = DEFAULT_COLOR;
86 context.fillStyle = value;
87 context.fillRect(0, 0, 1, 1);
88
89// … truncated

What it pulls in

npm packages

  • runed

Files it writes

  • ./src/lib/components/magic/glyph-matrix/glyph-matrix.svelte
  • ./src/lib/components/magic/glyph-matrix/index.ts

Facts

Registry
Svelte Animations
Type
registry:block
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-01
Last confirmed
14 days ago

Go to the source

sv-animations.vercel.app SikandarJODD/animations on GitHub Raw registry item This item as JSON

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