Running the Y-Sweet server locally
If you are using Y-Sweet on Jamsocket, it is generally recommended that you use the Y-Sweet server Jamsocket runs for you even when developing. If you do this, it’s a good idea to create a Y-Sweet service just for your development workflow so you keep documents created in development separate from your production documents.
If you are not using Y-Sweet on Jamsocket or if you would prefer to develop entirely offline, you can run the Y-Sweet server locally with:
npx y-sweet serve
That command will output a connection string that you can use for development. When running locally, the connection string will look something like: ys://127.0.0.1:8080
.