To take this concept one step further towards perfection, you would want to lose the backend completely and persist directly to a git repo using https://isomorphic-git.org/
But in my experience the potential audience shrinks significantly once anything git related is expected from a user.