How kramerforster/nion-tools works
Nion-Tools is a game-client enhancement for SA-MP, with a JavaScript interface layer and a small native integration layer. The visible startup workflow waits for the game HUD, initializes interface interception, discovers an API host, authenticates, then loads and toggles modules. Modules cover admin spectating, reports, player lists and filters, command utilities, teleport helpers, and automation. The README provides no capability details; several feature names come from the source tree. Edges reflect shown imports and calls; unsampled module behavior is not inferred.
Main entry points: index.js Module registry · InterfaceManager.js Interface manager · Loader.js Loader and auth · Cmds.js Command tools
Components 22
Startup and state
- Startup gate
js/src/main.js - Loader and auth
js/src/core/Loader.js - Shared state
js/src/config/state.js - API client
js/src/services/ApiService.js
Client interface
- Interface manager
js/src/core/InterfaceManager.js
Admin tools
- Module registry
js/src/modules/index.js - Command tools
js/src/modules/Cmds.js - Admin list
js/src/modules/Alist.js - Auto health
js/src/modules/AutoHealth.js - Auto spectate
js/src/modules/AutoSP.js - Copy tools
js/src/modules/Copy.js - Spectate interface
js/src/modules/InterfaceSP.js - Player list
js/src/modules/Players.js - Report handling
js/src/modules/Report.js - Spectate teleport
js/src/modules/SpecTP.js - Teleport tools
js/src/modules/Tp.js - Player filters
js/src/modules/filtersTab.js - Chat helpers
js/src/modules/functions.js
Game integration
- SA-MP bindings
asi/src/sampapi_min.h - Native entry
asi/src/dllmain.cpp
Other components
- Game user
- Nion API
Connections 28
- Game user → Startup gate: starts client
- Startup gate → Interface manager: initializes
js/src/main.js - Startup gate → Loader and auth: starts loading
js/src/main.js - Loader and auth → Interface manager: registers listeners
js/src/core/Loader.js - Loader and auth → API client: authenticates through
js/src/core/Loader.js - Loader and auth → Module registry: loads modules
js/src/core/Loader.js - API client → Nion API: sends requests
js/src/services/ApiService.js - Loader and auth → Shared state: updates
js/src/core/Loader.js - API client → Shared state: reads hosts
js/src/services/ApiService.js - Module registry → Command tools: registers
js/src/modules/index.js - Module registry → Admin list: registers
js/src/modules/index.js - Module registry → Auto health: registers
js/src/modules/index.js - Module registry → Auto spectate: registers
js/src/modules/index.js - Module registry → Copy tools: registers
js/src/modules/index.js - Module registry → Spectate interface: registers
js/src/modules/index.js - Module registry → Player list: registers
js/src/modules/index.js - Module registry → Report handling: registers
js/src/modules/index.js - Module registry → Spectate teleport: registers
js/src/modules/index.js - Module registry → Teleport tools: registers
js/src/modules/index.js - Module registry → Player filters: registers
js/src/modules/index.js - Command tools → Interface manager: uses interface
js/src/modules/Cmds.js - Command tools → API client: posts settings
js/src/modules/Cmds.js - Command tools → Report handling: uses report
js/src/modules/Cmds.js - Command tools → Chat helpers: uses helpers
js/src/modules/Cmds.js - Player filters → Interface manager: uses interface
js/src/modules/filtersTab.js - Report handling → Interface manager: registers chat hook
js/src/modules/Report.js - Chat helpers → Interface manager: registers dialog hooks
js/src/modules/functions.js - Native entry → SA-MP bindings: uses bindings
asi/src/dllmain.cpp