varmory 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # varmory
2
2
 
3
- Vue 3 + Quasar component library with a multi-theme system.
3
+ Component showcase for Vue 3 + Quasar apps, with a Model Context Protocol server so AI agents can read your components and docs.
4
+
5
+ Drop in an interactive browser for the Quasar components you use and any custom ones you build, and expose the same metadata to tools like Claude via MCP — no extra glue needed.
6
+
7
+ - [Component Showcase](https://varmory-dec8b20a1b83.herokuapp.com/)
8
+ - [MCP Server](https://varmory-dec8b20a1b83.herokuapp.com/#docs/MCP)
4
9
 
5
10
  ## Installation
6
11
 
@@ -11,40 +16,48 @@ npm install varmory
11
16
  Peer dependencies:
12
17
 
13
18
  ```bash
14
- npm install vue@^3 quasar@^2 pinia@^3 @quasar/extras@^1
19
+ npm install vue@^3 quasar@^2 @quasar/extras@^1
15
20
  ```
16
21
 
17
22
  ## Setup
18
23
 
24
+ Quasar components are registered by `@quasar/vite-plugin` in your Vite config:
25
+
19
26
  ```js
20
- import { createApp } from 'vue';
21
- import { createPinia } from 'pinia';
22
- import { install as Varmory } from 'varmory';
23
-
24
- const app = createApp(App);
25
- app.use(createPinia());
26
- app.use(Varmory, {
27
- theme: 'space', // optional. Default is 'default'
28
- });
27
+ // vite.config.js
28
+ import vue from '@vitejs/plugin-vue';
29
+ import { quasar, transformAssetUrls } from '@quasar/vite-plugin';
30
+
31
+ export default {
32
+ plugins: [
33
+ vue({ template: { transformAssetUrls } }),
34
+ quasar({ autoImportComponentCase: 'pascal' }),
35
+ ],
36
+ };
29
37
  ```
30
38
 
39
+ In your app's entry file, attach Quasar to the Vue app **before** Varmory, then install Varmory as a Vue plugin. Varmory registers `JComponentShowcase` + `JComponentShowcaseWithContent` globally and throws if Quasar isn't already installed.
31
40
 
32
- ## Usage
33
-
34
- See [docs/USAGE.md](docs/USAGE.md) setting up a fresh app using varmory for UI, Vite config, and Quasar plugin setup.
35
-
36
- ## Building Components
37
-
38
- See [docs/CustomComponents.md](docs/CustomComponents.md) — API style, CSS variables, layout patterns, component composition, and styling conventions.
39
-
40
- ## Theming, Dark/Light mode
41
-
42
- See [docs/THEMING.md](docs/THEMING.md) built-in themes, custom themes, writing your own, theme store API, and UI components.
43
-
44
- ## JComponentShowcase
41
+ ```js
42
+ // main.js
43
+ import { createApp } from 'vue';
44
+ import { Quasar, Notify, Dialog, LocalStorage, SessionStorage } from 'quasar';
45
+ import { Varmory } from 'varmory';
46
+ import 'quasar/dist/quasar.css';
47
+ import '@quasar/extras/material-icons/material-icons.css';
48
+ import App from './App.vue';
49
+
50
+ createApp(App)
51
+ .use(Quasar, { plugins: { Notify, Dialog, LocalStorage, SessionStorage } })
52
+ .use(Varmory)
53
+ .mount('#app');
54
+ ```
45
55
 
46
- See [docs/SHOWCASE.md](docs/SHOWCASE.md) interactive component browser, adding categories, custom docs, writing showcase entries, and navigation.
56
+ See [USAGE.md](https://varmory-dec8b20a1b83.herokuapp.com/#docs/USAGE) for the rest of the setup details.
47
57
 
48
- ## MCP Server
58
+ ## Docs
49
59
 
50
- See [docs/MCP.md](docs/MCP.md) — expose showcase data to AI agents via the Model Context Protocol.
60
+ - [Usage](https://varmory-dec8b20a1b83.herokuapp.com/#docs/USAGE) — setting up a fresh app, Vite config, Quasar plugin wiring
61
+ - [Building Components](https://varmory-dec8b20a1b83.herokuapp.com/#docs/CustomComponents) — API style, layout patterns, component composition
62
+ - [Showcase](https://varmory-dec8b20a1b83.herokuapp.com/#docs/SHOWCASE) — interactive browser, adding categories, custom docs, navigation
63
+ - [MCP Server](https://varmory-dec8b20a1b83.herokuapp.com/#docs/MCP) — expose showcase + docs + component APIs to AI agents via MCP