feedeas 0.1.0-alpha.1 → 0.1.0-alpha.10
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 +22 -0
- package/README.md +152 -5
- package/bin/feedeas.js +3 -0
- package/dist/cli/index.js +2453 -4564
- package/dist/ui/assets/index-B4LfCAUB.css +1 -0
- package/dist/ui/assets/index-DwuL9X1n.js +17 -0
- package/dist/ui/index.html +2 -2
- package/docs/BGM_COMMAND.md +66 -0
- package/package.json +25 -5
- package/scripts/release-npm.ts +88 -0
- package/bun.lock +0 -392
- package/dist/ui/assets/index-CVEIKd3u.js +0 -14
- package/dist/ui/assets/index-cRTfA0UF.css +0 -1
- package/index.ts +0 -1
- package/reference_app_ignore_this.tsx +0 -544
- package/src/cli/index.ts +0 -67
- package/src/cli/server/api.ts +0 -57
- package/src/cli/server/index.ts +0 -53
- package/src/ui/App.tsx +0 -544
- package/src/ui/index.css +0 -1
- package/src/ui/index.html +0 -13
- package/src/ui/main.tsx +0 -10
- package/tsconfig.json +0 -27
- package/vite.config.ts +0 -22
package/.env.example
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
# Optional: PostHog project key for CLI telemetry
|
|
8
|
+
# If set, Feedeas emits basic command events (started/finished).
|
|
9
|
+
POSTHOG_KEY=your-posthog-project-key-here
|
|
10
|
+
|
|
11
|
+
# Optional: Disable telemetry even when POSTHOG_KEY is set
|
|
12
|
+
# FEDEAS_TELEMETRY_DISABLED=true
|
|
13
|
+
|
|
14
|
+
# Setup Instructions:
|
|
15
|
+
# 1. Copy this file to .env
|
|
16
|
+
# 2. Replace the placeholder value with your actual Gemini API key
|
|
17
|
+
# 3. The CLI will automatically load this value
|
|
18
|
+
#
|
|
19
|
+
# Example:
|
|
20
|
+
# cp .env.example .env
|
|
21
|
+
# # Edit .env with your API key
|
|
22
|
+
# feedeas imagine "a beautiful sunset"
|
package/README.md
CHANGED
|
@@ -1,15 +1,162 @@
|
|
|
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
|
|
7
21
|
```
|
|
8
22
|
|
|
9
|
-
|
|
23
|
+
### Basic Usage
|
|
10
24
|
|
|
11
25
|
```bash
|
|
12
|
-
|
|
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
|
|
13
37
|
```
|
|
14
38
|
|
|
15
|
-
|
|
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
|
+
# Reel-ready portrait generation (recommended for 9:16 videos)
|
|
60
|
+
feedeas imagine "Electric SUV charging at dusk" --aspect-ratio 9:16 --image-size 2K -o ev_portrait.png
|
|
61
|
+
|
|
62
|
+
# Multiple images - saves to assets/pattern_1.png, pattern_2.png, etc.
|
|
63
|
+
feedeas imagine "Abstract art" -n 4 -o pattern.png
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Images save to `./assets/` by default** - perfect for video workflows!
|
|
67
|
+
|
|
68
|
+
`imagine` defaults to `--aspect-ratio auto`:
|
|
69
|
+
- If `scene_1.json` exists, it infers from `meta.width:meta.height`
|
|
70
|
+
- Otherwise it falls back to `9:16`
|
|
71
|
+
|
|
72
|
+
**[📖 Full Imagine Command Documentation](./docs/IMAGINE_COMMAND.md)**
|
|
73
|
+
|
|
74
|
+
### AI BGM Generation (Contract Draft)
|
|
75
|
+
|
|
76
|
+
Gemini-first command contract and backend request types for `feedeas bgm` are documented here:
|
|
77
|
+
|
|
78
|
+
**[📖 BGM Command Contract](./docs/BGM_COMMAND.md)**
|
|
79
|
+
|
|
80
|
+
Basic usage:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
# Generate 20s background music into assets/bgm.mp3
|
|
84
|
+
feedeas bgm "ambient cinematic underscore, no vocals" -d 20 -o bgm.mp3
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Scene Management
|
|
88
|
+
|
|
89
|
+
- `feedeas example [type]` - Generate example scenes
|
|
90
|
+
- `feedeas set-scene <file>` - Create/update scene programmatically
|
|
91
|
+
- `feedeas inspect` - Inspect project assets
|
|
92
|
+
- `feedeas schema` - Show entity schema information
|
|
93
|
+
|
|
94
|
+
## Project Structure
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
your-project/
|
|
98
|
+
├── scene_1.json # Scene definition
|
|
99
|
+
├── assets/ # Images, audio files
|
|
100
|
+
│ ├── background.png
|
|
101
|
+
│ ├── music.mp3
|
|
102
|
+
│ └── ...
|
|
103
|
+
└── output.mp4 # Generated video
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
## Scene File Format
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
{
|
|
110
|
+
"meta": {
|
|
111
|
+
"width": 1080,
|
|
112
|
+
"height": 1350,
|
|
113
|
+
"duration": 5
|
|
114
|
+
},
|
|
115
|
+
"entities": [
|
|
116
|
+
{
|
|
117
|
+
"id": "text-1",
|
|
118
|
+
"type": "text",
|
|
119
|
+
"text": "Hello, World!",
|
|
120
|
+
"startTime": 0,
|
|
121
|
+
"duration": 5,
|
|
122
|
+
"x": 100,
|
|
123
|
+
"y": 500,
|
|
124
|
+
"fontSize": 80,
|
|
125
|
+
"color": "#ffffff",
|
|
126
|
+
"enter": { "type": "fade", "duration": 0.5 }
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
For `image` entities, add `"fit": "smart"` to reduce accidental cropping on mismatched aspect ratios.
|
|
133
|
+
|
|
134
|
+
## Documentation
|
|
135
|
+
|
|
136
|
+
- [Imagine Command Guide](./docs/IMAGINE_COMMAND.md) - AI image generation
|
|
137
|
+
- Run `feedeas --help` for full CLI documentation
|
|
138
|
+
- Run `feedeas <command> --help` for command-specific help
|
|
139
|
+
|
|
140
|
+
## Development
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
# Run in development mode
|
|
144
|
+
bun run dev
|
|
145
|
+
|
|
146
|
+
# Build CLI and UI
|
|
147
|
+
bun run build
|
|
148
|
+
|
|
149
|
+
# Run CLI directly
|
|
150
|
+
bun run feedeas
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
## Requirements
|
|
154
|
+
|
|
155
|
+
- [Bun](https://bun.sh) v1.2.2 or later
|
|
156
|
+
- Node.js 20.19+ or 22.12+ (for Vite)
|
|
157
|
+
- FFmpeg (for video rendering)
|
|
158
|
+
- Gemini API key (for AI image generation) - Get free at https://aistudio.google.com/app/apikey
|
|
159
|
+
|
|
160
|
+
## License
|
|
161
|
+
|
|
162
|
+
This project was created using `bun init` in bun v1.2.2.
|
package/bin/feedeas.js
ADDED