RmStorm / storm_grok

Homegrown ngrok clone, written in rust!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

storm_grok

Homegrown ngrok clone, written in rust!

Architecture

The client contains a small bundled frontend to allow for request inspection. The architecture diagram here tries to explain the flow of traffic when running sgrok in http or tcp mode.

Development

The server runs in development mode by default. The client needs a flag to run in development mode. Run both like so:

cargo run --bin sg_server
cargo leptos watch -- http 8000 -d

The optional -d flag on the client is for running in development mode. Without this flag the client will try to connect to stormgrok.nl at 157.90.124.255. These values are hardcoded for now. With the -d flag set it will instead try to connect to localhost at 127.0.0.1.

TODOS

  • update server packages, preferably switch to pingora just like in the client!
  • continously stream trafficlog from client to a frontend if connected
  • Make a much nicer UI
  • Allow request replaying

About

Homegrown ngrok clone, written in rust!

License:GNU Affero General Public License v3.0


Languages

Language:Rust 93.9%Language:TypeScript 5.4%Language:JavaScript 0.4%Language:CSS 0.2%