You might have been confusing figure 8 puffers for green spotted puffers. Figure 8s can survive in freshwater as long as the hardness and pH are quite high. The best way to get those levels is to make it a very low-end brackish tank by adding marine salt and using crushed coral or aragonite sand as a substrate.
The green spotted puffer (GSP), on the other hand, is born in freshwater/low-end brackish and gradually moves into higher and higher salinities as they get older until they arrive at near marine conditions. Pufferpunk already addressed their size requirements. They get much larger than most people think, and they are quite aggressive (no tankmates other than maybe other GSPs with a large enough tank!).
If you want to stick with freshwater, then you could consider one of the true freshwater puffers like dwarf puffers, which you could easily have several in a 20g with enough decor (they need to be able to get away from each other and need a ratio of several females for each male).