{"_id":"@artifactuse/prompts","name":"@artifactuse/prompts","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@artifactuse/prompts","version":"0.1.0","description":"System prompts for AI models to generate Artifactuse artifacts","type":"module","main":"./dist/index.cjs","module":"./src/index.js","exports":{".":{"import":"./src/index.js","require":"./dist/index.cjs"},"./specs/*":"./src/specs/*","./prompts/*":"./src/prompts/*"},"scripts":{"build":"node build.js","prepublishOnly":"npm run build"},"keywords":["artifactuse","ai","prompts","artifacts","llm","canvas","video","forms"],"author":"","license":"MIT","devDependencies":{"esbuild":"^0.20.0"},"repository":{"type":"git","url":"git+https://github.com/artifactuse/prompts.git"},"homepage":"https://artifactuse.com/docs/prompts","bugs":{"url":"https://github.com/artifactuse/prompts/issues"},"_id":"@artifactuse/prompts@0.1.0","gitHead":"df221006c52ff291a57fa637ed38e206ad77f889","_nodeVersion":"20.18.3","_npmVersion":"10.8.2","dist":{"integrity":"sha512-KqMM4e+vRhzVhxip5gL079by4tQ3lqMizBviULy07fVUUpUliVAI6JnJzBWObzFqpXSzp9Fhiyi6QRJ9biM/0g==","shasum":"e4cd68224c87a8a203c648be5580c54d7b9df8b7","tarball":"https://registry.npmjs.org/@artifactuse/prompts/-/prompts-0.1.0.tgz","fileCount":17,"unpackedSize":79303,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE/25f3zzMFJss9lsESS/wN0YP2zb8SEvMDkn+IxjHylAiEA1Lu6sPZo42nsfL8pmm/ntKUmjbhpeDqnwDhR/nTCC0U="}]},"_npmUser":{"name":"davmixcool","email":"davmixcool@gmail.com"},"directories":{},"maintainers":[{"name":"davmixcool","email":"davmixcool@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/prompts_0.1.0_1767766634329_0.3482605326296575"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-07T06:17:14.237Z","0.1.0":"2026-01-07T06:17:14.489Z","modified":"2026-01-07T06:17:14.847Z"},"maintainers":[{"name":"davmixcool","email":"davmixcool@gmail.com"}],"description":"System prompts for AI models to generate Artifactuse artifacts","homepage":"https://artifactuse.com/docs/prompts","keywords":["artifactuse","ai","prompts","artifacts","llm","canvas","video","forms"],"repository":{"type":"git","url":"git+https://github.com/artifactuse/prompts.git"},"bugs":{"url":"https://github.com/artifactuse/prompts/issues"},"license":"MIT","readme":"# @artifactuse/prompts\n\nSystem prompts that teach AI models to generate Artifactuse artifacts. Include these in your AI's system prompt to enable artifact generation capabilities.\n\n## Installation\n\n```bash\nnpm install @artifactuse/prompts\n```\n\n## Quick Start\n\n```javascript\nimport { canvasPrompt, videoPrompt } from '@artifactuse/prompts';\n\nconst systemPrompt = `\nYou are a helpful creative assistant.\n\n${canvasPrompt}\n${videoPrompt}\n`;\n\n// Use with your AI provider\nconst response = await openai.chat.completions.create({\n  model: 'gpt-4',\n  messages: [\n    { role: 'system', content: systemPrompt },\n    { role: 'user', content: 'Create a YouTube thumbnail for a coding tutorial' }\n  ]\n});\n```\n\n## Available Prompts\n\n| Import | Use Case | Size |\n|--------|----------|------|\n| `canvasPrompt` | Graphics, banners, logos, diagrams | ~2KB |\n| `videoPrompt` | Video intros, animations, titles | ~1.4KB |\n| `formPrompt` | Input forms, wizards, quick actions | ~1.7KB |\n| `socialPrompt` | Social media post previews | ~1.5KB |\n| `htmlPrompt` | Web pages, HTML components | ~0.6KB |\n| `jsxPrompt` | React components | ~0.7KB |\n| `vuePrompt` | Vue components | ~0.5KB |\n| `javascriptPrompt` | JavaScript code | ~0.5KB |\n| `pythonPrompt` | Python code | ~0.5KB |\n| `jsonPrompt` | JSON data structures | ~0.4KB |\n| `svgPrompt` | Vector graphics, icons | ~0.6KB |\n| `diffPrompt` | Code diffs | ~0.5KB |\n| `fullPrompt` | All artifacts combined | ~11KB |\n\n## Usage\n\n### Selective Prompts (Recommended)\n\nInclude only what you need to minimize token usage:\n\n```javascript\nimport { canvasPrompt, videoPrompt, formPrompt } from '@artifactuse/prompts';\n\nconst systemPrompt = `\nYou are Megan, a creative assistant for Soundpen.\n\n${canvasPrompt}\n${videoPrompt}\n${formPrompt}\n`;\n```\n\n### Full Prompt\n\nEnable all artifact types:\n\n```javascript\nimport { fullPrompt } from '@artifactuse/prompts';\n\nconst systemPrompt = `You are a helpful assistant.\\n${fullPrompt}`;\n```\n\n### Helper Functions\n\n```javascript\nimport { getPrompt, getPrompts } from '@artifactuse/prompts';\n\n// Get single prompt\nconst prompt = getPrompt('canvas');\n\n// Get multiple prompts combined\nconst prompts = getPrompts(['canvas', 'video', 'form']);\n```\n\n## CommonJS\n\n```javascript\nconst { canvasPrompt, videoPrompt } = require('@artifactuse/prompts');\n```\n\n## How It Works\n\nEach prompt contains:\n1. **Trigger conditions** - When to generate the artifact\n2. **Format specification** - Code block syntax and structure\n3. **Schema** - Required and optional properties\n4. **Rules** - Constraints and best practices\n\nExample canvas prompt teaches the AI:\n- Use `canvas` code block for graphics requests\n- Structure: `{width, height, backgroundColor, shapes}`\n- Shape types and their properties\n- Canvas sizes for different platforms\n- Layering and styling rules\n\n## License\n\nMIT\n","readmeFilename":"README.md","_rev":"1-b80552f4ebf0d71b5a10df61287ea2a6"}