Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.
docs: rewrite README with professional structure, Mermaid architecture diagram, and updated tech stack
valzorcb0b32eaaa8d
diff --git a/README.md b/README.mdindex fefe943..9b2dcd7 100644--- a/README.md+++ b/README.md@@ -1,99 +1,122 @@<div align="center">- <img src="frontend/public/logo.png" alt="Twiligent Logo" width="100" />- # Twiligent+ <img src="frontend/public/logo.png" alt="Twiligent" width="96" />- **Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.**+ <h1>Twiligent</h1>- [](https://nodejs.org)- [](https://react.dev)- [](https://mui.com)- [](LICENSE)- [](CONTRIBUTING.md)+ <p><strong>A self-hosted analytics and publishing dashboard for YouTube and Instagram.<br/>Your data. Your machine. No subscriptions.</strong></p>++ <p>+ <a href="https://nodejs.org"><img src="https://img.shields.io/badge/Node.js-18%2B-339933?style=flat-square&logo=node.js&logoColor=white" alt="Node.js 18+" /></a>+ <a href="https://react.dev"><img src="https://img.shields.io/badge/React-19-61DAFB?style=flat-square&logo=react&logoColor=black" alt="React 19" /></a>+ <a href="https://vitejs.dev"><img src="https://img.shields.io/badge/Vite-7-646CFF?style=flat-square&logo=vite&logoColor=white" alt="Vite 7" /></a>+ <a href="https://tailwindcss.com"><img src="https://img.shields.io/badge/Tailwind_CSS-v4-06B6D4?style=flat-square&logo=tailwindcss&logoColor=white" alt="Tailwind CSS v4" /></a>+ <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-22c55e?style=flat-square" alt="MIT License" /></a>+ </p>++ <br/>++ <img src="frontend/public/screenshots/Overall%20Overview.png" alt="Twiligent Dashboard Overview" width="90%" />++ <br/>+ <sub>Dashboard overview tracking YouTube and Instagram accounts side by side</sub></div>----No third-party service sitting between you and your numbers. No monthly fee. No sending your data somewhere you can't see. You plug in your YouTube Data API and Instagram Graph API keys. It pulls everything. Displays it clean in a dark-themed dashboard. That's it. Your data stays yours.-The only time anything leaves your machine is when you schedule Instagram posts. That part runs through GitHub Actions. Everything else never moves Most people don't realize how much they're giving up just to see their own stats. This fixes that.+## What is Twiligent?++Every analytics product wants a monthly subscription and access to your data. Twiligent is the alternative: a local-first dashboard that pulls your YouTube and Instagram stats directly from their official APIs, displays them in one place, and keeps everything on your machine.++No data leaves your computer except when you schedule an Instagram post through GitHub Actions. No accounts created on a third-party service. No ongoing cost beyond free API tiers.++---++## Table of Contents++- [Features](#features)+- [Screenshots](#screenshots)+- [Quick Start](#quick-start)+- [Prerequisites](#prerequisites)+- [Installation](#installation)+- [API Keys Setup](#api-keys-setup)+- [Scheduled Publishing with GitHub Actions](#scheduled-publishing-with-github-actions)+- [How It Works](#how-it-works)+- [Project Structure](#project-structure)+- [Tech Stack](#tech-stack)+- [Contributing](#contributing)+- [License](#license)---## Features-- **Multi-account support** — add unlimited YouTube channels and Instagram Business/Creator accounts side by side-- **YouTube analytics** — views, watch time, subscribers, revenue estimates, top videos, engagement rates, and shorts vs. long-form breakdown-- **Instagram analytics** — reach, impressions, follower growth, best day/hour to post, consistency score, and per-reel stats-- **Unified overview** — cross-platform totals and channel rankings at a glance-- **Content explorer** — sortable, filterable tables for all videos, all shorts, and all reels-- **Scheduled publishing** — schedule Instagram posts (image + caption + optional location) and let GitHub Actions publish them automatically every 15 minutes, even when your laptop is closed-- **Cloudinary support** — upload media directly from the dashboard to Cloudinary, then schedule or publish immediately-- **Token auto-refresh** — Instagram long-lived tokens refresh automatically every 24 hours so analytics never go stale-- **Zero database** — all data lives as JSON files in `backend/data/` for easy backup and full control+| Feature | Details |+|---|---|+| **Multi-account support** | Add unlimited YouTube channels and Instagram Business or Creator accounts |+| **YouTube analytics** | Views, subscribers, likes, comments, engagement rate, avg views per video, Shorts vs. long-form breakdown, top videos, Tags and SEO analysis |+| **Instagram analytics** | Followers, engagement rate, virality score, consistency score, best posting day and hour, content-type performance, hashtag analysis, caption-length correlation |+| **Unified overview** | Cross-platform totals, audience comparison chart, audience share pie, leaderboards |+| **Content explorers** | Sortable and filterable grids for all YouTube Videos, all YouTube Shorts, and all Instagram Reels and posts |+| **Scheduled publishing** | Schedule Instagram photos, Reels, and Stories; GitHub Actions publishes them every 15 minutes even when your machine is offline |+| **Bulk upload** | Upload multiple files at once, assign captions individually or apply a shared caption, schedule them with configurable intervals |+| **Cloudinary CDN** | Upload media directly from the dashboard; Instagram requires public URLs before publishing |+| **Token auto-refresh** | Instagram long-lived tokens renew automatically every 24 hours so analytics never break |+| **Zero database** | All data lives in plain JSON files under `backend/data/` for easy backup and full control |+| **Dark and light mode** | Toggle between themes from the header |---## Screenshots-<!-- Hero: Dashboard Overview -->-<div align="center">- <img src="frontend/public/screenshots/Dashboard%20Overview.png" alt="Dashboard Overview" width="90%" />- <p><em>Unified overview — cross-platform stats, audience comparison, and channel rankings at a glance</em></p>-</div>--<br/>--<!-- Row: YouTube + Instagram Analytics --><table width="100%"><tr><td width="50%" align="center">- <img src="frontend/public/screenshots/YouTube%20Account%20Overview.png" alt="YouTube Account Overview" width="100%" />- <br/><sub><b>YouTube Channel Analytics</b> — 20+ metrics, top videos with thumbnails, engagement deep-dive</sub>+ <img src="frontend/public/screenshots/YouTube%20Account%20Overview.png" alt="YouTube Channel Analytics" width="100%" />+ <br/><sub><strong>YouTube Channel Analytics</strong> - 20+ metrics across 8 tabs including Overview, Videos, Engagement, Content, Publishing, Growth, Shorts vs Regular, and Tags and SEO</sub></td><td width="50%" align="center">- <img src="frontend/public/screenshots/Instagram%20Account%20Overview.png" alt="Instagram Account Overview" width="100%" />- <br/><sub><b>Instagram Account Analytics</b> — follower growth, best post times, consistency score, engagement timeline</sub>+ <img src="frontend/public/screenshots/Instagram%20Account%20Overview.png" alt="Instagram Account Analytics" width="100%" />+ <br/><sub><strong>Instagram Account Analytics</strong> - follower stats, engagement timeline, best posting times, consistency score, and virality score</sub></td></tr></table><br/>-<!-- Row: Content Explorers (3 columns) --><table width="100%"><tr><td width="33%" align="center">- <img src="frontend/public/screenshots/All%20Videos.png" alt="Video Explorer" width="100%" />- <br/><sub><b>Video Explorer</b> — browse and sort all YouTube videos</sub>+ <img src="frontend/public/screenshots/YouTube%20Video.png" alt="Video Explorer" width="100%" />+ <br/><sub><strong>Video Explorer</strong> - browse, search, and sort all YouTube videos with thumbnail previews and per-video stats</sub></td><td width="33%" align="center">- <img src="frontend/public/screenshots/All%20Shorts.png" alt="Shorts Explorer" width="100%" />- <br/><sub><b>Shorts Explorer</b> — dedicated view for YouTube Shorts</sub>+ <img src="frontend/public/screenshots/YouTube%20Shorts.png" alt="Shorts Explorer" width="100%" />+ <br/><sub><strong>Shorts Explorer</strong> - dedicated grid view for YouTube Shorts with performance filtering</sub></td><td width="33%" align="center">- <img src="frontend/public/screenshots/IG%20Content%20Explorer.png" alt="IG Content Explorer" width="100%" />- <br/><sub><b>IG Content Explorer</b> — browse all reels and posts by performance</sub>+ <img src="frontend/public/screenshots/Instagram%20Reels.png" alt="IG Content Explorer" width="100%" />+ <br/><sub><strong>IG Content Explorer</strong> - browse all reels, photos, and carousels sorted by likes, comments, or engagement</sub></td></tr></table><br/>-<!-- Row: Management pages (3 columns) --><table width="100%"><tr><td width="33%" align="center"><img src="frontend/public/screenshots/Manage%20Accounts.png" alt="Manage Accounts" width="100%" />- <br/><sub><b>Accounts</b> — add/remove YouTube channels and Instagram accounts</sub>+ <br/><sub><strong>Accounts</strong> - add and remove YouTube channels and Instagram accounts; view live stats at a glance</sub></td><td width="33%" align="center">- <img src="frontend/public/screenshots/Upload%20Content.png" alt="Upload & Publish" width="100%" />- <br/><sub><b>Publish</b> — upload to Cloudinary and schedule Instagram posts</sub>+ <img src="frontend/public/screenshots/Publish%20Page.png" alt="Upload and Publish" width="100%" />+ <br/><sub><strong>Publish</strong> - upload to Cloudinary, schedule or publish immediately, single or bulk mode</sub></td><td width="33%" align="center">- <img src="frontend/public/screenshots/Settings.png" alt="Settings" width="100%" />- <br/><sub><b>Settings</b> — manage API keys and credentials in one place</sub>+ <img src="frontend/public/screenshots/Setting%20Page.png" alt="Settings" width="100%" />+ <br/><sub><strong>Settings</strong> - manage YouTube API key, Instagram App credentials, and Cloudinary config in one place</sub></td></tr></table>@@ -102,141 +125,186 @@ The only time anything leaves your machine is when you schedule Instagram posts.## Quick Start-### Prerequisites+Three steps to get running:++```bash+git clone https://github.com/spacesdrive/twiligent.git+cd twiligent/backend && npm install+cd ../frontend && npm install+```++Then start both servers:++```bash+# Terminal 1 - backend (port 3001)+cd backend && npm run dev++# Terminal 2 - frontend (port 5173)+cd frontend && npm run dev+```++Open [http://localhost:5173](http://localhost:5173), go to **Settings**, paste your YouTube API key, and add your first account.++---++## Prerequisites++| Requirement | Minimum version | Notes |+|---|---|---|+| Node.js | 18 | 20 recommended |+| npm | 9 | included with Node.js |+| YouTube Data API v3 key | - | required for YouTube analytics |+| Instagram Graph API token | - | required for Instagram analytics |+| Cloudinary account | - | optional; required for content publishing |+| GitHub repository | - | optional; required for scheduled publishing |++----| Tool | Minimum version |-|------|----------------|-| Node.js | 18 |-| npm | 9 |-| A YouTube Data API v3 key | — |-| An Instagram Graph API token | — |+## Installation-### 1. Clone the repository+**1. Clone the repository**```bash-git clone https://github.com/your-username/twiligent.git+git clone https://github.com/spacesdrive/twiligent.gitcd twiligent```-### 2. Install dependencies+**2. Install backend dependencies**```bash-# Backendcd backend && npm install--# Frontend (in a new terminal)-cd frontend && npm install```-### 3. Configure API keys+**3. Install frontend dependencies**-Create `backend/data/api_keys.json`:--```json-{- "youtubeApiKey": "YOUR_YOUTUBE_DATA_API_V3_KEY",- "cloudinaryCloudName": "YOUR_CLOUDINARY_CLOUD_NAME",- "cloudinaryApiKey": "YOUR_CLOUDINARY_API_KEY",- "cloudinaryApiSecret": "YOUR_CLOUDINARY_API_SECRET"-}+```bash+cd frontend && npm install```-> Instagram tokens are added per-account through the **Accounts** page in the UI — no manual JSON editing required.--### 4. Run+**4. Start the development servers**```bash-# Terminal 1 — backend (port 3001)+# Terminal 1cd backend && npm run dev-# Terminal 2 — frontend (port 5173)+# Terminal 2cd frontend && npm run dev```-Open [http://localhost:5173](http://localhost:5173) in your browser.-------## Why Twiligent?--Most analytics dashboards are either locked behind paywalls, share your data with third parties, or only support one platform. Twiligent is different:+The backend runs on port 3001. The frontend runs on port 5173. Open [http://localhost:5173](http://localhost:5173).-- **Self-hosted** — your credentials and content data never leave your machine-- **Multi-platform** — YouTube and Instagram in one place, with a unified overview-- **Extensible** — every data source is a plain JSON file; every API call is a readable service module-- **Free to run** — uses only free API tiers and GitHub Actions free minutes (unlimited on public repos)+All API keys are configured through the Settings page in the UI. No manual file editing required after initial clone.----## Getting Your API Keys+## API Keys Setup### YouTube Data API v3-1. Go to [Google Cloud Console](https://console.cloud.google.com/)-2. Create a project → **APIs & Services** → **Library** → search "YouTube Data API v3" → **Enable**-3. **Credentials** → **Create Credentials** → **API key**-4. (Optional) Restrict the key to the YouTube Data API v3 for security-5. Paste the key into `backend/data/api_keys.json`+1. Open [Google Cloud Console](https://console.cloud.google.com/) and create a new project+2. Navigate to **APIs and Services** then **Library**, search for "YouTube Data API v3", and enable it+3. Go to **Credentials**, click **Create Credentials**, and select **API key**+4. Optionally restrict the key to the YouTube Data API v3 for security+5. Copy the key and paste it into the **Settings** page inside Twiligent### Instagram Graph APIInstagram requires a Business or Creator account linked to a Facebook Page.-1. Go to [Meta for Developers](https://developers.facebook.com/) → create an app of type **Business**-2. Add the **Instagram Graph API** product-3. Generate a **User Access Token** with scopes:- - `instagram_basic`- - `instagram_manage_insights`- - `pages_read_engagement`-4. Exchange it for a **Long-Lived Token** (valid 60 days — Twiligent auto-refreshes it)-5. In the Twiligent **Accounts** page, click **Add Instagram Account** and paste the token+1. Go to [Meta for Developers](https://developers.facebook.com/) and create an app of type **Business**+2. Add the **Instagram Graph API** product to your app+3. Generate a User Access Token with the following permissions:+ - `instagram_business_basic`+ - `instagram_business_manage_insights`+ - `instagram_business_content_publish` (required for publishing)+4. The token from the App Dashboard is already long-lived (60 days). Twiligent auto-refreshes it before expiry.+5. In Twiligent, go to **Accounts**, click **Add Instagram Account**, and paste the token++**Optional:** Save your Instagram App ID and App Secret in **Settings** to enable automatic short-to-long-lived token exchange when adding accounts.-### Cloudinary (optional — required for scheduled publishing)+### Cloudinary (required for publishing only)-1. Sign up at [cloudinary.com](https://cloudinary.com) (free tier: 25 GB storage, 25 GB bandwidth/month)-2. Copy your **Cloud name**, **API Key**, and **API Secret** from the Cloudinary dashboard-3. Paste them into `backend/data/api_keys.json`+1. Sign up at [cloudinary.com](https://cloudinary.com) (free tier: 25 GB storage, 25 GB bandwidth per month)+2. From the Cloudinary dashboard, copy your **Cloud name**, **API Key**, and **API Secret**+3. Create an **unsigned upload preset** in Cloudinary (Settings then Upload then Upload presets)+4. Paste all four values into the Cloudinary section of Twiligent Settings---## Scheduled Publishing with GitHub Actions-Twiligent uses a GitHub Actions workflow to publish scheduled Instagram posts even when your machine is offline. The workflow runs every 15 minutes on GitHub's servers.+Twiligent uses a GitHub Actions workflow to publish scheduled Instagram posts every 15 minutes. Posts publish on time even when your machine is offline.++### How scheduling works++1. You schedule a post through the **Publish** page (photo, reel, or story with caption and optional metadata)+2. The post is saved locally to `backend/data/scheduled_posts.json` and synced to your GitHub repo via the Contents API+3. The GitHub Actions workflow runs on a 15-minute cron and checks for due posts+4. Due posts are published to Instagram via the Graph API using your stored token+5. The workflow commits the updated `scheduled_posts.json` back to the repo with status changed to `published`+6. When your backend starts next time, it pulls the latest status from GitHub### Setup-**Step 1 — Push your repo to GitHub** (the `backend/data/accounts.json` file is gitignored to protect tokens)+**Step 1 - Push your repo to GitHub**-**Step 2 — Add the accounts secret**+The `backend/data/accounts.json` file is gitignored automatically to protect your tokens.++**Step 2 - Encode your accounts file**```bash-# macOS / Linux+# macOS or Linuxcat backend/data/accounts.json | base64# Windows PowerShell[Convert]::ToBase64String([IO.File]::ReadAllBytes("backend\data\accounts.json"))```-Go to your GitHub repo → **Settings** → **Secrets and variables** → **Actions** → **New repository secret**:+**Step 3 - Add the repository secret**++Go to your GitHub repo, then **Settings**, then **Secrets and variables**, then **Actions**, then **New repository secret**:| Name | Value |-|------|-------|-| `ACCOUNTS_JSON` | The base64 string from above |+|---|---|+| `ACCOUNTS_JSON` | The base64 string from Step 2 |++**Step 4 - Enable Actions**-**Step 3 — Enable Actions**+Go to your repo then **Actions** and enable workflows if prompted. The `Instagram Scheduled Publisher` workflow starts automatically on the cron schedule.-Go to your repo → **Actions** → enable workflows if prompted. The `Instagram Scheduled Publisher` workflow will trigger automatically on the cron schedule.+**Free tier note:** Public repos get unlimited GitHub Actions minutes. For private repos (2,000 min per month limit), change the cron in `.github/workflows/publish-scheduled.yml` from `*/15` to `*/30` to stay within limits.++----> **Free tier note:** Public repos get unlimited GitHub Actions minutes. Private repos get 2,000 min/month — change the cron to `'*/30 * * * *'` in `.github/workflows/publish-scheduled.yml` to stay within the limit.+## How It Works++```mermaid+flowchart TD+ A[Browser - localhost:5173] -->|REST API calls| B[Express Backend - localhost:3001]+ B -->|YouTube Data API v3| C[Google APIs]+ B -->|Instagram Graph API v25| D[Meta APIs]+ B -->|Upload preset| E[Cloudinary CDN]+ B -->|Contents API| F[GitHub Repository]+ F -->|Cron every 15 min| G[GitHub Actions]+ G -->|Graph API publish| D+ G -->|Commit status update| F+ B -->|On startup| F+ B -->|JSON read/write| H[(backend/data/)]+ H --- H1[accounts.json]+ H --- H2[scheduled_posts.json]+ H --- H3[api_keys.json]+ H --- H4[videos_cache.json]+ H --- H5[ig_cache.json]+```-### How it works+**Backend startup sequence:**-1. You schedule a post through the **Publish** page in the UI-2. The post is saved to `backend/data/scheduled_posts.json` and synced to GitHub via the Contents API-3. Every 15 minutes, the GitHub Actions workflow checks for due posts-4. Due posts are published to Instagram via the Graph API-5. The workflow commits the updated `scheduled_posts.json` back to the repo (status changed to `published`)-6. Next time your backend starts, it pulls the latest `scheduled_posts.json` from GitHub+1. Initialize JSON data files if they do not exist+2. Pull latest `scheduled_posts.json` from GitHub to sync any posts published while offline+3. Check for overdue pending posts and publish them immediately+4. Start the 60-second scheduler loop for upcoming posts+5. Start the 24-hour Instagram token auto-refresh cycle+6. Remove `accounts.json` from GitHub if it was accidentally committed---@@ -244,77 +312,139 @@ Go to your repo → **Actions** → enable workflows if prompted. The `Instagram```twiligent/+├── .github/+│ └── workflows/+│ └── publish-scheduled.yml # Cron workflow (every 15 minutes)+│├── backend/-│ ├── data/ # JSON data files (gitignored: accounts.json)-│ │ ├── api_keys.json # API credentials-│ │ ├── scheduled_posts.json # Post schedule (synced via GitHub API)-│ │ ├── videos_cache.json # YouTube video cache-│ │ └── ig_cache.json # Instagram analytics cache-│ ├── routes/ # Express route handlers-│ │ ├── accounts.js # Add/remove/refresh accounts-│ │ ├── analytics.js # Fetch channel analytics-│ │ ├── publishing.js # Publish content to Instagram-│ │ ├── scheduledPosts.js # CRUD for scheduled posts-│ │ ├── github.js # GitHub sync endpoints-│ │ └── keys.js # API key management-│ ├── services/ # External API clients-│ │ ├── youtube.js # YouTube Data API v3 integration-│ │ └── instagram.js # Instagram Graph API integration+│ ├── data/ # JSON storage (accounts.json is gitignored)+│ │ ├── api_keys.json # API credentials+│ │ ├── scheduled_posts.json # Post queue synced via GitHub API+│ │ ├── videos_cache.json # YouTube video analytics cache+│ │ └── ig_cache.json # Instagram media cache+│ ├── routes/+│ │ ├── accounts.js # Add, remove, and refresh accounts+│ │ ├── analytics.js # Fetch YouTube and Instagram analytics+│ │ ├── publishing.js # Publish content to Instagram Graph API+│ │ ├── scheduledPosts.js # CRUD for the post schedule+│ │ ├── github.js # GitHub sync and pull endpoints+│ │ └── keys.js # API key management+│ ├── services/+│ │ ├── youtube.js # YouTube Data API v3 client+│ │ ├── instagram.js # Instagram Graph API client with retry and timeout+│ │ └── github.js # GitHub Contents API and Actions Secrets client│ ├── utils/-│ │ ├── dataHelpers.js # JSON read/write utilities-│ │ └── scheduler.js # Due-post processing logic-│ └── server.js # Express entry point+│ │ ├── dataHelpers.js # JSON file read and write utilities+│ │ └── scheduler.js # Due-post detection and publish loop+│ └── server.js # Express entry point│├── frontend/-│ ├── public/-│ │ └── logo.png # App logo│ └── src/-│ ├── features/ # Feature-based modules+│ ├── features/│ │ ├── analytics/-│ │ │ ├── overview/ # Unified cross-platform overview-│ │ │ ├── channel/ # YouTube channel deep-dive-│ │ │ ├── videos/ # All videos explorer-│ │ │ ├── shorts/ # All shorts explorer-│ │ │ ├── instagram/ # Instagram account analytics-│ │ │ └── reels/ # Reels / IG content explorer-│ │ ├── accounts/ # Account management UI-│ │ ├── publishing/ # Content upload + scheduler-│ │ └── settings/ # App settings-│ ├── layouts/-│ │ └── Sidebar.jsx # Navigation sidebar-│ ├── components/ui/ # Shared UI components-│ │ ├── StatCard.jsx # Metric card with gradient icon-│ │ └── Logo.jsx # App logo component-│ ├── services/-│ │ └── api.js # Frontend API client-│ ├── utils/-│ │ └── formatters.js # Number / date formatters-│ ├── theme.js # MUI dark theme-│ └── App.jsx # Root component + routing-│-├── scripts/-│ └── publish-scheduled.js # GitHub Actions post publisher+│ │ │ ├── overview/ # Unified cross-platform dashboard+│ │ │ ├── channel/ # YouTube channel deep-dive (8 tabs)+│ │ │ ├── instagram/ # Instagram account analytics+│ │ │ ├── videos/ # All videos explorer+│ │ │ ├── shorts/ # YouTube Shorts explorer+│ │ │ └── reels/ # Instagram content explorer+│ │ ├── accounts/ # Account management UI+│ │ ├── publishing/ # Single and bulk upload with scheduler+│ │ └── settings/ # API key configuration+│ ├── layout/+│ │ ├── Sidebar.jsx # Collapsible navigation sidebar+│ │ └── Header.jsx # Breadcrumbs, refresh, theme toggle+│ ├── components/ui/ # shadcn/ui components and custom primitives+│ ├── context/+│ │ └── AppContext.jsx # Global accounts and loading state+│ └── services/+│ └── api.js # Typed frontend API client│-├── .github/-│ └── workflows/-│ └── publish-scheduled.yml # Cron workflow (every 15 min)-│-└── README.md+└── scripts/+ └── publish-scheduled.js # Node.js script run by GitHub Actions```---+## Tech Stack++**Frontend**++| Library | Version | Purpose |+|---|---|---|+| React | 19 | UI framework |+| Vite | 7 | Build tool and dev server |+| Tailwind CSS | 4 | Utility-first styling via CSS variables |+| shadcn/ui (base-nova) | latest | Component library built on Base UI |+| Recharts | 3 | Charts and data visualization |+| React Router | 7 | Client-side routing with lazy loading |+| next-themes | 0.4 | Dark and light mode toggling |+| Lucide React | 1.17 | Icon library |+| Sonner | 2 | Toast notifications |++**Backend**++| Library | Version | Purpose |+|---|---|---|+| Express | 4 | HTTP server and routing |+| node-fetch | 2 | HTTP client for external APIs |+| libsodium-wrappers | latest | Encrypts GitHub Actions secrets |+| nodemon | latest | Development server with hot reload |++**Infrastructure**++| Service | Purpose |+|---|---|+| YouTube Data API v3 | Channel and video analytics |+| Instagram Graph API v25 | Account analytics and content publishing |+| Cloudinary | Media CDN (Instagram requires public URLs) |+| GitHub Contents API | Syncing scheduled posts across devices |+| GitHub Actions | Cloud-based cron publishing (free tier) |++---++## Why Twiligent?++Most analytics tools share one or more of these problems:++- They charge monthly subscriptions for data you already own+- They only support one platform, forcing you to switch between dashboards+- They require you to authorize a third-party service with access to your accounts+- They lock historical data behind higher tiers++Twiligent is different on each point:++- **Free to run.** Uses only free API tiers and GitHub Actions free minutes+- **Multi-platform.** YouTube and Instagram in one unified view+- **Self-hosted.** Your credentials and cached data never leave your machine+- **Open and auditable.** Every API call is a readable service module; all data is a plain JSON file you can open in any editor++---+## Contributing-Pull requests are welcome. For major changes, open an issue first to discuss what you'd like to change.+Contributions are welcome. For significant changes, open an issue first to discuss the approach.++1. Fork the repository from [github.com/spacesdrive/twiligent](https://github.com/spacesdrive/twiligent)+2. Create a feature branch-1. Fork the repository-2. Create a feature branch: `git checkout -b feature/your-feature`-3. Commit your changes: `git commit -m 'Add your feature'`-4. Push to the branch: `git push origin feature/your-feature`-5. Open a pull request+```bash+git checkout -b feature/your-feature-name+```++3. Make your changes and commit++```bash+git commit -m "feat: add your feature description"+```++4. Push and open a pull request++```bash+git push origin feature/your-feature-name+```-Please keep pull requests focused — one feature or fix per PR.+Please keep pull requests focused: one feature or fix per PR. Avoid unrelated refactors in the same change.---@@ -325,5 +455,5 @@ Please keep pull requests focused — one feature or fix per PR.---<div align="center">- Built with Express, React, and the YouTube + Instagram Graph APIs.+ <sub>Built with Express, React 19, Tailwind CSS v4, and the YouTube Data and Instagram Graph APIs.</sub></div>