BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/componentry/ascii-effect
This component no longer exists. It was in componentry’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-14 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.

ASCII Effect

componentry/ascii-effect
RemovedComponent

Render images as responsive ASCII artwork with image, flow, and glitch variations.

Live preview

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

Install it

npx shadcn@latest add https://componentry.dev/r/ascii-effect.json

Source

components/ui/ascii-effect.tsxcomponentry.dev/r/ascii-effect.json · first 6 KB
1"use client"
2
3import { cn } from "@/lib/utils"
4import { useEffect, useRef, type HTMLAttributes, type PointerEvent } from "react"
5
6export interface AsciiEffectProps extends Omit<HTMLAttributes<HTMLDivElement>, "color"> {
7 imageSrc: string
8 alt?: string
9 variant?: "image" | "flow" | "glitch"
10 chars?: string
11 fontSize?: number
12 fontFamily?: string
13 fontWeight?: number | string
14 lineHeight?: number
15 characterSpacing?: number
16 brightnessBoost?: number
17 contrast?: number
18 threshold?: number
19 posterize?: number
20 dither?: "none" | "floyd-steinberg" | "bayer"
21 ditherStrength?: number
22 flowSpeed?: number
23 flowDirection?: number
24 flowStrength?: number
25 flowFrequency?: number
26 mouseRadius?: number
27 mouseStrength?: number
28 mouseWaveSpeed?: number
29 scale?: number
30 fit?: "cover" | "contain" | "stretch"
31 colors?: string[]
32 colorMode?: "gradient" | "source"
33 backgroundColor?: string
34 invert?: boolean
35 glitchIntensity?: number
36 glitchFrequency?: number
37 revealDuration?: number
38}
39
40export type AsciiPresetProps = Omit<AsciiEffectProps, "variant">
41
42const IMAGE_COLORS = ["#f4f4f5", "#a1a1aa"]
43const FLOW_COLORS = ["#e2e8f0", "#67e8f9", "#818cf8"]
44const GLITCH_COLORS = ["#ecfccb", "#a3e635", "#22d3ee"]
45
46function clamp(value: number, min = 0, max = 1) {
47 return Math.min(max, Math.max(min, value))
48}
49
50function parseHex(color: string) {
51 const match = /^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(color)
52 return match
53 ? [Number.parseInt(match[1]!, 16), Number.parseInt(match[2]!, 16), Number.parseInt(match[3]!, 16)]
54 : null
55}
56
57function gradientColor(colors: string[], amount: number) {
58 if (colors.length < 2) return colors[0] ?? "#ffffff"
59
60 const position = clamp(amount) * (colors.length - 1)
61 const index = Math.min(Math.floor(position), colors.length - 2)
62 const mix = position - index
63 const from = parseHex(colors[index]!)
64 const to = parseHex(colors[index + 1]!)
65 if (!from || !to) return colors[Math.round(position)] ?? colors[0]!
66
67 return `rgb(${from.map((channel, i) => Math.round(channel + (to[i]! - channel) * mix)).join(", ")})`
68}
69
70export function AsciiEffect({
71 imageSrc,
72 alt = "ASCII rendering",
73 variant = "image",
74 chars = " .:-=+*#%@",
75 fontSize = 9,
76 fontFamily = "Arial, Helvetica, sans-serif",
77 fontWeight = 400,
78 lineHeight = 1,
79 characterSpacing = 1,
80 brightnessBoost = 2.2,
81 contrast = 1.1,
82 threshold = 0.06,
83 posterize = 32,
84 dither = "floyd-steinberg",
85 ditherStrength = 0.8,
86 flowSpeed = 0.22,
87// … truncated

Facts

Registry
componentry
Type
registry:ui
Access
Free
Files written
0
Licence
MIT
In the index
at or before 2026-08-10
Last confirmed
2 days ago

Go to the source

Docs on componentry componentry.fun Bharath200415/KylixUI on GitHub Raw registry item This item as JSON

More from componentry

All 35 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
animated-gradientanimated-gradientcomponentryComponentsUnverifiedno deps
auth-modalauth-modalcomponentryComponentsUnverifiedno deps
border-beamborder-beamcomponentryComponentsUnverifiedno deps
circuit-boardcircuit-boardcomponentryComponentsUnverifiedno deps
closing-plasmaclosing-plasmacomponentryComponentsUnverifiedno deps
collection-surfercollection-surfercomponentryComponentsUnverifiedno deps
command-menucommand-menucomponentryComponentsUnverifiedno deps
cursor-driven-particle-typographycursor-driven-particle-typographycomponentryComponentsUnverifiedno deps

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

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.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 KitGrade

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 KitGrade

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 KitGrade

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