Features • Tech Stack • Installation • Usage
InstaExplorer is a cutting-edge analytics tool designed for public Instagram accounts. By fetching real-time account metrics and feeding them into an Explainable AI (XAI) engine, this dashboard provides creators and marketers with clear, actionable insights on how to improve Retention, increase Virality, and discover the Optimal Engagement Times for their audience.
Note: Due to Instagram's aggressive anti-scraping measures, the backend features a robust fallback mechanism that generates simulated, highly realistic AI insights when live scraping is blocked.
- Explainable AI (XAI) Insights: Get human-readable advice on why certain reels perform better and how to adjust your content strategy.
- Premium Dark Mode UI: Built with Next.js using custom glassmorphism CSS, neon accents, and modern typography.
- Interactive Visualizations: Seamless chart rendering using
rechartsto map historical engagement. - Resilient Data Collection: Python
instaloaderwrapper with an intelligent mockup fallback. - Lightning Fast API: Powered by FastAPI to serve AI inferences instantaneously.
graph TD;
A[User] -->|Inputs Instagram Handle| B(Next.js Dashboard)
B -->|API Request/XHR| C{Python FastAPI Backend}
C --> D[Instaloader Scraper]
D -- Success --> E[Parse Real Metrics]
D -- Blocked/Rate Limited --> F[Generate Mock Data]
E --> G((XAI Engine))
F --> G
G -->|Analyzes Post Density| H[Generate Retention Rules]
G -->|Extracts Peak Metrics| I[Identify Virality Vectors]
H --> J[Final JSON Response]
I --> J
J -->|Returned to Frontend| B
B -->|Renders Visuals| K[Charts & Insights Layout]
Frontend:
- Next.js (React Framework)
- Vanilla CSS Modules (Custom Premium Dashboard UI)
- Recharts (Data Visualization)
- Lucide React (Icons)
Backend:
- Python 3
- FastAPI (API Framework)
instaloader(Instagram Data Scraping)scikit-learn&shap(Machine Learning / XAI dependencies)
To run this project locally, you will need Node.js and Python installed on your machine.
git clone https://github.com/Anshbhardwaj29/InstaExplorer.git
cd InstaExplorer# Navigate to the backend directory
cd backend
# (Optional but recommended) Create a virtual environment
python -m venv venv
venv\Scripts\activate # On Windows
# Install the dependencies
pip install -r requirements.txt# Open a new terminal and navigate to the frontend directory
cd frontend
# Install Node modules
npm installYou need to run both the Frontend and Backend servers simultaneously to use the dashboard.
Start the Backend API:
cd backend
python main.pyThe API will start at http://localhost:8000
Start the Frontend Dashboard:
cd frontend
npm run devThe web app will start at http://localhost:3000
Once both servers are running, open your browser and navigate to http://localhost:3000. Enter any public Instagram handle (e.g., nike) to generate your AI insights!
- Integrate Official Facebook/Instagram Graph API.
- Connect Gemini LLM to process SHAP values directly.
- Add PostgreSQL database integration to save user historical queries.
- Expand analytics tracking to TikTok and YouTube Shorts.