lib: new module pipeline

Signed-off-by: Jean Privat <jean@pryen.org>