How r14bz/terminator works
Terminator is a browser-based network-topology simulator focused on FTTH, Metro Ethernet, MikroTik, switching, and client/IoT networks. Users build a topology with device and cable tools, configure devices, then run the simulation or inspect calculated optical power and topology diagnostics; troubleshooting and auto-fix help resolve issues. The map also includes the documented terminal, templates, glossary, and AI assistance. Several UI and runtime modules are unsampled, so those capability links rely on README statements; edges are limited to documented or indexed wiring.
Main entry points: App.tsx Simulator workspace · Canvas.tsx Topology canvas · NodeInspector.tsx Device configuration · topologyValidator.ts Topology validator
Components 27
Topology editor
- Simulator workspace
src/App.tsx - Device palette
src/components/DevicePalette.tsx - Cable tools
src/components/CableToolbar.tsx - Topology canvas
src/components/Canvas.tsx - Device configuration
src/components/NodeInspector.tsx - Cable configuration
src/components/CableInspector.tsx
Network model
- Network schema
src/types/network.ts - Device definitions
src/data/deviceDefinitions.ts - Cable definitions
src/data/cableDefinitions.ts - Topology templates
src/data/templates.ts - DHCP assignment
src/utils/dhcpAuto.ts
Simulation and diagnostics
- Optical calculator
src/utils/opticalCalculator.ts - Topology validator
src/utils/topologyValidator.ts - Diagnostic rules
src/rules/common.ts - Diagnostic entry
src/utils/diagnosticEngine.ts - Automatic repair
src/utils/autoFix.ts
Operations and learning
- Interactive terminal
src/components/TerminalModal.tsx - Optical power probe
src/components/OPMFloatingTool.tsx - Troubleshooting guide
src/components/TroubleshootingModal.tsx - Network glossary
src/data/glossary.ts
AI assistance
- AI chat interface
src/components/NetworkAIChatModal.tsx - AI client service
src/utils/aiService.ts - AI request handlers
server/aiHandlers.ts - AI API routes
api/ai/chat.ts - AI diagnosis route
api/ai/diagnose.ts
Other components
- Network designer
- AI provider
Connections 33
- Network designer → Simulator workspace: uses
README.md - Simulator workspace → Device palette: renders
src/App.tsx - Simulator workspace → Cable tools: renders
src/App.tsx - Simulator workspace → Topology canvas: renders
src/App.tsx - Simulator workspace → Device configuration: renders
src/App.tsx - Simulator workspace → Cable configuration: renders
src/App.tsx - Device palette → Device definitions: offers devices
- Cable tools → Cable definitions: offers cable types
- Topology canvas → Network schema: renders topology
src/components/Canvas.tsx - Device configuration → Network schema: configures devices
src/components/NodeInspector.tsx - Device configuration → Device definitions: reads definitions
src/components/NodeInspector.tsx - Cable configuration → Network schema: configures links
- Simulator workspace → Topology templates: loads templates
src/App.tsx - Simulator workspace → Optical calculator: calculates power
src/App.tsx - Topology canvas → Optical calculator: calculates power
src/components/Canvas.tsx - Simulator workspace → Diagnostic entry: runs diagnostics
src/App.tsx - Diagnostic entry → Topology validator: validates topology
src/utils/diagnosticEngine.ts - Topology validator → Diagnostic rules: uses shared rules
src/utils/topologyValidator.ts - Topology validator → DHCP assignment: applies DHCP logic
src/utils/topologyValidator.ts - Simulator workspace → Automatic repair: applies repairs
src/App.tsx - Simulator workspace → Optical power probe: shows probe
src/App.tsx - Optical power probe → Optical calculator: displays readings
- Simulator workspace → Troubleshooting guide: offers guidance
README.md - Troubleshooting guide → Automatic repair: offers repairs
src/components/TroubleshootingModal.tsx - Simulator workspace → Interactive terminal: offers CLI
README.md - Simulator workspace → Network glossary: offers glossary
README.md - Simulator workspace → AI chat interface: opens chat
src/App.tsx - AI chat interface → AI client service: sends requests
src/components/NetworkAIChatModal.tsx - AI client service → AI API routes: posts chat
src/utils/aiService.ts - AI client service → AI diagnosis route: posts diagnosis
src/utils/aiService.ts - AI API routes → AI request handlers: delegates
api/ai/chat.ts - AI diagnosis route → AI request handlers: delegates
api/ai/diagnose.ts - AI request handlers → AI provider: calls AI service
server/aiHandlers.ts