How raghavnaidu1470-dotcom/automind-ai works
AutoMind AI takes regexes and candidate strings through a React dashboard into a FastAPI API, which builds NFA/DFA/minimized-DFA automata and returns simulation traces for visualization. Separate branches provide XAI predictions and attributions, and ReDoS ambiguity screening, empirical validation, and language-preserving repair. The graph retains documented dashboard, model, and repair capabilities, but some backend route/service wiring and ReDoS internals were not excerpted; uncertain connections are omitted rather than inferred.
Main entry points: Dashboard.jsx Dashboard · engine.py Automata facade · main.py FastAPI entry · redos.py ReDoS routes
Components 34
Dashboard
- Dashboard
frontend/src/pages/Dashboard.jsx - Regex input
frontend/src/components/RegexInput.jsx - Automata viewer
frontend/src/components/AutomataViewer.jsx - Execution stepper
frontend/src/components/ExecutionStepper.jsx - XAI panel
frontend/src/components/XAIExplanationPanel.jsx - ReDoS panel
frontend/src/components/ReDoSGuardPanel.jsx - API client
frontend/src/services/api.js
API orchestration
- FastAPI entry
backend/api/main.py - Automata routes
backend/api/routes/automata.py - Simulation routes
backend/api/routes/simulation.py - XAI routes
backend/api/routes/xai.py - ReDoS routes
backend/api/routes/redos.py - Automata service
backend/api/services/automata_service.py - Simulation service
backend/api/services/simulation_service.py - XAI service
backend/api/services/xai_service.py - Run storage
backend/api/services/storage_service.py
Automata analysis
- Automaton models
backend/automata_engine/models.py - Automata facade
backend/automata_engine/engine.py - Regex parser
backend/automata_engine/regex_parser/parser.py - Thompson builder
backend/automata_engine/nfa_builder/builder.py - Subset converter
backend/automata_engine/dfa_converter/converter.py - DFA minimizer
backend/automata_engine/dfa_minimizer/minimizer.py - Trace simulator
backend/automata_engine/simulator/simulator.py
Explainable AI
- XAI pipeline
backend/xai_engine/pipeline.py - Graph converter
backend/xai_engine/graph_builder/converter.py - GNN classifier
backend/xai_engine/gnn_model/model.py - GNNExplainer
backend/xai_engine/gnn_explainer/explainer.py - SHAP explainer
backend/xai_engine/shap_explainer/explainer.py
ReDoS Guard
- Ambiguity analyzer
backend/redos_guard/analyzer.py - Risk explainer
backend/redos_guard/explainer.py - Risk GNN
backend/redos_guard/gnn/model.py - Risk features
backend/redos_guard/gnn/feature_extractor.py - Risk dataset
backend/redos_guard/gnn/dataset.py
Other components
- Analyst
Connections 38
- Analyst → Dashboard: uses
README.md - Dashboard → API client: requests
frontend/src/pages/Dashboard.jsx - Dashboard → Regex input: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Automata viewer: renders
frontend/src/pages/Dashboard.jsx - Dashboard → Execution stepper: renders
frontend/src/pages/Dashboard.jsx - Dashboard → XAI panel: renders
frontend/src/pages/Dashboard.jsx - Dashboard → ReDoS panel: renders
frontend/src/pages/Dashboard.jsx - API client → FastAPI entry: REST requests
README.md - FastAPI entry → Automata routes: registers
backend/api/main.py - FastAPI entry → Simulation routes: registers
backend/api/main.py - FastAPI entry → XAI routes: registers
backend/api/main.py - FastAPI entry → ReDoS routes: registers
backend/api/main.py - Automata routes → Automata service: delegates
backend/api/routes/automata.py - Automata routes → Run storage: reads samples
backend/api/routes/automata.py - Automata service → Automata facade: builds automata
backend/api/services/automata_service.py - Automata facade → Regex parser: parses
backend/automata_engine/engine.py - Automata facade → Thompson builder: builds NFA
backend/automata_engine/engine.py - Automata facade → Subset converter: converts
backend/automata_engine/engine.py - Automata facade → DFA minimizer: minimizes
backend/automata_engine/engine.py - Automata facade → Automaton models: returns models
backend/automata_engine/engine.py - Simulation routes → Simulation service: delegates
backend/api/routes/simulation.py - Simulation service → Trace simulator: runs input
backend/api/services/simulation_service.py - Trace simulator → Automaton models: returns trace
backend/automata_engine/simulator/simulator.py - XAI routes → XAI service: delegates
backend/api/routes/xai.py - XAI service → Simulation service: generates trace
backend/api/services/xai_service.py - XAI service → XAI pipeline: requests explanation
backend/api/services/xai_service.py - XAI pipeline → Graph converter: converts graph
backend/xai_engine/pipeline.py - XAI pipeline → GNN classifier: predicts
backend/xai_engine/pipeline.py - XAI pipeline → GNNExplainer: explains graph
backend/xai_engine/pipeline.py - XAI pipeline → SHAP explainer: computes attributions
backend/xai_engine/pipeline.py - ReDoS routes → Ambiguity analyzer: analyzes ambiguity
backend/api/routes/redos.py - ReDoS routes → Risk explainer: gets explanation
backend/api/routes/redos.py - ReDoS routes → Risk GNN: screens risk
- ReDoS routes → Run storage: persists runs
- Risk dataset → Ambiguity analyzer: labels examples
backend/redos_guard/gnn/dataset.py - Risk features → Automaton models: extracts features
backend/redos_guard/gnn/feature_extractor.py - Risk dataset → Risk features: prepares graph data
- ReDoS panel → API client: calls API
frontend/src/components/ReDoSGuardPanel.jsx