Documentation
How Ethos Analytics Works
Overview
AI-Powered reputation analytics from Ethos Network
Ethos Analytics is an AI-powered reputation analysis tool that aggregates and analyzes reviews from the Ethos Network. It provides comprehensive insights into user reputation through sentiment analysis, thematic extraction, and temporal trends.
Data Sources
- ▹Ethos Network API: Live review data
 - ▹User Profiles: Twitter & wallet addresses
 - ▹Sentiment Scores: Positive, negative, neutral
 - ▹Temporal Data: Monthly review trends
 
AI Analysis
- ▹GPT-5 Nano: Cost-effective LLM
 - ▹Theme Extraction: Auto-detect patterns
 - ▹Summarization: Comprehensive insights
 - ▹Context-Aware: Personalized to user
 
How It Works
User Input
Enter a Twitter handle or Ethereum wallet address. The system resolves this to an Ethos userkey using the Ethos Network API.
Data Fetching
Retrieves all reviews for the user from Ethos Network, categorized by sentiment (positive, negative, neutral).
AI Processing
GPT-5 Nano analyzes all reviews to generate summaries, extract themes, and identify key patterns in the reputation data.
Aggregation & Spike Detection
Computes statistics (sentiment counts, percentages), builds timeline trends, calculates the historical Ethos score trajectory, and detects anomaly months with unusual review activity (2x+ average or 150%+ increase).
Spike Analysis
For each detected spike, AI analyzes the reviews from that month to determine what triggered the anomaly, extracting key themes and generating concise explanations.
Caching
Results are cached for 24 hours to minimize AI costs. Subsequent visits load instantly from cache until expiration.
Visualization
Displays comprehensive analytics: reputation summary, theme badges, sentiment timeline chart, Ethos badge, Timeline Insights (spike analysis), and filterable reviews list.
Smart Themes
AI automatically identifies common themes in positive and negative reviews, presenting them as keyword badges.
Timeline View
Interactive chart showing monthly sentiment trends alongside the Ethos score evolution over time.
Timeline Insights
AI-powered spike detection automatically identifies unusual activity months and explains what caused reputation changes.
API Endpoints
Internal API Reference
/api/resolveResolves a Twitter handle or wallet address to an Ethos userkey.
{ "userkey": "service:x.com:elonmusk", "profile": {...} }/api/summaryFetches comprehensive reputation summary with AI-generated insights.
{ "summary": "...", "counts": {...}, "timeline": [...], "themes": [...] }/api/reviewsRetrieves paginated, filterable list of individual reviews.
{ "reviews": [...], "total": 42, "limit": 50, "offset": 0 }Ethos Badge Tiers
Reputation Score Ranges
Getting Started
Quick Setup Guide
1. Clone the Repository
cd ethos_analytics
2. Install Dependencies
3. Set Up Environment
Get your OpenAI API key from platform.openai.com
4. Start Development Server
Visit http://localhost:3000 to view the app.