# OxJS Codebase Analysis ## Overview OxJS is a JavaScript UI framework created around 2008, predating modern JavaScript build tools and module systems. It uses a custom build system and loading mechanism that was innovative for its time but needs modernization. ## Current Architecture ### 1. Module Structure The codebase is organized into distinct modules: - **Ox**: Core library with utilities (Array, String, Math, Type, etc.) - **UI**: User interface components and themes - **Geo**: Geographic utilities - **Image**: Image manipulation utilities - **Unicode**: Unicode utilities Each module follows the pattern: ``` source/ ├── ModuleName/ │ ├── ModuleName.js (module loader) │ ├── js/ (JavaScript files) │ └── json/ (locale and config files) ``` ### 2. Custom Import/Loading System #### Core Loader (`source/Ox.js`) - The framework uses a custom `Ox.load()` function instead of ES modules - Loading process: 1. Detects script path from `