How azahrina/bot works
Ninja Bot Server Engine is a localhost backend for a browser-extension-driven Instagram automation workflow: the extension sends session or task requests to the server, which prepares an Instagram client and invokes automation actions; results and logs return through the server. The engine also supports feed posting, Stories and link stickers, account setup, direct messages, profile actions, and media/font management. README capabilities fill gaps in the sampled source; unsampled route wiring is represented only at the server boundary.
Main entry points: server.js HTTP Server · index.js Instagram Client · worker.js Task Worker · fonts Custom Fonts
Components 20
Extension API
- HTTP Server
server.js - Session Handling
server.js - Task Control
server.js - Log Streaming
server.js
Automation Engine
- Instagram Client
index.js - Feed Publishing
index.js - Stories and Links
index.js - Account Setup
index.js - Direct Messages
index.js - Account Actions
index.js
Content and Media
- Media and Templates
server.js - Custom Fonts
fonts - Shortlink Presets
shortlink_urls.json - User Data
Runtime State
- Task Worker
worker.js - Task State
server.js
Other components
- Browser Extension
- Instagram Service
- Shortlink Provider
- Emoji CDN
Connections 28
- Browser Extension → HTTP Server: sends requests
- HTTP Server → Session Handling: routes sessions
- HTTP Server → Task Control: dispatches tasks
- HTTP Server → Log Streaming: serves logs
- Session Handling → Instagram Client: creates client
- Task Control → Task Worker: starts or stops
- Task Worker → Instagram Client: loads and invokes
- Instagram Client → Instagram Service: calls API
- HTTP Server → Media and Templates: lists and uploads
- Media and Templates → User Data: reads and writes
- HTTP Server → Task State: tracks tasks
- Task Control → Task State: updates state
- HTTP Server → Feed Publishing: handles feed routes
- HTTP Server → Stories and Links: handles story routes
- HTTP Server → Direct Messages: handles DM routes
- HTTP Server → Account Actions: handles action routes
- HTTP Server → Account Setup: handles setup routes
- Feed Publishing → Instagram Client: publishes media
- Stories and Links → Instagram Client: publishes stories
- Direct Messages → Instagram Client: sends messages
- Account Actions → Instagram Client: performs actions
- Account Setup → Instagram Client: runs setup
- Stories and Links → Shortlink Presets: reads presets
- Stories and Links → Shortlink Provider: requests shortening
- Stories and Links → Emoji CDN: downloads emoji
- Feed Publishing → User Data: reads media
- Stories and Links → Custom Fonts: uses fonts
- Log Streaming → Browser Extension: streams logs