alexknowshtml

alexknowshtml / defib

Public

System defibrillator - monitors containers, processes, and swap pressure with auto-recovery and optional AI-enhanced diagnosis. Works with Docker/Podman and Anthropic/OpenAI/Ollama.

10
0
100% credibility
Found Feb 01, 2026 at 9 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

defib is a monitoring tool that detects unhealthy services, runaway tasks, and system stress then automatically restarts or cleans them up while sending user-friendly alerts.

How It Works

1
💻 Your system acts up

Apps slow down, crash, or hog all the memory, making everything frustratingly unresponsive.

2
📥 Find defib

Discover this friendly watchdog tool that automatically spots and fixes common computer glitches.

3
⚙️ Tell it what to watch

Share details about your key apps and background tasks it's safe to pause if they go wild.

4
🫀 Turn on the monitor

Start it up, and it quietly keeps an eye on everything, reviving stuck parts like a heartbeat boost.

5
📱 See helpful updates

Get simple alerts or smart advice right when it finds and handles a problem for you.

Everything runs smooth

Your computer stays fast, reliable, and trouble-free without you lifting a finger.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 9 to 10 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is defib?

defib is a TypeScript CLI tool acting as a cardioverter defibrillator system for servers: it monitors Docker or Podman containers via HTTP health checks, runaway processes by CPU/memory usage, and system swap pressure or stuck D-state processes, then auto-recovers with restarts or kills. Run it periodically via cron or systemd timers with commands like `defib container --health http://localhost:8000/health` or `defib all --config defib.json`. Optional AI diagnosis from Anthropic, OpenAI, or Ollama enhances alerts in "ask" mode, turning generic guidance into tailored fixes.

Why is it gaining traction?

Its action modes—auto-kill safe patterns, ask for copy-paste commands with AI insights, or deny for alerts only—make it safer than blunt scripts, with built-in validations blocking dangerous patterns. Discord/Slack notifications and state persistence avoid alert spam, while free local Ollama support sidesteps API costs for github system monitor workflows. The defibrillator metaphor sticks for devs dealing with github system prompts and models in self-hosted AI tools.

Who should use this?

Homelab operators running Docker stacks for personal projects like Ollama or code-server, solo full-stack devs deploying Node apps via docker-compose, or indie hackers monitoring swap hogs on VPS. Ideal for single-node setups where manual firefighting interrupts coding, but skip multi-tenant servers.

Verdict

Worth a spin in staging for its polished CLI, security guards, and tests—docs cover edge cases well—but 10 stars and 1.0% credibility score signal early maturity; test patterns thoroughly before cron jobs. Solid foundation for a github system commandline watchdog.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.