LitePush Tester
Dogfood every way to consume LitePush: the sdk.js script, the npm browser client, and the npm server client.
Mode
Before you start
This page must be served from the exact https origin you registered as your project's domain
(the server enforces the Origin on /v1/subscribe). On iOS you must
Add to Home Screen and open the installed app before subscribing. The sdk.js and
Package · client modes do the same thing — subscribe this browser — via different SDK surfaces
(the hosted <script> vs. the bundled LitePushClient).
1 · Configure
1 · Configure (server)
Test-only. The key is POSTed to this tester's Worker, which plays the role of your server
and calls LitePush with @litepush/sdk/server. In a real app the secret API key lives
only on your backend — never in browser code.
Calls POST /api/send on this Worker → litepush.send({ target: { type: "all" }, … }).
Fans out to every active subscriber of the key's project.
2 · Environment
3 · Actions
4 · Send yourself a test push
Once subscribed, trigger a broadcast from your server/terminal (the API key is secret — never put it in a
browser). Replace lpk_live_… with your project's key (or switch to Package · server mode
above to do it from here):