Im working on some little weekend projects here and there
-Mostly for fun
π« How to reach me: Twitter or email me [email protected] and discord(K0IN#2172)
Find my gists@ https://gist.github.com/K0IN
A small deno deploy / self hosted solution to send web push notifications with webhooks
Home Page: https://notify-demo.deno.dev/
License: MIT License
Im working on some little weekend projects here and there
-Mostly for fun
π« How to reach me: Twitter or email me [email protected] and discord(K0IN#2172)
Find my gists@ https://gist.github.com/K0IN
helo,,,,,,,,,,,,,,,,,,,,,,,,,,
url for generating vapid is borken...
code & api requires 500+ iq to understand, pls fix so u can test send notifications on page easy & fetch list send notifications to specific simplified user ids like phone numbers : !!!!
also notofications no work brave web browser if no use google paranoid security settings, pls fix i have many other sites they work
other than that very good i have fork https://github.com/ttttttttttttttttttttttttttttttttttttttx/n
π»
curl -X POST -H "Content-Type: application/json" -d '{"title":"ιη₯", "message":"ζ΅θ―"}' https://notify_app-demo.thisk0in.workers.dev/api/notify
Show success but no notification
docker run -dit --name notify \
-e TZ="$(cat /etc/timezone)" \
-p 8787:8787 \
-v ~/notify/app.env:/usr/app/app.env \
-v ~/notify/persistance:/usr/app/data \
ghcr.io/k0in/notify
error
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "miniflare": executable file not found in $PATH: unknown.
wrangler.toml Updates required
npm run build_all error
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Build [== ] 10% (0.0s) buildingError: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:140:10)
at module.exports (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:471:10)
at /workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:503:5
at /workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:358:12
at /workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at runSyncOrAsync (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at Array.<anonymous> (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/workspaces/empty/Notify/app/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at /workspaces/empty/Notify/app/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:140:10)
at module.exports (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:471:10)
at /workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:503:5
at /workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:358:12
at /workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at runSyncOrAsync (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:232:2)
at Array.<anonymous> (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
at Storage.finished (/workspaces/empty/Notify/app/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
at /workspaces/empty/Notify/app/frontend/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
Build [== ] 10% (0.3s) buildingβ ERROR Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:71:19)
at Object.createHash (node:crypto:140:10)
at module.exports (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/util/createHash.js:135:53)
at NormalModule._initBuildHash (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:417:16)
at handleParseError (/workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:471:10)
at /workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:503:5
at /workspaces/empty/Notify/app/frontend/node_modules/webpack/lib/NormalModule.js:358:12
at /workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:373:3
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
at iterateNormalLoaders (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
at /workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:236:3
at context.callback (/workspaces/empty/Notify/app/frontend/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
at /workspaces/empty/Notify/app/frontend/node_modules/babel-loader/lib/index.js:59:71
Ho can i send notification to single device and get delivery confirm?
Great idea, congrats!
Using ubuntu 22.04
I set up a testing docker instance with a password on my VPS with my domain name, and get the push messages but only on Chromium and its console raises an error: [DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) <input type=β"password" class=β"mdc-text-field__input" placeholder label=β"Enter login key" id=β"tf-1" valid=β"true">ββ¦β</input>β
And even without password (using your demo) Firefox stays mute, no notifications.
I didn't expect the client to be mandated to enter the password, only when calling the API using POST.
Why password is mandatory for client?
Would you please write a little doc about how to implement the browser code within a NodeJS project on another docker instance? Because usually, notifying is useful in an app :)
Also, is there a way to notify only one user?
Thank you!
exec /bin/deno: exec format error
Linux test 5.19.0-35-generic #36-Ubuntu SMP PREEMPT_DYNAMIC Fri Feb 3 18:36:47 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
β ~ docker -v
Docker version 24.0.4, build 3713ee1
Hi, thanks for this awesome project
I tried via docker all are working fine but I feel need some improvements in the PWA manifest
{
"name": "notify_frontend",
"short_name": "notify_frontend",
"start_url": "/",
"display": "standalone",
"orientation": "portrait",
"background_color": "#000",
"theme_color": "#000",
"icons": [
{
"src": "/assets/icons/notify_big.png",
"type": "image/png",
"sizes": "512x512"
}
]
}
notify_frontend
192x192
and 512x512
When trying to use the armv6 version, I get the following error:
#
# Fatal error in , line 0
# unreachable code
#
#
#
#FailureMessage Object: 0xbec485fc
Please fix.
docker run -p 8787:8787 -e VAPID_KEY=*** -e SUB=mailto:[email protected] -e CORS=true -e SENDKEY=**** ghcr.io/k0in/notify:latest
ββββββββ
docker: Error response from daemon: pull access denied for run, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.