File size: 2,937 Bytes
fa5c7f4
 
 
 
 
 
 
 
 
2016e6e
fa5c7f4
 
7fa9d90
 
fa5c7f4
7fa9d90
 
 
 
fa5c7f4
 
7fa9d90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa5c7f4
7fa9d90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa5c7f4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7fa9d90
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
---
title: NCAkit
emoji: 🎬
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 8880
pinned: false
license: mit
Api Docs: https://robiul487-NCAkit.hf.space/docs
---

# NCAkit - Neural Content Automation Toolkit πŸ€–

A modular Python toolkit for content automation, featuring video creation, AI story reels, and more.

## ✨ Features

- 🎬 **Video Creator** - Short-form videos with TTS, captions, and music
- οΏ½ **Story Reels** - AI-powered character-consistent story videos (NEW!)
- οΏ½πŸ”Œ **Modular Architecture** - Easy to add new features
- 🌐 **REST API** - FastAPI with auto-generated docs
- πŸš€ **Ready for Deployment** - Docker & Hugging Face Spaces

## πŸ—οΈ Project Structure

```
NCAkit/
β”œβ”€β”€ app.py                      # Main FastAPI application
β”œβ”€β”€ config.py                   # Unified configuration
β”œβ”€β”€ requirements.txt            # All dependencies
β”œβ”€β”€ Dockerfile                  # Docker deployment
β”‚
β”œβ”€β”€ core/                       # Shared infrastructure
β”‚   β”œβ”€β”€ module_registry.py      # Auto module discovery
β”‚   └── utils/                  # Shared utilities
β”‚
β”œβ”€β”€ modules/                    # Feature modules
β”‚   β”œβ”€β”€ video_creator/          # Video creation module
β”‚   β”œβ”€β”€ story_reels/            # AI Story Reels (NEW!)
β”‚   └── _template/              # Template for new modules
β”‚
└── static/                     # Web UI & assets
```

## πŸš€ Quick Start

### Install

```bash
cd NCAkit
pip install -r requirements.txt
```

### Configure

```bash
cp .env.example .env
# Edit .env with your API keys
```

### Run

```bash
python app.py
# Or: uvicorn app:app --host 0.0.0.0 --port 8880 --reload
```

### Access

- **Web UI**: http://localhost:8880
- **API Docs**: http://localhost:8880/docs
- **Modules**: http://localhost:8880/api/modules

## πŸ“‘ API Endpoints

### Video Creator
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/video/short-video` | POST | Create video |
| `/api/video/short-video/{id}/status` | GET | Check status |
| `/api/video/short-video/{id}` | GET | Download video |

### Story Reels (NEW!)
| Endpoint | Method | Description |
|----------|--------|-------------|
| `/api/story-reels/generate` | POST | Generate AI story video |
| `/api/story-reels/status/{id}` | GET | Check status |
| `/api/story-reels/download/{id}` | GET | Download video |

## βš™οΈ Environment Variables

| Variable | Required | Module |
|----------|----------|--------|
| `PEXELS_API_KEY` | βœ… | Video Creator |
| `HF_TTS` | βœ… | Video Creator / Story Reels |
| `NVIDIA_API_KEY` | βœ… | Story Reels (Primary) |
| `CF_URL` | ❌ | Story Reels (Fallback) |
| `CF_API` | ❌ | Story Reels (Fallback) |
| `GEMINI_API_KEY` | βœ… | Story Reels (AI Scripts) |

## 🐳 Docker

```bash
docker build -t ncakit .
docker run -p 8880:8880 --env-file .env ncakit
```

## πŸ“„ License

MIT