Serverless Provider using Websockets and DynamoDB for YJS. Easy deploy. Written in typescript.
Huge shout out to gaberogan original repo.
Open limitations:
-
Doesn't work with regular
y-websockets
. AWS sockets requires base64 strings. You need a modifided sockets provider from the client repo to pass b64 strings -
Not optimized yet, so may create more clients and data than necessary
cd api
npm install
npm run start
Spins up a local server on ws://localhost:5000
cd api
serverless deploy
serverless logs -f api
Creates a DynamoDB table to maintain documents and connection information.