Skip to content

Conversation

@Sam-coder183
Copy link

SMR-Coder183 Changelog

All notable changes and enhancements made to the egui_graphs project.

2025-11-23

🚨 DDoS Stress Test Simulator

Added comprehensive network attack simulation system

  • 5 Attack Patterns Implemented:

    • Flood Attack: High volume request spam
    • Slowloris: Slow connection exhaustion
    • SYN Flood: TCP handshake overflow
    • UDP Flood: UDP packet bombardment
    • HTTP Flood: Application layer saturation
  • Metrics Dashboard:

    • Total requests tracking (successful/failed)
    • Read/write operations counters
    • Real-time throughput monitoring
    • Average response time calculation
    • Peak throughput tracking
    • Elapsed time display
  • Visualization Features:

    • Custom throughput graph with gradient fill
    • Real-time data plotting with time-based X-axis
    • Attack intensity controls (0-100%)
    • Max requests per second configuration
    • Start/Stop attack controls
  • Logging System:

    • Color-coded log levels (Info: blue, Warning: yellow, Error: red, Critical: bright red)
    • Timestamped entries
    • 1000-entry circular buffer
    • Separate Logs tab for detailed review
    • Optional log preservation across navigations

🧠 Neural Network Simulator

Added interactive neural network visualization with live signal propagation

  • Configurable Architecture:

    • Input layers: 1-3 layers
    • Hidden layers: 1-5 layers
    • Output layers: 1-3 layers
    • Neurons per layer: customizable for each layer type
  • Visualization:

    • Real-time neuron firing with color changes
    • Signal propagation through weighted synapses
    • Activation levels shown as inner circles
    • Automatic NN-style layout (horizontal layers)
    • Layer-based organization with proper spacing
    • Neuron activation value display (toggleable, shows 0.00-1.00 format in node centers)
  • Customization:

    • Neuron colors (inactive, firing, input, output)
    • Synapse colors (inactive, active)
    • Fire rate: 0.1-10 Hz
    • Propagation speed: 0.1-2.0x
    • Show/hide neuron values option
  • Statistics:

    • Real-time firing neuron count
    • Total neuron count
    • Network architecture summary

🎯 Navigation & UX Improvements

Enhanced graph navigation and user experience

  • Center Graph Button:

    • Added "🎯 Center Graph" button in sidebar
    • Fits graph to viewport with proper padding
    • Works for both main graph and neural network views
    • Automatic centering on initial load
  • Initial Graph Centering:

    • Graph automatically centered when application loads
    • Improved first-time user experience
    • Proper viewport fitting on startup

💾 Import/Export System

Added comprehensive file operations

  • Export Formats:

    • JSON: Complete graph structure with metadata
    • CSV: Node and edge listings with properties
    • Graphviz DOT: For external visualization tools
  • Browser Integration:

    • File download via Blob API
    • Automatic filename generation
    • Proper MIME types for each format
    • Clean export dialog with format selection
  • Import Support:

    • JSON graph import from local files
    • File upload trigger via browser file picker
    • Graceful error handling

🐛 Bug Fixes & Code Quality

Fixed compilation warnings and runtime issues

  • Added #[allow(dead_code)] attributes for:

    • Unused NeuronState fields (layer, position, fire_time)
    • Unused loaded_file_name field
    • Unused ExportFormat::name() method
  • Graph Visibility Fix:

    • Enabled fit_to_screen_enabled = true in initialization
    • Ensures graph is visible on first load
    • Prevents blank screen on startup
  • Code Cleanup:

    • Removed dead code warnings
    • Proper error handling for browser APIs
    • Type safety improvements

📚 Documentation

Comprehensive documentation updates

  • Created code-analyzer-web/README.md:

    • Feature overview with detailed descriptions
    • Quick start guide with prerequisites
    • Build and run instructions
    • Usage guide for all tabs
    • Technical stack documentation
    • Performance recommendations
    • Troubleshooting section
  • Updated main README.md:

    • Enhanced demo section
    • Added new feature highlights
    • Improved project structure documentation

🔧 Technical Infrastructure

Environment and build configuration

  • WSL Build Fix:

    • Created ~/.cargo/config.toml with proper linker configuration
    • Fixed "cc not found" linker errors
    • Set linker to /usr/bin/gcc for WSL builds
  • Dependencies Added:

    • web-sys (File, Blob, Url features)
    • js-sys for JavaScript interop
    • console_error_panic_hook for better debugging

🎨 UI/UX Enhancements

Improved user interface and experience

  • Tab System:

    • Graph: Main visualization
    • StressTest: DDoS simulator
    • Logs: System event tracking
    • NeuralNetwork: Neural network simulator
  • Settings Organization:

    • Searchable configuration panel
    • Auto-save functionality
    • Reset to defaults option
    • Category-based grouping
  • Visual Improvements:

    • Consistent color schemes
    • Responsive layouts
    • Smooth animations
    • Clear visual feedback

Summary Statistics

  • Lines of Code Added: ~2000+
  • New Features: 4 major systems (Stress Test, Neural Network, Import/Export, Navigation)
  • Bug Fixes: 5+ critical issues resolved
  • Documentation: 2 comprehensive README files
  • Build Improvements: WSL configuration fixes

Technologies Used

  • Rust 1.75+
  • eframe 0.33 / egui 0.33
  • egui_graphs 0.29
  • petgraph 0.8
  • web-sys + js-sys
  • WASM target: wasm32-unknown-unknown
  • Build tool: trunk 0.21.14

All changes implemented and tested on November 23, 2025

@Sam-coder183 Sam-coder183 changed the title added a basic neural network simulation demo with real time parameter tuning, stress test with ddos attack to test stability, and added a basic neural network simulation demo with real time parameter tuning, stress test with ddos attack to test stability, and entity component diagram simulation Nov 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant