Show HN: Farol – a risk map of a pull request for the person who approves it
Farol is an open-source CLI and GitHub Action that provides a risk map for pull requests. It informs the approver of how risky the merge is and highlights the files with the highest risk, ensuring that the most critical changes receive the most attention. Farol runs on your machine or in your CI runner, commenting on every PR without blocking merges.
It analyzes the code statically, providing the same answer for each pull request, regardless of the author. The tool does not execute or send any code anywhere, ensuring security and privacy. Farol is written in Node.js and requires Node.js 22+ and git. It can be installed globally with npx @winninjs/farol. To use Farol, create a farol.config.json file at the project's root, specifying the stack.
The tool provides an interactive report, showing the verdict, score, files to review first, pages affected, and manual tests required. It supports various stacks, including React Router, Pages Router, GraphQL, FastAPI, Flask, and more. Farol can be integrated into CI workflows, with examples provided for each stack.
Written by urgent.news from Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.