$ show ericduran/chromeHAR
The chromeHAR repository is a single-page application built with AngularJS (v1.0.8) that serves as a HAR (HTTP Archive) viewer, mimicking the Chrome Developer Tools Network tab. It allows users to load HAR files via drag-and-drop, file input, or URL parameter and displays detailed network request/response data, including timings, sizes, and a waterfall chart. The application follows a modular structure with separate controllers, services, and directives, and uses Grunt for build tasks. Key entry points include index.html (bootstraps the app), js/script.js (initializes drag/drop and app setup), js/controllers.js (contains the main NetworkCtrl for handling HAR data and UI state), and js/libs/HAREntry.js (processes individual HAR entries). The project relies on external dependencies such as AngularJS, jQuery, and various AngularJS modules, along with compatibility libraries like es5-shim and json3.
The LLM identified 2 files worth highlighting for reuse:
A self-contained class that processes a single HAR entry, extracting and calculating relevant properties (such as timing, size, request/response details) for use in a HAR viewer. It has no framework dependencies and can be reused in any JavaScript application that needs to parse HAR data.
A collection of string and number formatting utilities, including a sprintf implementation, byte-to-human-readable conversion, and string padding/trimming functions. These utilities are independent of the rest of the application and can be extracted for use in any project.