I myself have similar needs and recently bookmarked this: https://github.com/chaos/diod (but had no time to test it yet).

R.