[api] move rendering of project and package meta into a view