How anup8571/termblitz works
Termblitz is a terminal web browser for mobile and desktop terminals. Its main workflow turns keyboard or touch input into navigation and browsing actions, selects a native or Chromium-backed rendering mode, and draws the resulting page in the terminal. The README also describes ad blocking, mobile reflow, image upscaling, and multiple terminal graphics protocols. The excerpts show the core modules and some wiring; details of unsampled implementation are represented only where the README documents them.
Main entry points: renderer.rs Cell & graphics renderer · main.rs Mode & navigation · engine.rs Chromium hybrid · input.rs Keys & gestures
Components 12
Input & orchestration
- Keys & gestures
src/input.rs - Mode & navigation
src/main.rs
Page engines
- Native parser
src/engine.rs - Chromium hybrid
src/engine.rs - Mobile reflow & shield
src/engine.rs
Terminal output
- Image upscaling
src/upscale.rs - Cell & graphics renderer
src/renderer.rs
Web presentation
- Web app entry
src/main.tsx - Product showcase
src/App.tsx
Other components
- Browser user
- Headless Chromium
- Terminal display
Connections 12
- Browser user → Keys & gestures: enters actions
README.md - Keys & gestures → Mode & navigation: returns actions
src/main.rs - Mode & navigation → Native parser: selects mode
src/main.rs - Mode & navigation → Chromium hybrid: navigates pages
src/main.rs - Mode & navigation → Cell & graphics renderer: draws frames
src/main.rs - Chromium hybrid → Headless Chromium: uses CDP
README.md - Chromium hybrid → Mobile reflow & shield: applies reflow & shield
README.md - Native parser → Cell & graphics renderer: renders page
src/engine.rs - Chromium hybrid → Cell & graphics renderer: renders page
src/engine.rs - Cell & graphics renderer → Image upscaling: upscales assets
src/renderer.rs - Cell & graphics renderer → Terminal display: writes graphics
README.md - Web app entry → Product showcase: mounts app
src/main.tsx