metadata
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
cd NCAkit
pip install -r requirements.txt
Configure
cp .env.example .env
# Edit .env with your API keys
Run
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
docker build -t ncakit .
docker run -p 8880:8880 --env-file .env ncakit
π License
MIT