BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/refinery/analog-clock-screensaver

Analog Clock Screensaver

refinery/analog-clock-screensaver
FreeComponent

SVG analog clock screensaver with smooth hands motion.

Live preview

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

Install it

npx shadcn@latest add https://refinery.abhii.me/r/analog-clock-screensaver.json

Source

registry/default/screen-savers/analog-clock-screensaver.tsxrefinery.abhii.me/r/analog-clock-screensaver.json
1"use client";
2
3import { useRef } from "react";
4import { useAnimationFrame } from "motion/react";
5import { cn } from "@/lib/utils";
6
7interface AnalogClockScreensaverProps {
8 title?: string;
9 className?: string;
10 accentColor?: string;
11 backgroundClassName?: string;
12}
13
14export default function AnalogClockScreensaver({
15 title = "Refinery",
16 className = "",
17 accentColor = "#d13b28",
18 backgroundClassName = "bg-neutral-900",
19}: AnalogClockScreensaverProps) {
20 const secondHandRef = useRef<SVGLineElement | null>(null);
21 const minuteHandRef = useRef<SVGLineElement | null>(null);
22 const hourHandRef = useRef<SVGLineElement | null>(null);
23
24 useAnimationFrame(() => {
25 const now = new Date();
26 const seconds = now.getSeconds() + now.getMilliseconds() / 1000;
27 const minutes = now.getMinutes() + seconds / 60;
28 const hours = (now.getHours() % 12) + minutes / 60;
29
30 secondHandRef.current?.setAttribute(
31 "transform",
32 `rotate(${seconds * 6} 50 50)`
33 );
34 minuteHandRef.current?.setAttribute(
35 "transform",
36 `rotate(${minutes * 6} 50 50)`
37 );
38 hourHandRef.current?.setAttribute(
39 "transform",
40 `rotate(${hours * 30} 50 50)`
41 );
42 });
43
44 return (
45 <div
46 className={cn(
47 "flex h-screen w-full flex-col items-center justify-center gap-2 text-neutral-100",
48 backgroundClassName,
49 className
50 )}
51 >
52 <svg
53 viewBox="0 0 100 100"
54 className="size-[min(80vw,20rem)] overflow-visible rounded-full"
55 role="img"
56 aria-label="Analog clock"
57 >
58 <circle
59 cx="50"
60 cy="50"
61 r="48"
62 fill="none"
63 stroke="currentColor"
64 strokeOpacity="0.14"
65 strokeWidth="1.5"
66 />
67 <line
68 ref={hourHandRef}
69 x1="50"
70 y1="50"
71 x2="50"
72 y2="28"
73 stroke="currentColor"
74 strokeLinecap="round"
75 strokeWidth="3"
76 />
77 <line
78 ref={minuteHandRef}
79 x1="50"
80 y1="50"
81 x2="50"
82 y2="20"
83 stroke="currentColor"
84 strokeLinecap="round"
85 strokeWidth="2.2"
86 />
87 <line
88 ref={secondHandRef}
89 x1="50"
90 y1="56"
91 x2="50"
92 y2="12"
93 stroke={accentColor}
94 strokeLinecap="round"
95 strokeWidth="1.5"
96 />
97 <circle
98 cx="50"
99 cy="50"
100 r="2.6"
101// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • registry/default/screen-savers/analog-clock-screensaver.tsx

Facts

Registry
refinery
Type
registry:component
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-11
Last confirmed
today

Go to the source

Docs on refinery refinery.abhii.me mrap10/refinery on GitHub Raw registry item This item as JSON

More from refinery

All 16 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Avatar Circleavatar-circlerefineryComponentsFree1 dep
DVD Screensaverdvd-screensaverrefineryComponentsFree1 dep
Floating Cardfloating-cardrefineryComponentsFree1 dep
Floating Navfloating-navrefineryComponentsFree1 dep
Glowy Buttonglowy-buttonrefineryComponentsFree1 dep
Move To Topmove-to-top-buttonrefineryComponentsFree1 dep
Notification Badgenotification-badgerefineryComponentsFree1 dep
Sleeping Cat Screensaversleeping-cat-screensaverrefineryComponentsFree2 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

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