You probably want to look into pi then - it's extremely extensible.