Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
talha_silentcontent
/
Filename :
Architecture-Flow.mmd
back
Copy
flowchart TD A["User submits form on /dashboard"] --> B{"CSV or Text Input?"} B -->|CSV| C["Parse CSV with Papa Parse"] B -->|Text| D["Split text by newlines"] C --> E["Extract primary & secondary keywords"] D --> E E --> F["Create payload with settings"] F --> G["POST /api/articles"] G --> H["Create new Batch document"] H --> I["For each keyword create Keyword document"] I --> J["Add to longArticlesQueue"] J --> K["Worker processes queue jobs"] K --> L{"Is scraping enabled?"} L -->|Yes| M["Call Google Search API"] M --> N["Scrape top 10 results"] N --> O["Extract content with Cheerio"] O --> P["Process with NLP/TF-IDF"] P --> Q["Generate with OpenAI/Deepseek"] L -->|No| Q Q --> R["Update Keyword document status & content"] %% Viewing flow S["User visits /batches"] --> T["GET /api/batches"] T --> U["Fetch user's batches"] V["User clicks batch"] --> W["GET /api/batches/[id]"] W --> X["Fetch keywords for batch"] X --> Y["Display keywords with status"] %% Status updates R --> Z["Client polls /api/batches/[id]"] Z --> AA["Update UI with new statuses"] AA --> BB["Show completed/failed states"]