Notes/Aftermarket

Aftermarket Adds AfterHook to Send Webhooks From Apps That Never Had Any

Aftermarket has a sixth tool. AfterHook, run as aftermarket hook, is for the app that changes data and tells no one. It watches a file, a folder, an HTTP endpoint or a command’s output, which is how it reads a SQLite table through sqlite3 with no driver, and sends a signed webhook for each change. JSON, YAML and .env files are compared by meaning, so a new timestamp or a reordered key sends nothing, and a paid order arrives as one changed field.

The case study runs the example app against a real receiver: three changes give three signed events, a quiet run sends nothing, and an event found while the receiver was down waits in the state file and goes out once it’s back. Values under keys like password or token travel as REDACTED.

The tests count 200 random edits and want exactly one event for each that matters. A review before release found secrets slipping out when a comparison fell back to plain lines, plus six smaller problems. All were fixed. Checking the released binary turned up one more, fixed in 0.5.1, and the suite now has 333 tests. Binaries are out for Linux, macOS and Windows. The previous note covers AfterConfig.