lib: expose `metadata` in the EDSL