How antswordproject/antsword works
AntSword is an Electron-based website administration tool intended for authorized security work and webmasters. Users manage target shells, then open terminal, file manager, database, or site-view tools; shell actions are dispatched from the shell manager, and the target-specific core supplies script-family implementations. The repository also includes shell persistence, plugins, settings, updates, and language support. Some feature branches are represented by their exact tree paths because their implementation was not sampled; those relationships are left unasserted where the excerpts do not show wiring.
Main entry points: contextmenu.js Shell manager · app.js Electron host · index.js File manager · app.entry.js Application entry
Components 24
Desktop runtime
- Electron host
app.js - Application entry
source/app.entry.js
Shell management
- Shell manager
source/modules/shellmanager/list/contextmenu.js - Shell forms
source/modules/shellmanager/list/form.js - Shell records
source/modules/shellmanager/data.js - Shell database
modules/database.js
Remote operations
- Remote terminal
source/modules/terminal/index.js - File manager
source/modules/filemanager/index.js - File views
source/modules/filemanager/files.js - File tasks
source/modules/filemanager/tasks.js - Remote database
source/modules/database/index.js - Site viewer
source/modules/viewsite/index.js
Core platform
- Script cores
source/core/index.js - Cache manager
source/base/cachemanager.js - Response decoders
source/base/decodes.js - Request encoders
source/base/encodes.js - Runtime configuration
modules/config.js - HTTP requests
modules/request.js
Extensions and settings
- Plugin actions
source/modules/plugin/index.js - Plugin store
modules/plugStore.js - Settings
source/modules/settings/index.js - Update service
modules/update.js - Languages
source/language/index.js
Other components
- Operator
Connections 25
- Operator → Electron host: starts app
- Electron host → Application entry: loads UI
app.js - Application entry → Script cores: loads cores
source/app.entry.js - Application entry → Languages: loads language
source/app.entry.js - Operator → Shell manager: manages shells
- Shell manager → Remote terminal: opens terminal
source/modules/shellmanager/list/contextmenu.js - Shell manager → File manager: opens files
source/modules/shellmanager/list/contextmenu.js - Shell manager → Remote database: opens database
source/modules/shellmanager/list/contextmenu.js - Shell manager → Site viewer: opens site
source/modules/shellmanager/list/contextmenu.js - Shell manager → Plugin actions: runs plugin
source/modules/shellmanager/list/contextmenu.js - Shell manager → Shell forms: uses forms
source/modules/shellmanager/list/contextmenu.js - Shell manager → Shell records: reads records
source/modules/shellmanager/list/contextmenu.js - File manager → File views: uses views
source/modules/filemanager/index.js - File manager → File tasks: uses tasks
source/modules/filemanager/index.js - File manager → Request encoders: uses encoders
source/modules/filemanager/index.js - Remote terminal → Script cores: executes commands
source/modules/terminal/index.js - Remote terminal → Cache manager: reads and writes
source/modules/terminal/index.js - File manager → Script cores: requests file actions
source/modules/filemanager/index.js - Shell forms → Request encoders: uses encoders
source/modules/shellmanager/list/form.js - Shell database → Runtime configuration: uses paths
modules/database.js - Electron host → HTTP requests: initializes service
app.js - Electron host → Shell database: initializes service
app.js - Electron host → Plugin store: initializes service
app.js - Electron host → Update service: initializes service
app.js - Application entry → Cache manager: exposes manager
source/app.entry.js