Harkonnen is a full-stack application that analyzes social-media posts from influential public figures (politicians, CEOs, financial influencers) and correlates them with real financial market movements.
- Scraping posts (Truth Social / X / via scrapers/APIs)
- Preprocessing with regex + normalization
- Sentiment analysis using FinBERT (ProsusAI)
- Entity extraction with spaCy NER
- Fuzzy ticker/company matching with CSV + difflib
- Semantic RAG search with FAISS + MiniLM
- Yahoo Finance API integration
- Compute 1-day / 7-day (or configurable) price changes
- Influence scoring for posts and users
- Search and select influencers
- Visual timeline of posts with sentiment
- Plot stock price vs post timestamps
- Potential leaderboard + trading methodology explanation page
└── harkonnen/
├── backend/
│ ├── app/
│ │ ├── api/
│ │ ├── models/
│ │ ├── nlp/
│ └── tests/
├── frontend/
│ ├── public/
│ ├── src/
│ │ ├── components/
│ │ ├── pages/
│ │ ├── config/
│ │ ├── utils/
│ │ ├── App.jsx
│ │ └── main.jsx
│ └── package.json
└── venv/
cd backend
python -m venv ../venv
source ../venv/bin/activate # On Windows: ..\venv\Scripts\activate
pip install -r requirements.txttouch .env
#populate
APP_NAME="Harkonnen"
VERSION=1.0.0
API_PREFIX="/harkonnen"
HOST=0.0.0.0
PORT=8000
ALLOWED_ORIGINS= [ "http://localhost:5173", "http://localhost:3000"]
TRUTHSOCIAL_USERNAME=...
TRUTHSOCIAL_PASSWORD=...cd frontend
npm install
npm run devEndpoint documentation available at http://localhost:8000/docs#/