Skip to content

Latest commit

Β 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CoreText Executive OS Version License Python React

CoreText Executive OS

The Shareholder Asset Compounding Suite
Enterprise-grade full-stack command center for autonomous content portfolio management, predictive SEO intelligence, and multi-site revenue compounding.


🎯 What is CoreText?

CoreText Executive OS is a fully autonomous content portfolio management system that transforms you from an operator into a Shareholder. You establish your asset compounding parameters once, review prioritized multi-dimensional content portfolios, and trigger fully predictive AI webhook engines that compound your enterprise asset valuation permanently.

The Shareholder Mental Model

Role Responsibility
Shareholder (You) Set strategy. Review briefings. Approve Tier 3/4 decisions.
CoreText Executive OS Executes Tier 1/2 autonomously. Predicts decay. Intercepts trends. Compounds revenue.

✨ Key Features

πŸŒ… Morning Briefing Engine

Autonomous overnight situation reports per asset β€” revenue pacing, strategic decisions queued, 30-day forecasts, and compounding metrics. One screen, full portfolio awareness.

🧠 3-Layer Nervous System Stack

  • Layer 1 β€” Real-time crawl budget, CTR micro-dip detection, and predictive health scoring
  • Layer 2 β€” Industry velocity analysis, algorithm weather, and emerging topic cluster interception
  • Layer 3 β€” Persistent AI memory per site: audience posture, tone calibration, monetization rules

πŸ”€ Intelligent Decision Routing (4-Tier)

Tier Description Execution
T1 Broken links, meta updates, schema fixes Fully autonomous
T2 Statistic refreshes, FAQ injections Autonomous + notification
T3 New content clusters, link restructuring Human approval required
T4 Strategic pivots, product launches Human discussion required

πŸ“Š Content Portfolio Optimizer

Multi-dimensional scoring engine (demand Γ— GEO Γ— monetization Γ— competitive gap Γ— authority fit) with one-click Atomization Studio β€” instantly fragments a pillar into newsletter, LinkedIn carousel, Twitter thread, YouTube script, and podcast outline.

🌐 GEO Engine Visibility (Generative Engine Optimization)

Track and optimize your citation footprint across ChatGPT Search, Perplexity Pro, and Claude β€” deploy structured AI Answer Baits and run citability audits.

πŸ›‘οΈ Preemptive Content Decay Shield

Predictive decay probability scoring with autonomous refresh briefing generation. Catch ranking erosion 14–30 days before it hits.

πŸ’° Revenue Maximizer

Per-article RPM tracking, untapped affiliate gap detection, digital product creation opportunities, and live affiliate program radar.

🏟️ Competitive Intelligence & Trend Interception

Real-time competitor publishing velocity monitoring with autonomous fast-response brief generation for viral trend windows (X/Twitter, Reddit, HackerNews, GitHub Trending).

🐝 Hive Mind Cross-Pollination

Transfer winning strategies between portfolio sites β€” conversion tactics, content formats, and engagement patterns that compound across your entire asset network.

πŸ’¬ AI Co-Director Chat

Context-aware strategic dialogue powered by OpenAI GPT-4o and Anthropic Claude, with full Layer 3 memory access for every asset in your portfolio.

βž• Dynamic Suite Management

Add and remove Shareholder Suites on the fly via the UI β€” no database resets, no code changes. Scale from 1 to unlimited portfolio assets dynamically.


πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  FRONTEND (React 18)            β”‚
β”‚  Vite Β· TypeScript Β· Tailwind CSS Β· Recharts    β”‚
β”‚  Lucide Icons Β· Axios                           β”‚
β”‚  Port: 3000                                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                   REST API                      β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚                BACKEND (FastAPI)                β”‚
β”‚  Python 3.11+ Β· SQLAlchemy ORM Β· Pydantic v2    β”‚
β”‚  OpenAI SDK Β· Anthropic SDK                     β”‚
β”‚  Port: 8000                                     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚              PERSISTENCE (SQLite)               β”‚
β”‚  coretext.db β€” zero-config local database       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Backend (backend/)

File Purpose
app/main.py FastAPI application with CORS and router registration
app/models.py SQLAlchemy ORM models (16 tables)
app/schemas.py Pydantic validation schemas
app/ai_engine.py OpenAI + Anthropic integration with autonomous fallbacks
app/init_db.py Database seeding with production-grade demo data
app/database.py SQLite engine and session management
app/routers/ Modular API routers (sites, briefing, chat, etc.)

Frontend (frontend/)

File Purpose
src/App.tsx Root application with state management and tab routing
src/api.ts Typed Axios API client
src/types.ts Full TypeScript interface definitions
src/components/Header.tsx Executive dashboard header with live stats
src/components/Sidebar.tsx Navigation module switcher
src/components/AddSuiteModal.tsx Dynamic suite creation modal
src/components/tabs/ 10 specialized tab components

πŸš€ Quick Start

Prerequisites

  • Python 3.11+ with pip
  • Node.js 18+ with npm

1. Clone & Install

git clone https://github.com/fxinfo24/CoreText.git
cd CoreText

2. Backend Setup

cd backend
python -m venv venv
source venv/bin/activate      # Windows: venv\Scripts\activate
pip install -r requirements.txt
python run.py

Backend starts at http://localhost:8000 β€” verify with curl http://localhost:8000

3. Frontend Setup

cd frontend
npm install
npm run dev

Frontend starts at http://localhost:3000 β€” open in browser.

4. One-Command Launch (macOS/Linux)

chmod +x run_coretext.sh
./run_coretext.sh

βš™οΈ Configuration

AI Engine API Keys

Open Settings (βš™οΈ icon in header) to configure:

Provider Models Used Purpose
OpenAI gpt-4o Content atomization, chat, strategic analysis
Anthropic claude-3-5-sonnet Fallback AI engine, deep reasoning tasks

Note: CoreText works fully without API keys β€” all core features (briefings, portfolios, decay shields, GEO audits) operate on deterministic logic. AI keys unlock enhanced chat and atomization quality.


πŸ“‘ API Reference

All endpoints are prefixed with /api/. Full interactive docs at http://localhost:8000/docs (Swagger UI).

Sites & Suites

Method Endpoint Description
GET /api/sites List all shareholder suites
GET /api/sites/{id} Get single suite
POST /api/sites Create new suite (dynamic)
DELETE /api/sites/{id} Decommission suite (cascade)

Intelligence Modules

Method Endpoint Description
GET /api/briefing/{site_id} Morning briefing
GET /api/nervous-system/{site_id} 3-layer nervous system
GET /api/decisions/{site_id} 4-tier decision queue
POST /api/decisions/execute/{id} Execute decision
GET /api/portfolios/{site_id} Content portfolios
POST /api/portfolios/atomize Atomize content
GET /api/geo/{site_id} GEO visibility data
GET /api/decay/{site_id} Decay predictions
POST /api/decay/shield/{id} Deploy decay shield
GET /api/monetization/{site_id} Revenue intelligence
GET /api/competitors/{site_id} Competitive intel
GET /api/hive Hive mind learnings
POST /api/chat AI Co-Director chat

πŸ—‚οΈ Project Structure

CoreText/
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app/
β”‚   β”‚   β”œβ”€β”€ main.py              # FastAPI app entry
β”‚   β”‚   β”œβ”€β”€ models.py            # 16 SQLAlchemy models
β”‚   β”‚   β”œβ”€β”€ schemas.py           # Pydantic schemas
β”‚   β”‚   β”œβ”€β”€ database.py          # DB engine config
β”‚   β”‚   β”œβ”€β”€ ai_engine.py         # AI integration layer
β”‚   β”‚   β”œβ”€β”€ init_db.py           # Seed data
β”‚   β”‚   └── routers/             # 11 modular API routers
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ run.py
β”‚   └── coretext.db
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ App.tsx
β”‚   β”‚   β”œβ”€β”€ api.ts
β”‚   β”‚   β”œβ”€β”€ types.ts
β”‚   β”‚   └── components/
β”‚   β”‚       β”œβ”€β”€ Header.tsx
β”‚   β”‚       β”œβ”€β”€ Sidebar.tsx
β”‚   β”‚       β”œβ”€β”€ AddSuiteModal.tsx
β”‚   β”‚       β”œβ”€β”€ SettingsModal.tsx
β”‚   β”‚       β”œβ”€β”€ AtomizeModal.tsx
β”‚   β”‚       β”œβ”€β”€ Toast.tsx
β”‚   β”‚       └── tabs/             # 10 tab components
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ vite.config.ts
β”‚   └── tailwind.config.js
β”œβ”€β”€ run_coretext.sh
β”œβ”€β”€ .gitignore
└── README.md

πŸ” Security Notes

  • API keys are stored locally in SQLite β€” never committed to version control
  • CORS is configured for local development (*) β€” restrict for production
  • No authentication layer by default β€” add JWT/OAuth for deployment
  • All AI calls use official SDKs with proper error handling

πŸ—ΊοΈ Roadmap

  • Multi-user authentication (JWT + role-based access)
  • PostgreSQL migration for production workloads
  • Webhook integrations (Stripe, PartnerStack, Impact)
  • Scheduled autonomous briefing emails (SendGrid/Resend)
  • Real-time Google Search Console API integration
  • Live Perplexity/ChatGPT citation tracking
  • Docker Compose deployment configuration
  • Mobile-responsive PWA shell

πŸ“„ License

MIT License β€” see LICENSE for details.


CoreText Executive OS v2.0.0
Stop operating. Start compounding.

About

Enterprise-grade full-stack command center for autonomous content portfolio management, predictive SEO intelligence, and multi-site revenue compounding.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages