@usevyre/ai-context 0.1.0 → 0.1.1

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.
Files changed (2) hide show
  1. package/README.md +81 -0
  2. package/package.json +6 -1
package/README.md ADDED
@@ -0,0 +1,81 @@
1
+ # @usevyre/ai-context
2
+
3
+ > Inject useVyre design system context into your AI agent — eliminates UI hallucinations in Cursor, Claude, Windsurf, and Copilot.
4
+
5
+ [![npm](https://img.shields.io/npm/v/@usevyre/ai-context)](https://www.npmjs.com/package/@usevyre/ai-context)
6
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](../../LICENSE)
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @usevyre/ai-context
12
+ # or
13
+ pnpm add @usevyre/ai-context
14
+ ```
15
+
16
+ ## Usage
17
+
18
+ ### Cursor — `.cursor/rules/usevyre.mdc`
19
+
20
+ ```bash
21
+ node -e "
22
+ const { cursorRules } = require('@usevyre/ai-context');
23
+ require('fs').writeFileSync('.cursor/rules/usevyre.mdc', cursorRules);
24
+ "
25
+ ```
26
+
27
+ ### Claude — `CLAUDE.md`
28
+
29
+ ```bash
30
+ node -e "
31
+ const { claudeContext } = require('@usevyre/ai-context');
32
+ require('fs').appendFileSync('CLAUDE.md', '\n\n' + claudeContext);
33
+ "
34
+ ```
35
+
36
+ ### Windsurf — `.windsurf/rules/usevyre.md`
37
+
38
+ ```bash
39
+ node -e "
40
+ const { windsurfRules } = require('@usevyre/ai-context');
41
+ require('fs').writeFileSync('.windsurf/rules/usevyre.md', windsurfRules);
42
+ "
43
+ ```
44
+
45
+ ### GitHub Copilot — `.github/copilot-instructions.md`
46
+
47
+ ```bash
48
+ node -e "
49
+ const { copilotInstructions } = require('@usevyre/ai-context');
50
+ require('fs').writeFileSync('.github/copilot-instructions.md', copilotInstructions);
51
+ "
52
+ ```
53
+
54
+ ### JavaScript / TypeScript — inject into system prompt
55
+
56
+ ```ts
57
+ import { fullContext } from "@usevyre/ai-context";
58
+
59
+ const response = await anthropic.messages.create({
60
+ model: "claude-opus-4-7",
61
+ system: fullContext,
62
+ messages: [{ role: "user", content: "Build a login form" }],
63
+ });
64
+ ```
65
+
66
+ ## Exports
67
+
68
+ | Export | Path | Description |
69
+ |--------|------|-------------|
70
+ | `fullContext` | `@usevyre/ai-context` | Full context string for system prompts |
71
+ | Cursor rules file | `@usevyre/ai-context/cursor` | `.cursor/rules` formatted markdown |
72
+ | Claude context file | `@usevyre/ai-context/claude` | `CLAUDE.md` formatted markdown |
73
+ | Windsurf rules file | `@usevyre/ai-context/windsurf` | `.windsurf/rules` formatted markdown |
74
+ | Copilot instructions file | `@usevyre/ai-context/copilot` | `.github/copilot-instructions.md` formatted markdown |
75
+ | Full context file | `@usevyre/ai-context/full` | Raw markdown file |
76
+
77
+ Full setup guide → [usevyre.com/docs/ai-context](https://usevyre.com/docs/ai-context)
78
+
79
+ ## License
80
+
81
+ MIT © [Gapra](https://gapra.dev)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usevyre/ai-context",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "useVyre AI context — inject into LLM system prompts to eliminate UI hallucinations",
5
5
  "keywords": [
6
6
  "design-system",
@@ -9,6 +9,11 @@
9
9
  "context",
10
10
  "vyre"
11
11
  ],
12
+ "homepage": "https://usevyre.com/docs/ai-context",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/gapra/usevyre"
16
+ },
12
17
  "license": "MIT",
13
18
  "type": "module",
14
19
  "exports": {