Skip to content

Commit dc4b4c9

Browse files
authored
more updates (#682)
1 parent bd068bc commit dc4b4c9

37 files changed

Lines changed: 1384 additions & 98 deletions

‎.changeset/crisp-weeks-kiss.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@jsrepo/shadcn": patch
3+
---
4+
5+
feat: add provider for registry directory
6+

‎.changeset/shaggy-queens-think.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"jsrepo": patch
3+
---
4+
5+
feat: `config mcp` support for google antigravity
6+

‎apps/docs/content/docs/mcp.mdx‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ All **jsrepo** registries are supported out of the box by the MCP server, includ
2525
<UnderlineTabsTrigger value="claude"><ClaudeLogo /> Claude Code </UnderlineTabsTrigger>
2626
<UnderlineTabsTrigger value="vs-code"><VSCodeLogo /> VS Code</UnderlineTabsTrigger>
2727
<UnderlineTabsTrigger value="codex"><OpenAILogo /> Codex</UnderlineTabsTrigger>
28+
<UnderlineTabsTrigger value="antigravity"><AntigravityLogo /> Antigravity</UnderlineTabsTrigger>
2829
</UnderlineTabsList>
2930
<UnderlineTabsContent value="cursor">
3031
You can quickly configure the MCP server for Cursor by running the following command:
@@ -101,6 +102,26 @@ All **jsrepo** registries are supported out of the box by the MCP server, includ
101102
args = ["@jsrepo/mcp"]
102103
```
103104
</UnderlineTabsContent>
105+
<UnderlineTabsContent value="antigravity">
106+
You can quickly configure the MCP server for Antigravity by running the following command:
107+
108+
```sh
109+
jsrepo config mcp --client antigravity
110+
```
111+
112+
This will automatically configure the MCP server for Antigravity in the correct file:
113+
114+
```json title="~/.gemini/antigravity/mcp_config.json"
115+
{
116+
"mcpServers": {
117+
"jsrepo": {
118+
"command": "npx",
119+
"args": ["@jsrepo/mcp"]
120+
}
121+
}
122+
}
123+
```
124+
</UnderlineTabsContent>
104125
</UnderlineTabs>
105126

106127
## Tools

‎apps/docs/content/docs/migrate.mdx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,14 @@ In **jsrepo** v3 we have introduced plugins. There are currently three types of
134134

135135
### Shadcn compatibility
136136

137-
**jsrepo** v3 is now partially **shadcn** compatible. You can now add and update items from **shadcn** meaning **jsrepo** now has access to an entire ecosystem of **shadcn** registries.
137+
**jsrepo** v3 is now **shadcn** compatible. You can now add and update items from **shadcn** meaning **jsrepo** now has access to an entire ecosystem of **shadcn** registries.
138138

139139
Try it out by running:
140140

141141
```sh
142142
pnpm jsrepo add --registry https://ui.shadcn.com/r/styles/new-york-v4
143143
```
144144

145-
Now I did say *partially* compatible because **jsrepo** doesn't yet support updating imports from **shadcn** items.
146-
147145
### Greatly improved MCP responses
148146

149147
Thanks to adopting the more manual approach for defining a registry it's now possible to add metadata to your registry items greatly improving the responses you will get when using the **jsrepo** MCP server.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: shadcn
3+
description: Download and add items from the shadcn registry index.
4+
---
5+
6+
import { RegistryDirectory } from "@/components/registry-index";
7+
8+
<BadgeGroup>
9+
<SourceBadge path="packages/shadcn/src/provider.ts" />
10+
<OfficialBadge />
11+
</BadgeGroup>
12+
13+
## Usage
14+
15+
The **shadcn** registry index is a nice way to shorten shadcn registry urls. If you are making use of shadcn registries in your project you can use this provider to use registries by their shortened name.
16+
17+
Since this doesn't come by default you will need to add it to your `jsrepo.config.ts` file. You can do this with a command:
18+
19+
```sh
20+
jsrepo config provider @jsrepo/shadcn
21+
```
22+
23+
```ts title="jsrepo.config.ts"
24+
import { defineConfig } from "jsrepo";
25+
import shadcn from "@jsrepo/shadcn"; // [!code ++]
26+
27+
export default defineConfig({
28+
providers: [shadcn()], // [!code ++]
29+
});
30+
```
31+
32+
Now you can simply use the `shadcn:` prefix followed by the registry namespace:
33+
34+
```sh
35+
jsrepo add --registry shadcn:@react-bits
36+
```
37+
38+
## Options
39+
40+
<TypeTable
41+
type={{
42+
registryIndexUrl: {
43+
description: "The base url of the registry index.",
44+
type: "string",
45+
default: "https://ui.shadcn.com/r/registries.json",
46+
},
47+
}}
48+
/>
49+
50+
## Registry Directory
51+
52+
All of these registries are available to use with the **shadcn** provider.
53+
54+
<RegistryDirectory />

‎apps/docs/jsrepo.config.mts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { defineConfig } from "jsrepo";
1+
import { defineConfig, DEFAULT_PROVIDERS } from "jsrepo";
2+
import shadcn from '@jsrepo/shadcn';
23

34
export default defineConfig({
45
registries: ["https://reactbits.dev/r", "https://magicui.design/r", "https://ui.shadcn.com/r/styles/new-york-v4"],
@@ -9,4 +10,5 @@ export default defineConfig({
910
lib: '@/lib',
1011
hook: '@/hooks',
1112
},
13+
providers: [...DEFAULT_PROVIDERS, shadcn()]
1214
});

‎apps/docs/package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,21 @@
3535
"tailwind-merge": "^3.3.1"
3636
},
3737
"devDependencies": {
38+
"@jsrepo/shadcn": "workspace:*",
3839
"@shikijs/transformers": "^3.15.0",
3940
"@tailwindcss/postcss": "^4.1.14",
4041
"@types/mdx": "^2.0.13",
4142
"@types/node": "24.10.0",
4243
"@types/react": "^19.2.0",
4344
"@types/react-dom": "^19.2.0",
45+
"fuzzysort": "^3.1.0",
4446
"jsrepo": "workspace:*",
4547
"motion": "^12.23.24",
4648
"postcss": "^8.5.6",
4749
"posthog-js": "^1.293.0",
4850
"tailwindcss": "^4.1.14",
4951
"tw-animate-css": "^1.4.0",
50-
"typescript": "^5.9.3"
52+
"typescript": "^5.9.3",
53+
"zod": "catalog:"
5154
}
5255
}

‎apps/docs/src/app/global.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,13 @@
130130
font-family: var(--font-mono), ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
131131
}
132132
}
133+
134+
/* For components that need horizontal scrolling */
135+
.scrollbar-hide {
136+
-ms-overflow-style: none; /* Internet Explorer and Edge */
137+
scrollbar-width: none; /* Firefox */
138+
}
139+
140+
.scrollbar-hide::-webkit-scrollbar {
141+
display: none; /* Chrome, Safari, and Opera */
142+
}

0 commit comments

Comments
 (0)