YACS

Accounts & devices

Guest accounts

There is no sign-up form. When a browser without a session calls GET /api/init, the server creates a guest user with a randomly generated display name, registers the browser as a device, and sets the session cookie (YACSSESSION). The user can start chatting immediately.

Guests can set a name, an "about" text and an avatar like anyone else. Guest accounts that stay inactive for GUEST_RETENTION_DAYS (30 by default) are deleted.

Signing in with Google

When Google sign-in is configured, a guest can sign in to keep their account:

  • If no account exists for that Google email, the current guest account is upgraded in place — conversations and messages stay.
  • If an account already exists for that email, the device is signed in to the existing account instead.

Devices

Every browser or installed app is a separate device on the account. Sessions are per device, so signing out of one does not affect the others.

From Settings → Devices you can:

  • see each device's browser, OS and last IP address,
  • remove a device, which signs it out,
  • add a device: YACS creates a one-time login link (also shown as a QR code) that is valid for 2 hours. Opening it on the new device signs it in to your account.

Messages in direct conversations are delivered to every device of the recipient. See Conversations.

Profile

FieldNotes
NameUp to 60 characters. Guests start with a generated name.
AboutUp to 500 characters.
AvatarCropped in the app; uploads are limited by MAX_IMAGE_KB.
LabelsUp to 20 interests, used by Nearby discovery.
Public profile / usernameLets others reach you by username.

Notifications

Users opt in to Web Push from settings, and can choose which events notify them (for example connection requests). Push works when the app is closed; with APP_URL set, notifications are additionally sent in the declarative Web Push format that Safari 18.4+ displays even when the service worker isn't running.

Deleting an account

Settings → Account → Delete calls DELETE /api/account and removes the user.