mirror of
https://github.com/SillyTavern/SillyTavern-PushNotifications.git
synced 2026-10-15 18:11:59 +00:00
Allows to receive push notifications for incoming chat messages.
- JavaScript 100%
| index.js | ||
| LICENSE | ||
| manifest.json | ||
| README.md | ||
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.
Check for browser and system permissions
- Chrome: https://knowledge.workspace.google.com/kb/how-to-enable-browser-notifications-000007831
- 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.
- Generate a certificate and key (requires to have
opensslinstalled 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")
-
Put them in some folder accessible to SillyTavern server (dist, for example).
-
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
- Use
https://localhost:8000to access your SillyTavern instance.