It might even be a greater option to have a community battery booth(a bank of LFP or the upcoming Sodium ion batteries). Everyone throws their excess energy into it, and it can be a charging station for e-bikes, EVs etc.
Absolutely no clue about legal issues though.