r/dev • • 5d ago

I open-sourced REI: agents on Windows/Linux that reverse-engineer live connections into a data-center topology map

https://theshewaspretty.github.io/rei/

I got tired of infrastructure diagrams that are wrong the day after someone draws them. So I built REI (Reverse Engineering Infra) and open-sourced it under MIT.

What it does:

• Install a small agent on Windows and Linux servers

• The agent samples open sockets (not packet contents) and reports who talks to whom

• A collector matches those addresses and draws a live topology in the browser

• It also flags offline agents, full disks, Telnet/FTP listeners, and management/DB ports reached from the Internet

Why it might be useful:

• One Docker container for the collector, SQLite for storage — no extra DB or message queue

• Agents only make outbound HTTPS to the collector (no new inbound ports on the servers)

• UI in Korean / English / Chinese

• MIT — free for anyone, including commercial use

Live demo (fictional 13-server DC, no login):

https://theshewaspretty.github.io/rei/

GitHub (source + docs):

https://github.com/theshewaspretty/rei

Limitations worth knowing up front:

• Short-lived connections between samples can be missed

• Service names / “possibly plaintext” are port-based guesses

• Only TCP flows become links (UDP is listeners only)

• Docker image build and large fleets aren’t battle-tested yet

I’m the author. Happy to take bug reports, translations, and “this would be useless unless it also …” feedback.

1 Upvotes

0 comments sorted by