A kit for producing a foamed biocompatible material includes a container configured to sustain a high pressure, and a tissue-repair composition placed in the container. The composition contains a biocompatible material, a liquid carrier, and a gas. The container has an internal pressure of greater than 1 atm and less than 250 atm, and includes a valve and a nozzle for releasing from the nozzle a foam formed of the composition upon opening the valve. Methods of producing and applying the biocompatible material are also disclosed.