Have you heard of CryptPad ? Not exactly peer-to-peer but has encryption so that the server sees nothing.
https://tweetnacl.js.org/ https://github.com/dchest/tweetnacl-js/wiki/Examples
https://tweetnacl.js.org/ https://github.com/dchest/tweetnacl-js/wiki/Examples