Skip to main content
The Web SDK creates and stores a visitorId. Your backend sends that ID and the conversation to Era with the Node SDK.
1

Install

2

Create the browser client

A publishable key is safe to include in browser code. Never include the secret Node SDK API key.
3

Initialize the visitor

The SDK reuses the same visitor across page loads when browser storage is available.
4

Send the visitor to your backend

Your backend passes visitorId to the Node SDK:
Treat visitorId as a continuity ID, not as proof that the user is signed in.

Use a CDN

CDN distribution is coming soon. For now, install @seasonlabs/era-web from npm and use the package import shown above.

Next steps

Identity lifecycle

Learn about verification and reset.

Web SDK reference

See every client method and option.