@genfeedai/prompts 0.2.0 → 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.
- package/README.md +11 -96
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,115 +1,30 @@
|
|
|
1
1
|
# @genfeedai/prompts
|
|
2
2
|
|
|
3
|
-
Official prompt templates for
|
|
3
|
+
Official reusable prompt templates for image, video, and content workflows.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm
|
|
9
|
-
# or
|
|
10
|
-
bun add @genfeedai/prompts
|
|
8
|
+
npm i @genfeedai/prompts
|
|
11
9
|
```
|
|
12
10
|
|
|
13
11
|
## Usage
|
|
14
12
|
|
|
15
|
-
|
|
13
|
+
```ts
|
|
14
|
+
import { getPrompt, getPromptsByCategory } from '@genfeedai/prompts';
|
|
16
15
|
|
|
17
|
-
|
|
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
|
-
##
|
|
20
|
+
## Related Packages
|
|
56
21
|
|
|
57
|
-
|
|
22
|
+
- `@genfeedai/workflows`
|
|
58
23
|
|
|
59
|
-
|
|
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
|
-
|
|
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
|
-
|
|
30
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genfeedai/prompts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"test": "bun test __tests__/*.spec.ts"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@genfeedai/types": "^0.2.
|
|
37
|
+
"@genfeedai/types": "^0.2.2",
|
|
38
38
|
"@types/node": "^25.2.3",
|
|
39
39
|
"tsup": "8.4.0",
|
|
40
40
|
"typescript": "5.9.3"
|