Allows to receive push notifications for incoming chat messages.
  • JavaScript 100%
Find a file
2024-05-24 23:49:55 +03:00
index.js Replace macros in push notifications 2024-05-24 23:49:55 +03:00
LICENSE Create LICENSE 2024-01-24 00:02:14 +02:00
manifest.json Initial commit 2024-01-23 23:46:28 +02:00
README.md Update README.md 2024-01-24 00:00:00 +02:00

SillyTavern Push Notifications

Allows to receive push notifications for incoming chat messages.

No Extra APIs, no configs, just works™.

Doesn't work?

Okay, maybe it wasn't that simple.

image

Check for browser and system permissions

  1. Chrome: https://knowledge.workspace.google.com/kb/how-to-enable-browser-notifications-000007831
  2. Firefox: https://support.mozilla.org/en-US/kb/push-notifications-firefox

Configure SSL

Below is a simple guide on how to generate and use self-signed certificates.

  1. Generate a certificate and key (requires to have openssl installed on your system)
openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
  1. Put them in some folder accessible to SillyTavern server (dist, for example).

  2. Start SillyTavern server with appropriate SSL console flags (provide paths to your actual key/cert).

node server.js --ssl --certPath dist/localhost.crt --keyPath dist/localhost.key   
  1. Use https://localhost:8000 to access your SillyTavern instance.