Superconducting foams of YBa$_2$Cu$_3$O$_y$ (YBCO) are proposed as trapped field magnets or supermagnets. The foams with an open-porous structure are light-weight, mechanically strong and can be prepared in large sample sizes. The trapped field distributions were measured using a scanning Hall probe on various sides of an YBCO foam sample after field-cooling in a magnetic field of 0.5 T produced by a square Nd-Fe-B permanent magnet. The maximum trapped field (TF) measured is about 400 G (77 K) at the bottom of the sample. Several details of the TF distribution, the current flow and possible applicatons of such superconducting foam samples in space applications, e.g., as active elements in flux-pinning docking interfaces (FPDI) or as portable strong magnets to collect debris in space, are outlined.