A foamed biocompatible material for use in tissue repair and a kit for producing same. The kit includes a container having a valve and an inlet, and a tissue-repair composition containing a biocompatible material and a liquid carrier, in which the composition is placed in the inlet of the container and the inside of container has a pressure lower than that of the outside so that, upon opening the valve, the composition is forced into the container by the pressure difference to form a foam inside the container. Also disclosed is a method of preparing a foamed biocompatible material for tissue repair.