Zum Hauptinhalt springen

Postbox

Social-Media-Profil-Tracking-Plattform für YouTube und Instagram. Postbox sammelt, analysiert und vergleicht Profil-Metriken über beide Plattformen hinweg und bietet Dashboards, Scores und Discovery-Features.

Tech-Stack

KomponenteTechnologieVersion
FrameworkLaravel12 (Starterkit)
UILivewire V3 + Flux UI (Pro)3.x
DatenbankPostgreSQL16
AuthLaravel Fortify + Socialite (Google OAuth) + 2FA + Turnstile
Cache/QueueDatabase (Redis für Reverb)
WebSocketsLaravel Reverb1.x
API AuthLaravel Sanctum4.x
AIGoogle Gemini 2.5 Flash LiteAPI
Error TrackingFlare (spatie/laravel-flare)PHP
ObservabilityNightwatch (laravel/nightwatch)Logs, Requests, Jobs
Queue MonitoringVantageCustom Package
TestsPest3.x
PHPPHP8.4
LintingRector + Laravel PintPHP 8.4 + Laravel Preset

Key Concepts

KonzeptBeschreibungCode-Ort
WatchersTracking-Einträge für Social Profiles in Workspacesapp/Livewire/Watchers/
Social ProfilesZentrale Profile-Tabelle (YouTube + Instagram)app/Models/SocialProfile.php
Collector APIREST-API für Browser-Extension (Instagram-Scraping)app/Http/Controllers/Api/CollectorJobController.php
Daily ScrapeTägliche YouTube-Datenaktualisierung via APIapp/Console/Commands/SocialScrapeDailyFollowers.php
Dashboard RollupsVorberechnete Leaderboard-Snapshotsapp/Console/Commands/BuildDashboardDailyRollups.php
Postbox ScoreComposite-Score 0-100 (Growth, Momentum, Consistency, Engagement)app/Services/Scoring/ProfileScoreCalculator.php
Video ScoreVideo Performance Score 0-100 pro YouTube-Videoapp/Services/Scoring/VideoScoreCalculator.php
ExploreDiscovery-Feature mit Trending, Growth, Rising Starsapp/Livewire/Explore/
FavoritesGlobale Favoriten mit Workspace-Spiegelungapp/Services/Favorites/FavoriteManager.php
Admin WorkspaceSpezial-Workspace (ID 999999999999) mit allen Profilenapp/Services/Workspaces/AdminWorkspaceManager.php
NotificationsDual-System: Toast + Nachrichtenzentrale via Reverbapp/Services/Notifications/NotificationService.php

Zahlen-Überblick

BereichAnzahl
Eloquent Models72
Livewire Components73
Artisan Commands86
Queue Jobs32
Broadcast Events15
Services75
Migrations~166
Factories11
Queues13

Plattformen

PlattformDatenquelleScrape-Methode
YouTubeYouTube Data API v3Direkte API-Calls (Multi-Key-Pool)
InstagramCollector APIBrowser-Extension via Sanctum-Token

YouTube-Profile werden direkt über die YouTube Data API v3 abgefragt. Instagram-Profile werden über eine Browser-Extension (Collector) gescraped, die Jobs via REST-API least und Ergebnisse zurückmeldet.

Dokumentations-Struktur

Diese Dokumentation ist in folgende Bereiche gegliedert:

BereichInhalt
01 ArchitekturVerzeichnisstruktur, Routes, Middleware, Auth, Broadcasting, Config
02 DatenbankModels, Relations, Scopes, Migrations
03 FeaturesWatchers, Dashboard, Explore, Scoring, Notifications
04 IntegrationenYouTube, Instagram, Collector API, Google API, AI, Flare
05 CommandsAlle Artisan Commands nach Domäne
06 SchedulerZeitplan aller Scheduled Tasks
07 Jobs & EventsQueue Jobs, Broadcast Events, Listeners
08 ServicesAlle Business-Logic Services
09 LivewireAlle Livewire Components
10 EntwicklungSetup, Testing, Deployment, Debugging
11 Technical DebtTODOs, FIXMEs, Known Issues