As applications scale and APIs evolve, frontend and backend routing often fall out of sync, leaving behind deprecated endpoints or broken fetch requests. Ghostbusters is a lightweight JavaScript utility specifically designed to identify these "ghost routes" (unused or broken endpoints) within React-to-Express architectures. By integrating directly into your Git workflow via pre-commit hooks, it acts as an automated safeguard. Ghostbusters ensures that dead code is eliminated early.
No reviews yetBe the first to leave a review for Ghostbusters
Maker
📌
Hi Product Hunt! 👋
I’m Erika, and together with my team—Christian, Manny, Mohammed, and Robyn—we’re excited to introduce Ghostbusters. 🚫👻
We built Ghostbusters because we were tired of "haunted" codebases. You know the feeling: you’re looking at an old Express route or a fetch call and wondering, "Is this actually being used, or will deleting it break production?" We wanted a way to catch broken or unused routes before they even got committed.
Ghostbusters is a lightweight CLI utility that ensures your frontend and backend stay in perfect sync using AST (Abstract Syntax Tree) parsing.
Why it’s a game-changer for your workflow:
🧠 Smarter Matching: We use Babel to scan your code’s structure, not just text.
🛡️ Pre-commit Protection: By integrating with Husky, it flags mismatched endpoints the moment you try to git commit.
⚡ Zero-Config Setup: Run "npx ghostbusters init" and you're protected in seconds.
The Tech Stack:
Built with a love for the JS ecosystem: Node.js, TypeScript, Svelte, Babel, Husky, Vite, and Chalk.
We’re a team of developers who care deeply about developer experience, and we'd love to hear your thoughts!
How do you currently manage routing synchronization in your teams?
Are there any specific frameworks (beyond Express/React) you’d like to see us support next?
We’ll be here all day to answer your questions and chat about ASTs, routing, or anything in between! 🚀