@genfeedai/prompts 0.1.1 → 0.2.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 +11 -96
  2. package/package.json +8 -6
package/README.md CHANGED
@@ -1,115 +1,30 @@
1
1
  # @genfeedai/prompts
2
2
 
3
- Official prompt templates for Genfeed - the AI-first content creation platform.
3
+ Official reusable prompt templates for image, video, and content workflows.
4
4
 
5
- ## Installation
5
+ ## Install
6
6
 
7
7
  ```bash
8
- npm install @genfeedai/prompts
9
- # or
10
- bun add @genfeedai/prompts
8
+ npm i @genfeedai/prompts
11
9
  ```
12
10
 
13
11
  ## Usage
14
12
 
15
- ### Using the Registry
13
+ ```ts
14
+ import { getPrompt, getPromptsByCategory } from '@genfeedai/prompts';
16
15
 
17
- ```typescript
18
- import {
19
- PROMPT_REGISTRY,
20
- getAllPrompts,
21
- getPrompt,
22
- getPromptsByCategory,
23
- searchPromptsByTag,
24
- getPromptCategories,
25
- } from '@genfeedai/prompts';
26
-
27
- // List all prompts
28
- const prompts = getAllPrompts();
29
-
30
- // Get a specific prompt by ID
31
- const prompt = getPrompt('product-photography');
32
- // { id: 'product-photography', title: 'Product Photography', template: '...', ... }
33
-
34
- // Get prompts by category
16
+ const p = getPrompt('product-photography');
35
17
  const imagePrompts = getPromptsByCategory('image-generation');
36
- const videoPrompts = getPromptsByCategory('video-generation');
37
- const contentPrompts = getPromptsByCategory('content');
38
-
39
- // Search by tag
40
- const marketingPrompts = searchPromptsByTag('marketing');
41
-
42
- // List available categories
43
- const categories = getPromptCategories();
44
- ```
45
-
46
- ### Accessing Prompt Files
47
-
48
- The actual prompt JSON files are in the `prompts/` directory, organized by category:
49
-
50
- ```typescript
51
- import productPhoto from '@genfeedai/prompts/prompts/image-generation/product-photography.json';
52
- import blogOutline from '@genfeedai/prompts/prompts/content/blog-outline.json';
53
18
  ```
54
19
 
55
- ## Available Prompts
20
+ ## Related Packages
56
21
 
57
- ### Image Generation
22
+ - `@genfeedai/workflows`
58
23
 
59
- | ID | Name | Description |
60
- |----|------|-------------|
61
- | `product-photography` | Product Photography | Professional product shots for e-commerce and marketing |
62
- | `social-media-post` | Social Media Post | Eye-catching images optimized for social media engagement |
63
- | `brand-ad` | Brand Advertisement | Professional brand advertisements that convert and engage |
64
- | `portrait-headshot` | Portrait Headshot | Professional headshots for LinkedIn and business use |
24
+ ## Build Faster with Genfeed
65
25
 
66
- ### Video Generation
67
-
68
- | ID | Name | Description |
69
- |----|------|-------------|
70
- | `product-demo` | Product Demo Video | Engaging product demonstration videos that showcase features |
71
- | `social-clip` | Social Media Clip | Short-form video content optimized for social platforms |
72
- | `ugc-testimonial` | UGC Testimonial | Authentic user-generated content style testimonial videos |
73
-
74
- ### Content
75
-
76
- | ID | Name | Description |
77
- |----|------|-------------|
78
- | `blog-outline` | Blog Post Outline | Comprehensive blog post outlines for content marketing |
79
- | `social-caption` | Social Media Caption | Engaging captions that drive interaction and engagement |
80
- | `email-sequence` | Email Marketing Sequence | Effective email sequences for nurturing and conversion |
81
-
82
- ## Prompt Schema
83
-
84
- Each prompt follows the `PromptTemplate` interface from `@genfeedai/types`:
85
-
86
- ```typescript
87
- interface PromptTemplate {
88
- id: string;
89
- title: string;
90
- description: string;
91
- category: 'image-generation' | 'video-generation' | 'content';
92
- tier: 'free' | 'paid' | 'premium';
93
- template: string;
94
- variables: PromptVariable[];
95
- tags: string[];
96
- exampleOutput?: string;
97
- icon?: string;
98
- version: number;
99
- }
100
-
101
- interface PromptVariable {
102
- name: string;
103
- label: string;
104
- type: 'text' | 'select' | 'number' | 'boolean';
105
- required?: boolean;
106
- default?: string | number | boolean;
107
- options?: string[];
108
- placeholder?: string;
109
- description?: string;
110
- }
111
- ```
26
+ Use prompt templates programmatically, or generate/publish content in Genfeed at [https://genfeed.ai](https://genfeed.ai).
112
27
 
113
28
  ## License
114
29
 
115
- AGPL-3.0
30
+ MIT
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@genfeedai/prompts",
3
- "version": "0.1.1",
3
+ "version": "0.2.1",
4
+ "sideEffects": false,
4
5
  "license": "AGPL-3.0",
5
6
  "repository": {
6
7
  "type": "git",
7
- "url": "git+https://github.com/genfeedai/core.git",
8
- "directory": "packages/prompts"
8
+ "url": "git+https://github.com/genfeedai/packages.git",
9
+ "directory": "prompts"
9
10
  },
10
11
  "publishConfig": {
11
12
  "access": "public",
@@ -16,8 +17,8 @@
16
17
  "exports": {
17
18
  ".": {
18
19
  "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js",
20
- "require": "./dist/index.cjs"
20
+ "import": "./dist/index.mjs",
21
+ "require": "./dist/index.js"
21
22
  },
22
23
  "./prompts/*": "./prompts/*"
23
24
  },
@@ -33,7 +34,8 @@
33
34
  "test": "bun test __tests__/*.spec.ts"
34
35
  },
35
36
  "devDependencies": {
36
- "@genfeedai/types": "^0.1.1",
37
+ "@genfeedai/types": "^0.2.2",
38
+ "@types/node": "^25.2.3",
37
39
  "tsup": "8.4.0",
38
40
  "typescript": "5.9.3"
39
41
  }