feedeas 0.1.0-alpha.2 → 0.1.0-alpha.3
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/.env.example +15 -0
- package/README.md +131 -5
- package/dist/cli/index.js +598 -400
- package/dist/ui/index.html +1 -1
- package/docs/IMAGINE_COMMAND.md +470 -0
- package/docs/IMAGINE_QUICK_REF.md +136 -0
- package/docs/IMPLEMENTATION_SUMMARY.md +152 -0
- package/example-workflow.sh +82 -0
- package/package.json +1 -1
- package/src/cli/commands/imagine.ts +209 -0
- package/src/cli/commands/record.ts +225 -175
- package/src/cli/index.ts +106 -98
- package/src/ui/App.tsx +1 -1
- package/src/ui/components/CanvasPreview.tsx +14 -6
package/.env.example
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Feedeas Environment Variables
|
|
2
|
+
|
|
3
|
+
# Gemini API Key (for 'imagine' command)
|
|
4
|
+
# Get your API key at: https://aistudio.google.com/app/apikey
|
|
5
|
+
GEMINI_API_KEY=your-gemini-api-key-here
|
|
6
|
+
|
|
7
|
+
# Setup Instructions:
|
|
8
|
+
# 1. Copy this file to .env
|
|
9
|
+
# 2. Replace the placeholder value with your actual Gemini API key
|
|
10
|
+
# 3. The CLI will automatically load this value
|
|
11
|
+
#
|
|
12
|
+
# Example:
|
|
13
|
+
# cp .env.example .env
|
|
14
|
+
# # Edit .env with your API key
|
|
15
|
+
# feedeas imagine "a beautiful sunset"
|
package/README.md
CHANGED
|
@@ -1,15 +1,141 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Feedeas
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Feedeas** is an agentic video creation tool that allows you to programmatically create videos using JSON scene definitions. Perfect for automated content generation, social media posts, and AI-driven video workflows.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- 🎬 **Programmatic Video Creation** - Define scenes using simple JSON
|
|
8
|
+
- 🎨 **AI Image Generation** - Built-in support for Google Imagen AI
|
|
9
|
+
- 🖼️ **Rich Media Support** - Text, images, and audio with transitions
|
|
10
|
+
- 🤖 **Agent-Friendly** - Designed for AI agents and automation
|
|
11
|
+
- 🎯 **Interactive Editor** - Web-based UI for visual editing
|
|
12
|
+
- ⚡ **Fast Rendering** - Powered by Playwright and FFmpeg
|
|
13
|
+
|
|
14
|
+
## Quick Start
|
|
15
|
+
|
|
16
|
+
### Installation
|
|
4
17
|
|
|
5
18
|
```bash
|
|
6
19
|
bun install
|
|
20
|
+
bun run build
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Basic Usage
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Create a scene template
|
|
27
|
+
feedeas example basic > scene.json
|
|
28
|
+
|
|
29
|
+
# Validate the scene
|
|
30
|
+
feedeas validate scene.json
|
|
31
|
+
|
|
32
|
+
# Open interactive editor
|
|
33
|
+
feedeas edit
|
|
34
|
+
|
|
35
|
+
# Render to video
|
|
36
|
+
feedeas record --project scene.json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Commands
|
|
40
|
+
|
|
41
|
+
### Video Creation
|
|
42
|
+
|
|
43
|
+
- `feedeas edit [dir]` - Start the interactive editor
|
|
44
|
+
- `feedeas record` - Render scene to video
|
|
45
|
+
- `feedeas snap <time>` - Take a snapshot at specific time
|
|
46
|
+
- `feedeas validate <file>` - Validate scene JSON
|
|
47
|
+
|
|
48
|
+
### AI Image Generation
|
|
49
|
+
|
|
50
|
+
Generate images using Google's Imagen AI (via Gemini API):
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
# Setup (one-time): Get API key from https://aistudio.google.com/app/apikey
|
|
54
|
+
export GEMINI_API_KEY="your-api-key"
|
|
55
|
+
|
|
56
|
+
# Basic usage - saves to assets/mountain.png
|
|
57
|
+
feedeas imagine "A serene mountain landscape"
|
|
58
|
+
|
|
59
|
+
# Multiple images - saves to assets/pattern_1.png, pattern_2.png, etc.
|
|
60
|
+
feedeas imagine "Abstract art" -n 4 -o pattern.png
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**Images save to `./assets/` by default** - perfect for video workflows!
|
|
64
|
+
|
|
65
|
+
**[📖 Full Imagine Command Documentation](./docs/IMAGINE_COMMAND.md)**
|
|
66
|
+
|
|
67
|
+
### Scene Management
|
|
68
|
+
|
|
69
|
+
- `feedeas example [type]` - Generate example scenes
|
|
70
|
+
- `feedeas set-scene <file>` - Create/update scene programmatically
|
|
71
|
+
- `feedeas inspect` - Inspect project assets
|
|
72
|
+
- `feedeas schema` - Show entity schema information
|
|
73
|
+
|
|
74
|
+
## Project Structure
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
your-project/
|
|
78
|
+
├── scene_1.json # Scene definition
|
|
79
|
+
├── assets/ # Images, audio files
|
|
80
|
+
│ ├── background.png
|
|
81
|
+
│ ├── music.mp3
|
|
82
|
+
│ └── ...
|
|
83
|
+
└── output.mp4 # Generated video
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Scene File Format
|
|
87
|
+
|
|
88
|
+
```json
|
|
89
|
+
{
|
|
90
|
+
"meta": {
|
|
91
|
+
"width": 1080,
|
|
92
|
+
"height": 1350,
|
|
93
|
+
"duration": 5
|
|
94
|
+
},
|
|
95
|
+
"entities": [
|
|
96
|
+
{
|
|
97
|
+
"id": "text-1",
|
|
98
|
+
"type": "text",
|
|
99
|
+
"text": "Hello, World!",
|
|
100
|
+
"startTime": 0,
|
|
101
|
+
"duration": 5,
|
|
102
|
+
"x": 100,
|
|
103
|
+
"y": 500,
|
|
104
|
+
"fontSize": 80,
|
|
105
|
+
"color": "#ffffff",
|
|
106
|
+
"enter": { "type": "fade", "duration": 0.5 }
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
7
110
|
```
|
|
8
111
|
|
|
9
|
-
|
|
112
|
+
## Documentation
|
|
113
|
+
|
|
114
|
+
- [Imagine Command Guide](./docs/IMAGINE_COMMAND.md) - AI image generation
|
|
115
|
+
- Run `feedeas --help` for full CLI documentation
|
|
116
|
+
- Run `feedeas <command> --help` for command-specific help
|
|
117
|
+
|
|
118
|
+
## Development
|
|
10
119
|
|
|
11
120
|
```bash
|
|
12
|
-
|
|
121
|
+
# Run in development mode
|
|
122
|
+
bun run dev
|
|
123
|
+
|
|
124
|
+
# Build CLI and UI
|
|
125
|
+
bun run build
|
|
126
|
+
|
|
127
|
+
# Run CLI directly
|
|
128
|
+
bun run feedeas
|
|
13
129
|
```
|
|
14
130
|
|
|
15
|
-
|
|
131
|
+
## Requirements
|
|
132
|
+
|
|
133
|
+
- [Bun](https://bun.sh) v1.2.2 or later
|
|
134
|
+
- Node.js 20.19+ or 22.12+ (for Vite)
|
|
135
|
+
- FFmpeg (for video rendering)
|
|
136
|
+
- Gemini API key (for AI image generation) - Get free at https://aistudio.google.com/app/apikey
|
|
137
|
+
|
|
138
|
+
## License
|
|
139
|
+
|
|
140
|
+
This project was created using `bun init` in bun v1.2.2.
|
|
141
|
+
|