Skip to content

Serverless Provider using Websockets and DynamoDB for YJS

License

Notifications You must be signed in to change notification settings

Collaborne/y-serverless

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

y-serverless

Serverless Provider using Websockets and DynamoDB for YJS. Easy deploy. Written in typescript.

Huge shout out to gaberogan original repo.

Open limitations:

  1. 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

  2. Not optimized yet, so may create more clients and data than necessary

Setup

Testing Locally

cd api
npm install
npm run start

Spins up a local server on ws://localhost:5000

Deploy to AWS

cd api
serverless deploy

See Logs

serverless logs -f api

Resources

Creates a DynamoDB table to maintain documents and connection information.

About

Serverless Provider using Websockets and DynamoDB for YJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.1%
  • TypeScript 34.7%
  • CSS 2.1%
  • HTML 1.1%