--- title: 'Bumblebee: web script synthesizer' date: 2025-04-02 layout: post project: true thumbnail: thumb_sm.png --- For work. Browser session-to-code conversion. Pre-LLM. Script quality pitiful. Created tool to generate them by analyzing browser events. Stack: C# WinForms host, WebView2 browser, Scintilla.NET editor. Data structure: twin lists--one for events, one for text. Implementation: - Interception: Injected JS hooks + internal browser events. - Transformation: Event → Token → Instruction table → String. - Optimization: Toss unnecessary clicks, squash input events. - Rendering: Two-way binding between text and Scintilla editor. NOTE: Lists desync on manual edits; blocks optimizer. Replace lists with ASTs. Script generation: minutes/hours → seconds.