DEV Community

ahmed farghly
ahmed farghly

Posted on

Introducing Blackwater: A High-Performance, Lightweight Server Manager Built with Go 1.24

As developers, we've all been there: you need to monitor your server, check Docker logs, or tweak a firewall rule, but you don't want to install a heavy, resource-hungry control panel that eats up 512MB of RAM just to stay idle.

I decided to solve this by building Blackwater—a "ninja-level" server management tool designed to be fast, secure, and incredibly lightweight.


šŸš€ Why Go 1.24?

When I started this project, I had one goal: Zero Bloat. Go was the obvious choice because:

  • Single Binary: Easy deployment without worrying about dependencies.
  • Concurrency: Handling multiple WebSocket streams for live logs is a breeze with Goroutines.
  • Low Footprint: It runs perfectly even on the smallest Raspberry Pi or a $5 VPS.

šŸ› ļø Key Features (Alpha v0.1.2)

Blackwater isn't just another dashboard; it's a real-time management engine:

  • Real-Time Metrics ($O(1)$ Broadcasting): I built a custom WebSocket Hub. It fetches system stats once and broadcasts them to all connected clients, ensuring minimal CPU overhead.
  • Docker Integration: Using the official Docker SDK for Go, you can inspect, start/stop containers, and stream live container logs directly.
  • Multi-Distro Firewall: Native support for both UFW and Firewalld. No matter your Linux distro, Blackwater has your back.
  • Process Ownership Tracking: It doesn't just list processes; it tracks who started what, making it great for shared environments.

šŸ—ļø The Tech Stack

  • Backend: Go 1.24 + Gin Gonic
  • Database: MySQL + GORM
  • Auth: JWT-based RBAC (Role-Based Access Control)
  • Real-time: WebSockets (Custom Hub Architecture)

🚧 It's Open Source! (Seeking Feedback)

Blackwater is currently in its early Alpha stage. I'm looking for fellow Gophers and DevOps enthusiasts to:

  1. Review the Command Sanitization logic for security.
  2. Suggest improvements for the WebSocket Hub scaling.
  3. Contribute to the upcoming Web UI.

šŸ”— Check out the Repo

I’d love to get your feedback (and maybe a ā­ļø if you like the concept!):

GitHub: https://github.com/Ahmedfargh/black-water-server-manager


What's Next?

I’m currently working on a Docker Compose UI and an automated Security Alert System that notifies the admin via email when a new login is detected.

Happy Coding!

Top comments (0)