
Security News
Cline CLI npm Package Compromised via Suspected Cache Poisoning Attack
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.
This is a node.js server for the W3gram push notification protocol.
The server was designed to be deployed to Heroku using free resources, so it fits in a single dyno. The code has great test coverage using mocha.
Click the ''Deploy to Heroku'' button at the top of this page to create your own W3gram server running on Heroku. Don't worry, the project only uses free add-ons!
Get your server's MAK and store it somewhere safely.
curl -i https://w3gram-test.herokuapp.com/mak
# Response example:
# { "mak": "3LwwhZCuqPxO_0fNATuZbOxRgXjWuCLXzOzVaH5dZ4k" }
Create an application and note its API key and secret.
curl -i -X POST -H 'Content-Type: application/json' \
-d '{"mak": "3LwwhZCuqPxO_0fNATuZbOxRgXjWuCLXzOzVaH5dZ4k", "app": { "name": "Testing", "origin": "*"}}' \
https://w3gram-test.herokuapp.com/apps
# Response example:
# {
# "key":"MYp4g89u3OafCtZP",
# "secret":"z7zlLM44rFWQzmgXZX0d2r7rX9mdAP7Gg56V6YjFscY",
# "origin":"*",
# "name":"Testing"
# }
Create a token for a device ID.
echo -n "device-id|my-tablet" | \
openssl dgst -sha256 -hmac "z7zlLM44rFWQzmgXZX0d2r7rX9mdAP7Gg56V6YjFscY" \
-binary | base64
# Response example:
# Xm3U6AU4qj7z5axtldHsNvhHqlsLdMRKQQbXoiFhmDU
Do the routing step.
curl -i -X POST -H 'Content-Type: application/json' \
-d '{"app": "MYp4g89u3OafCtZP", "device": "my-tablet", "token": "Xm3U6AU4qj7z5axtldHsNvhHqlsLdMRKQQbXoiFhmDU"}' \
https://w3gram-test.herokuapp.com/route
# Response example:
# {
# "receiverId":"2.my-tablet.Wk3Lgc_dy0wu8smU7vHhL-Z2oDhkcF6V3Fj3O1ta2a4",
# "push":"https://w3gram-test.herokuapp.com/push",
# "listen":"wss://w3gram-test.herokuapp.com/ws/2.my-tablet.Wk3Lgc_dy0wu8smU7vHhL-Z2oDhkcF6V3Fj3O1ta2a4"
# }
Start a WebSocket connection:
wscat -c "wss://w3gram-test.herokuapp.com/ws/2.my-tablet.Wk3Lgc_dy0wu8smU7vHhL-Z2oDhkcF6V3Fj3O1ta2a4"
Send a notification:
curl -i -X POST -H 'Content-Type: application/json' \
-d '{"receiver": "2.my-tablet.Wk3Lgc_dy0wu8smU7vHhL-Z2oDhkcF6V3Fj3O1ta2a4", "message": { "data": "Hello push world" } }' \
https://w3gram-test.herokuapp.com/push
Install all dependencies and create PostgreSQL database for development and testing.
npm install
createdb w3gram_test
createdb w3gram_dev
Run the server in developmentm mode.
npm start
This project is Copyright (c) 2014 Victor Costan, and distributed under the MIT License.
FAQs
W3gram Push Notification JavaScript Client Library
We found that w3gram demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.

Product
Socket is now scanning AI agent skills across multiple languages and ecosystems, detecting malicious behavior before developers install, starting with skills.sh's 60,000+ skills.

Product
Socket now supports PHP with full Composer and Packagist integration, enabling developers to search packages, generate SBOMs, and protect their PHP dependencies from supply chain threats.