@ambassadorai/waitlist-webview

A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either `token` or `signedRequest` depending on the environment.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@ambassadorai/waitlist-webview
Minified + gzip package size for @ambassadorai/waitlist-webview in KB

Readme

Waitlist webview

A package that can be included in the chat webview component, or the Messenger webview host. You should pass one of either token or signedRequest depending on the environment.

Props:

  • apiUrl: the URL of the webview-facing waitlist API.
  • ioUrl: the URL of the contact-facing waitlist WebSocket server.
  • token: a JWT token from the chat app.
  • signedRequest: a signed request from a Messenger webview.

For dev/demo purposes, can be run in a standalone environment with npm run watch. Just set API_URL and IO_URL as environment variables, and supply a pre-generated token in CHAT_TOKEN. You can copy the token from any API request from the chat app. Environment variables can be set in an .env file.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.