Transform troubleshooting documentation into executable programs with a familiar debugger interface.
- Node.js 18+
- npm or yarn
-
Clone and Setup
git clone https://github.com/rewrlution/entran.git cd entran npm install -
Start Backend Server (Terminal 1)
node src/server/app.js
Backend runs on: http://localhost:3001
-
Start Frontend (Terminal 2)
cd frontend npm install npm startFrontend runs on: http://localhost:3000
-
Access Application Open browser to: http://localhost:3000
entran/
├── src/
│ ├── server/ # Express backend server
│ │ ├── routes/ # API endpoints (/api/*)
│ │ └── middleware/ # Validation & error handling
│ └── services/ # 4-stage compilation pipeline
│ ├── LexerService.js # Stage 1: Markdown → AST
│ ├── TranspilerService.js # Stage 2: AST → Program
│ ├── AnalyzerService.js # Stage 3: Semantic Analysis
│ └── ExecutionService.js # Stage 4: Program Execution
├── frontend/ # React web application
│ ├── src/
│ │ ├── components/ # UI components (Layout, etc.)
│ │ └── pages/ # Main pages (Dashboard, Editor, etc.)
└── package.json # Backend dependencies
- 🔍 Lexical Analysis - Parse markdown → AST using marked.js
- 🔄 Transpilation - AST → Executable program with tool registry
- 🧠 Semantic Analysis - Extract intent, entities & relationships
- ⚡ Execution - Step-by-step debugging & execution
POST /api/lexer/parse
Content-Type: application/json
{
"markdown": "# Troubleshooting Guide\n\n## Steps\n1. Check connectivity"
}POST /api/transpiler/transpile
Content-Type: application/json
{
"ast": { /* AST from stage 1 */ }
}POST /api/analyzer/analyze
Content-Type: application/json
{
"program": { /* Program from stage 2 */ }
}POST /api/execution/start
Content-Type: application/json
{
"program": { /* Program object */ },
"analysis": { /* Analysis from stage 3 */ }
}- 📊 Dashboard - System stats, recent documents, pipeline health
- 📝 Document Editor - Upload/edit markdown, real-time processing
- 🔬 Stage Viewer - Interactive pipeline visualization & metrics
- 🎯 Execution Monitor - Step-by-step debugger with terminal
-
Port 3001 already in use
lsof -ti:3001 kill $(lsof -ti:3001)
-
React compilation warnings
- These are non-blocking ESLint warnings
- Application will still function normally
-
Backend connection errors
- Ensure both servers are running
- Check console logs for detailed errors
ENTRAN - English as Programming Language! 🚀
POST /api/execute/start- Stage 4: Start program executionPOST /api/execute/step- Execute debugging commands
See docs/07-implementation-roadmap.md for detailed implementation plan.
MIT