A lightweight, dependency-free developer dashboard to browse, search, and trace HDFC wizard application network logs. It runs on a simple Node.js/Express backend and serves a clean, dark-themed Single Page Application (SPA) frontend.
- Multiple Application Workspaces: Add, manage, and toggle between multiple application pathways directly in the browser.
- Automatic Subdirectory Scanning: Under each registered application, the tool automatically scans the path
code/test/integration/logs/for log transactions (falling back to the application path itself if not present). - Dual-Pane Dashboard:
- Left Side: Displays a chronological list of API transaction names (using path basenames like
login.json). - Right Side: Inspector containing a scrollable view of the API status, request/response bodies, and extracted state details.
- Left Side: Displays a chronological list of API transaction names (using path basenames like
- Wizard State Extraction: Automatically scans request and response JSON payloads for wizard
stateInfoobjects, parses them, and highlights transactions modifying wizard states with aStateindicator badge. - Collapsible Accordions: Details panels (Request, Response, and Wizard State) are organized into interactive accordions that can be collapsed or expanded to save screen space.
- Real-time Searching:
- Payload-Wide Filter: Filter sidebar transactions based on keys or values inside their payloads using the top search bar.
- Local Highlights: Search inside specific payload code blocks to highlight matching tokens and scroll them into view automatically.
-
Clone or download the repository:
git clone https://github.com/vdua/log-viewer.git cd log-viewer -
Install dependencies:
npm install
-
Start the application:
npm start
You can configure the server port and default application workspace using environment variables:
PORT: Port to listen on (Default:3000).DEFAULT_APP(orLOGS_DIR): The absolute path of the default application directory to load on startup (Default: current directory).
# Run server on port 8080 and scan a specific application directory
PORT=8080 DEFAULT_APP=/Users/varundua/projects/my-hdfc-app npm start├── package.json
├── server.js # Express server (manages workspaces, scans logs, parses index files)
├── apps-config.json # Saved list of workspaces (auto-generated)
├── public/
│ ├── index.html # UI Layout
│ ├── app.css # Sleek Developer Dark styling
│ └── app.js # Client-side workspace switcher and filtering engine
└── README.md