You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: track dither-kit installs via a proxied /r registry route
Add a tracked `/r/{name}.json` route that proxies the dither-kit repo, rewrites
@dither-kit deps to self-referencing /r URLs (so a bare install stays
zero-config), and fires a Databuddy server event per fetch (core ~= total
installs). Lead the docs install with the tracked URL; GitHub shorthand stays as
an untracked alternative. Adds DATABUDDY_API_KEY env (optional) and restores the
/login redirect search param dropped earlier.
exportconstSETUP_PROMPT=`Set up dither-kit — composable dithered charts for shadcn/ui — in this project.
39
45
40
46
Install with the shadcn CLI (this also pulls the shared \`core\` engine + its deps like motion and d3):
41
-
npx shadcn@latest add ${REPO}/area-chart
47
+
npx shadcn@latest add ${regItem("area-chart")}
42
48
43
49
Files land in components/dither-kit/. The API is recharts-style / children-as-config — a data array plus a config object that maps each series to a label and colour:
44
50
@@ -55,7 +61,7 @@ Files land in components/dither-kit/. The API is recharts-style / children-as-co
55
61
<Area dataKey="desktop" variant="gradient" />
56
62
</AreaChart>
57
63
58
-
Other charts install the same way: bar-chart, pie-chart, radar-chart (or ${REPO}/dither-kit for all of them).
64
+
Other charts install the same way: bar-chart, pie-chart, radar-chart (or ${regItem("dither-kit")} for all of them).
0 commit comments