Spaces:
Sleeping
Sleeping
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:
- New LLM model? Add to
/api/claudeor/api/groqendpoints - New platform? Create
/api/auth/{platform}OAuth flow +/api/post/{platform}endpoint - 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.