A minimal chaining library with spying