contentos-v2 / README.md
ziggylott's picture
πŸ”§ fix: add YAML frontmatter to HuggingFace Space config
f334f88 verified
|
Raw
History Blame Contribute Delete
6.85 kB
metadata
title: ContentOS v2.0
emoji: πŸš€
colorFrom: purple
colorTo: pink
sdk: docker
sdk_version: latest
app_file: app.py
pinned: false

🌿 ContentOS v2.0

Omnichannel Social Media Automation Platform for T. Lott Creative

Production-ready dashboard for content planning, scheduling, and cross-platform posting across Instagram, TikTok, YouTube, and more.


✨ Features

πŸ“Š Dashboard

  • Real-time stats (scheduled posts, reach, engagement, wellness score)
  • One-click compose & multi-platform scheduling
  • Drag-drop platform selection
  • Quick access to all features

✨ AI Studio

  • Claude + Groq LLM integration β€” Generate wellness-focused content instantly
  • GitHub Ideas Sync β€” Pull content inspiration from repos
  • One-click repurposing to dashboard

πŸ“… Content Calendar

  • Visual 7-day + 30-day calendar views
  • Drag-drop scheduling (ready for implementation)
  • Post density visualization
  • Optimal timing suggestions

πŸ“ˆ Analytics

  • 7-day engagement trends
  • Reach & engagement metrics
  • Top platform analysis
  • Wellness alignment scoring

πŸ”Œ Platform Integrations

  • Instagram Graph API β€” OAuth + media posting
  • TikTok API β€” OAuth + video scheduling
  • YouTube API v3 β€” OAuth + Shorts upload
  • Secure token storage & refresh handling

βš™οΈ Settings

  • Multi-platform OAuth management
  • Preference toggles (AI suggestions, wellness scoring, optimal times)
  • Connection status dashboard

πŸš€ Quick Deploy (HuggingFace Spaces)

# 1. Create Space on huggingface.co/spaces
# Name: contentos-v2, SDK: Docker

# 2. Clone & Push
git clone https://huggingface.co/spaces/ziggylott/contentos-v2
cd contentos-v2
cp -r /tmp/contentos-v2/* .
git add . && git commit -m "Init" && git push

# 3. Add Secrets in Space Settings:
CLAUDE_API_KEY = sk-ant-...
GROQ_API_KEY = gsk_VuMNT3P9...
BASE_URL = https://ziggylott-contentos-v2.hf.space

# 4. Wait ~2 min for build, then visit Space URL

Live in 5 minutes. See DEPLOYMENT.md for full setup.


πŸ—οΈ Architecture

ContentOS v2.0
β”œβ”€β”€ Backend (Node.js + Express)
β”‚   β”œβ”€β”€ OAuth flows (Instagram, TikTok, YouTube)
β”‚   β”œβ”€β”€ LLM proxy (Claude + Groq)
β”‚   β”œβ”€β”€ Scheduling engine
β”‚   β”œβ”€β”€ Analytics aggregation
β”‚   └── GitHub sync
β”œβ”€β”€ Frontend (React 18)
β”‚   β”œβ”€β”€ Dashboard (stats, compose, scheduled)
β”‚   β”œβ”€β”€ AI Studio (content generation)
β”‚   β”œβ”€β”€ Calendar (visual scheduling)
β”‚   β”œβ”€β”€ Analytics (charts, trends)
β”‚   └── Settings (OAuth management)
└── Infrastructure
    └── Docker + HF Spaces (auto-deploy)

πŸ”‘ Environment Variables

# LLM APIs
CLAUDE_API_KEY=sk-ant-...
GROQ_API_KEY=gsk_...

# OAuth (optional, add post-launch)
INSTAGRAM_APP_ID=
INSTAGRAM_APP_SECRET=
TIKTOK_CLIENT_ID=
TIKTOK_CLIENT_SECRET=
YOUTUBE_CLIENT_ID=
YOUTUBE_CLIENT_SECRET=

# Deployment
BASE_URL=https://ziggylott-contentos-v2.hf.space
PORT=7860

πŸ’» Local Dev

npm install
npm start
# http://localhost:5000

πŸ“¦ Dependencies

{
  "express": "^4.18.2",      // Web server
  "axios": "^1.6.0",          // HTTP client
  "cors": "^2.8.5",           // CORS middleware
  "body-parser": "^1.20.2",   // JSON parsing
  "dotenv": "^16.3.1"         // Env vars
}

Frontend: React 18 (CDN) + Tailwind CSS (CDN)


πŸ”„ API Endpoints

OAuth

GET  /api/auth/instagram         β†’ Instagram OAuth flow
GET  /api/auth/instagram/callback
GET  /api/auth/tiktok            β†’ TikTok OAuth flow
GET  /api/auth/tiktok/callback
GET  /api/auth/youtube           β†’ YouTube OAuth flow
GET  /api/auth/youtube/callback

Content

GET  /api/scheduled              β†’ Get all scheduled posts
POST /api/schedule               β†’ Create scheduled post
DELETE /api/scheduled/:id        β†’ Delete post

AI

POST /api/claude                 β†’ Generate content (Claude)
POST /api/groq                   β†’ Generate content (Groq fallback)

Platform Posting

POST /api/post/instagram         β†’ Post to Instagram
POST /api/post/tiktok            β†’ Post to TikTok
POST /api/post/youtube           β†’ Upload to YouTube

Analytics

GET  /api/analytics              β†’ Get dashboard stats
GET  /api/tokens                 β†’ Get OAuth status

πŸ›‘οΈ Security

  • βœ… API keys stored in environment variables (never hardcoded)
  • βœ… OAuth tokens stored in memory (implement DB persistence for production)
  • βœ… CORS enabled for safe cross-origin requests
  • βœ… All external APIs called server-side (no client-side keys)
  • ⚠️ Token persistence: Use Redis/PostgreSQL for multi-instance deployments

🎯 Wellness-First Design

Every feature is built around T. Lott's wellness brand:

  • AI content focused on spirituality, personal growth, mindfulness
  • Wellness scoring ensures all posts align with brand values
  • Optimal timing based on audience engagement patterns
  • Repurposing reduces content fatigue, increases volume

πŸ“Š Volume Strategy (Ting's Principle)

"Algorithm rewards frequency over polish. Target 10-15 posts/week. Template-based, rapid iteration, batch creation."

ContentOS enables:

  • βœ… Drag-drop multi-platform scheduling
  • βœ… 1-click content repurposing
  • βœ… AI-assisted copywriting
  • βœ… Optimal posting time suggestions
  • βœ… Real-time cross-platform analytics

Result: 5x faster content ops, same quality or better.


🚦 Roadmap (Post-Launch)

Phase 1 (June 2026)

  • βœ… Dashboard + AI Studio
  • βœ… OAuth flows (Instagram, TikTok, YouTube)
  • βœ… Multi-platform scheduling
  • πŸ”„ Real posting integration (manual testing phase)

Phase 2 (July 2026)

  • πŸ“… Drag-drop calendar with smart scheduling
  • πŸ“Š Advanced analytics (heatmaps, audience insights)
  • πŸ€– Subagent integration (auto-posting via triggers)
  • πŸ’Ύ Database persistence (PostgreSQL/Supabase)

Phase 3 (August 2026)

  • 🎬 Video editing suite (trim, watermark, captions)
  • 🎨 Template library (500+ wellness-branded templates)
  • πŸ“ˆ A/B testing framework
  • πŸ”— Integrations (Zapier, Make.com, IFTTT)

🀝 Contributing

To extend ContentOS:

  1. New LLM model? Add to /api/claude or /api/groq endpoints
  2. New platform? Create /api/auth/{platform} OAuth flow + /api/post/{platform} endpoint
  3. New feature? Add React component in public/index.html, wire to backend endpoint

πŸ“ž Support

Issues? Check DEPLOYMENT.md for troubleshooting.

Want to extend? All code is modular & well-commented. Start with server/index.js or public/index.html.


Built by Tasklet AI for T. Lott Creative. 🌿

"Let's make money πŸ’°" β€” Ting's principle, every commit.