instantping 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +52 -2
  2. package/ccn.mjs +273 -0
  3. package/package.json +16 -4
package/README.md CHANGED
@@ -1,3 +1,53 @@
1
- # Temporary Holding Version
1
+ # instantping
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Companion for the **InstantPing** phone app (https://instantping.app): a ping on your phone when Claude Code is done or needs you. Needs Node 18+.
4
+
5
+ ## With the InstantPing app
6
+ 1. Run `npx instantping setup` in a terminal on the computer where you use Claude Code. It adds the hooks and shows a 6-character code.
7
+ 2. Type the code in the InstantPing app on your phone.
8
+ 3. Restart Claude Code. Remove again: `npx instantping uninstall`.
9
+
10
+ ## Without the app (ntfy, for teammates)
11
+
12
+ Push to your phone when Claude Code is done or needs you. iPhone + Android (ntfy app), computer: Windows, macOS, Linux. Needs Node 18+.
13
+
14
+ ## Setup (each person, on their own computer)
15
+ 1. `git clone <this repo>` and `cd` into it
16
+ 2. `node ccn.mjs setup` (makes your own secret topic + adds the hooks, with a backup of settings.json)
17
+ 3. Install the **ntfy** app, subscribe to the topic it printed (or open the `ntfy://` link on your phone)
18
+ 4. `node ccn.mjs test`
19
+
20
+ ## Rules
21
+ - **Never share your topic.** On ntfy.sh the topic name is the password. Teammates run `setup` themselves and get their own.
22
+ - Pushes carry only Claude's own message. Folder name is added with `CCN_INCLUDE_PROJECT=1`.
23
+ - Don't want the public ntfy.sh? Self-host ntfy and put its URL in `server` in `~/.ccn.json`.
24
+ - Remove: `node ccn.mjs uninstall`
25
+
26
+ ## Popups on your computer
27
+ The hook also shows a popup on the computer itself (Windows toast, macOS notification, Linux notify-send). Phone push is optional.
28
+ - Popup only: skip `init`, no topic needed.
29
+ - Phone only: add `"desktop": false` to `~/.ccn.json`.
30
+
31
+ ## The topic
32
+ `ccn.mjs` makes a long random topic and shows it in a box (`node ccn.mjs topic` shows it again and copies it). The phone must subscribe to exactly that name; it is not a name you choose.
33
+
34
+ ## Too many notifications?
35
+ Background tools such as the claude-mem plugin run hidden Claude sessions whose Stop hook fires every few seconds. ccn ignores sessions whose folder contains `.claude-mem` and sends at most one "done" push per 30 seconds (permission requests always pass). Add more folder fragments in `~/.ccn.json`: `"ignore": [".claude-mem", "my-tool"]`.
36
+
37
+ ## Windows popup sender
38
+ Popups appear as an app called "Claude Notifier" (registered per user under HKCU\Software\Classes\AppUserModelId\ClaudeNotifier). Toasts sent as "Windows PowerShell" were silently dropped on some PCs. If you see nothing, check the bell next to the clock: a bell with "zZ" is Do not disturb.
39
+
40
+ ## The hook waits for the popup
41
+ A popup process left running in the background is killed when the hook process exits (measured on Windows: the toast never showed). So `ccn hook` waits for the popup, in parallel with the phone push. Expect each hook to take about 3-4 seconds on Windows.
42
+
43
+ ## One-command install
44
+ The guide's single command installs Node.js if missing (winget on Windows, Homebrew on Mac), saves `ccn.mjs`, runs `setup`, and in a real terminal waits for you to subscribe your phone before sending a test (`setup` skips the wait when there is no terminal).
45
+
46
+ ## Settings (~/.ccn.json)
47
+ - `minSeconds` (default 15): "klaar" only for tasks longer than this. A `UserPromptSubmit` hook records when a task starts. `0` = every task.
48
+ - `phoneDetail` (default false): popup shows project + Claude's closing sentence; the phone push stays generic unless this is true.
49
+ - `desktop` (default true), `ignore` (default `[".claude-mem"]`).
50
+ - Skipped automatically: subagent notifications (`agent_id`), `stop_hook_active` loops, the "waiting for your input" idle reminder.
51
+ - Mute: empty file `~/.ccn-muted`, or `CCN_DISABLE=1` for one shell.
52
+
53
+ Ideas taken from github.com/ashmitb95/claude-notifier (GPL-3.0, no code copied): minimum task duration, closing sentence in the popup, subagent suppression, mute switches. Not taken: `PermissionRequest`/`AskUserQuestion` hooks, because those block Claude until the hook exits and our Windows popup takes 3-4 seconds.
package/ccn.mjs ADDED
@@ -0,0 +1,273 @@
1
+ #!/usr/bin/env node
2
+ // claude-notifier: push to your phone (ntfy app, iOS + Android) when Claude Code is done or needs you.
3
+ // Runs on Windows, macOS and Linux (needs Node 18+). No dependencies.
4
+ // node ccn.mjs setup init + test + install in one go (what a teammate runs)
5
+ // node ccn.mjs init make YOUR OWN secret topic, print how to subscribe
6
+ // node ccn.mjs topic show your topic again (and copy it)
7
+ // node ccn.mjs test send a test push
8
+ // node ccn.mjs install add the hooks to ~/.claude/settings.json (backup made)
9
+ // node ccn.mjs uninstall remove them again
10
+ // node ccn.mjs pair link this computer to the phone app (Pro relay): shows a code, type it in the app
11
+ // node ccn.mjs hook what the hooks run (reads Claude's JSON on stdin)
12
+ import fs from "node:fs";
13
+ import os from "node:os";
14
+ import path from "node:path";
15
+ import crypto from "node:crypto";
16
+ import { spawn, spawnSync } from "node:child_process";
17
+ import { fileURLToPath } from "node:url";
18
+
19
+ const CONF = path.join(os.homedir(), ".ccn.json");
20
+ const SETTINGS = path.join(os.homedir(), ".claude", "settings.json");
21
+ const SELF = fileURLToPath(import.meta.url);
22
+ const MARK = "ccn.mjs"; // how we recognise our own hooks
23
+ const DEFAULT_RELAY = "https://relay.instantping.app";
24
+ // Run from npm/npx? Then SELF lives in a cache that can vanish, so the hooks point to a stable copy instead.
25
+ const PKG = SELF.includes(path.sep + "node_modules" + path.sep);
26
+ const STABLE = path.join(os.homedir(), ".instantping", "ccn.mjs");
27
+
28
+ const load = () => { try { return JSON.parse(fs.readFileSync(CONF, "utf8")); } catch { return null; } };
29
+
30
+ const clamp = (s, n) => (s.length > n ? s.slice(0, n - 3) + "..." : s);
31
+
32
+ // Last sentence of Claude's reply, stripped of markdown: tells you at a glance what "done" means.
33
+ export function closing(text = "") {
34
+ const t = String(text).replace(/```[\s\S]*?```/g, " ").replace(/`([^`]*)`/g, "$1").replace(/[*_#>]+/g, " ").replace(/\s+/g, " ").trim();
35
+ if (!t) return "";
36
+ const last = (t.match(/[^.!?]+[.!?]*/g) || [t]).map((x) => x.trim()).filter(Boolean).pop() || t;
37
+ return clamp(last, 140);
38
+ }
39
+
40
+ // Pure: hook payload -> message. rich = project name + Claude's closing sentence, for the popup on this computer.
41
+ // The phone push stays generic unless "phoneDetail": true is set in ~/.ccn.json, because its text travels through ntfy.sh.
42
+ export function format(p, rich = false) {
43
+ const project = p.cwd ? path.basename(p.cwd) : "";
44
+ const where = rich && project ? `${project} · ` : "";
45
+ if (p.hook_event_name === "Stop") {
46
+ const sentence = rich ? closing(p.last_assistant_message) : "";
47
+ return { title: `${where}Claude is klaar`, body: sentence || "Wacht op je volgende instructie.", priority: 3, tags: "white_check_mark" };
48
+ }
49
+ return { title: `${where}Claude wacht op jou`, body: p.message || "Claude heeft je nodig.", priority: 4, tags: "bell" };
50
+ }
51
+
52
+ // Muted on purpose: the file ~/.ccn-muted exists, or CCN_DISABLE is set (to anything but empty, 0 or false) in this shell.
53
+ export function disabled(env = process.env, muteFile = path.join(os.homedir(), ".ccn-muted")) {
54
+ const v = String(env.CCN_DISABLE ?? "").toLowerCase();
55
+ return (v !== "" && v !== "0" && v !== "false") || fs.existsSync(muteFile);
56
+ }
57
+
58
+ // Pure: should this hook payload notify? Returns null for yes, or the reason it is skipped.
59
+ export function skipReason(p, conf, now, startedAt) {
60
+ if (ignored(p, conf.ignore)) return "background session";
61
+ if (p.agent_id) return "subagent";
62
+ if (p.hook_event_name === "Stop") {
63
+ if (p.stop_hook_active) return "stop-hook loop guard";
64
+ const min = (conf.minSeconds ?? 15) * 1000; // 0 = notify for every task
65
+ if (min > 0 && startedAt != null && now - startedAt < min) return "task shorter than minSeconds";
66
+ return null;
67
+ }
68
+ if (p.hook_event_name === "Notification") return /waiting for your input/i.test(p.message || "") ? "idle reminder" : null;
69
+ return "not a notifying event";
70
+ }
71
+
72
+ // When did this session's current task start? UserPromptSubmit writes the time; Stop reads it. Unknown = notify.
73
+ const TASKS = path.join(os.tmpdir(), "ccn-task");
74
+ const marker = (id) => path.join(TASKS, String(id || "anon").replace(/[^A-Za-z0-9._-]/g, "") + ".txt");
75
+ function recordStart(id) { try { fs.mkdirSync(TASKS, { recursive: true }); fs.writeFileSync(marker(id), String(Date.now())); } catch { /* best effort */ } }
76
+ function startedAt(id) { try { return Number(fs.readFileSync(marker(id), "utf8")) || null; } catch { return null; } }
77
+
78
+ // Background sessions are not you waiting. claude-mem runs a hidden Claude session that ends a "turn" every few
79
+ // seconds; its Stop hook would notify you all day. Skip any session whose folder contains one of these fragments.
80
+ export function ignored(p, patterns = [".claude-mem"]) {
81
+ const cwd = (p.cwd || "").split("\\").join("/");
82
+ return patterns.some((x) => cwd.includes(x.split("\\").join("/")));
83
+ }
84
+
85
+ // Safety net for any other automated session: at most one "done" notification per 10 seconds. Permission requests always pass.
86
+ function throttled(p) {
87
+ if (p.hook_event_name !== "Stop") return false;
88
+ const f = path.join(os.tmpdir(), "ccn-last-stop");
89
+ let last = 0; try { last = fs.statSync(f).mtimeMs; } catch { /* first time */ }
90
+ if (Date.now() - last < 10000) return true;
91
+ fs.writeFileSync(f, "");
92
+ return false;
93
+ }
94
+
95
+ async function push(conf, m) {
96
+ const r = await fetch(`${conf.server}/${conf.topic}`, {
97
+ method: "POST",
98
+ // headers must be latin1; the title is encoded as RFC 2047 so emoji/accents survive
99
+ headers: { Title: `=?UTF-8?B?${Buffer.from(m.title).toString("base64")}?=`, Priority: String(m.priority), Tags: m.tags },
100
+ body: m.body,
101
+ });
102
+ if (!r.ok) throw new Error(`ntfy ${r.status}`);
103
+ }
104
+
105
+ // Desktop popup on this computer. No dependencies: PowerShell toast (Windows), osascript (macOS), notify-send (Linux).
106
+ // Text goes through env vars, never into the command line, so quotes in Claude's message cannot break it.
107
+ function desktop(m) {
108
+ const env = { ...process.env, CCN_T: m.title, CCN_B: m.body };
109
+ let cmd, args;
110
+ if (process.platform === "win32") {
111
+ // Own sender name "Claude Notifier", registered per user (HKCU, no admin). Toasts sent as "Windows PowerShell"
112
+ // were silently dropped on some PCs; a registered app of our own shows up in Windows notification settings and works.
113
+ cmd = "powershell.exe";
114
+ args = ["-NoProfile", "-NonInteractive", "-Command", [
115
+ "$id = 'ClaudeNotifier'",
116
+ "$k = 'HKCU:\\Software\\Classes\\AppUserModelId\\' + $id",
117
+ "if (-not (Test-Path $k)) { New-Item $k -Force | Out-Null }",
118
+ "New-ItemProperty $k -Name DisplayName -Value 'InstantPing' -PropertyType String -Force | Out-Null",
119
+ "New-ItemProperty $k -Name ShowInSettings -Value 1 -PropertyType DWord -Force | Out-Null",
120
+ "[void][Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]",
121
+ "$x = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent(1)",
122
+ "$t = $x.GetElementsByTagName('text')",
123
+ "[void]$t.Item(0).AppendChild($x.CreateTextNode($env:CCN_T))",
124
+ "[void]$t.Item(1).AppendChild($x.CreateTextNode($env:CCN_B))",
125
+ "[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($id).Show([Windows.UI.Notifications.ToastNotification]::new($x))",
126
+ // Show() hands the toast to Windows asynchronously; leaving at once can drop it, so linger briefly.
127
+ "Start-Sleep -Seconds 3",
128
+ ].join("; ")];
129
+ } else if (process.platform === "darwin") {
130
+ cmd = "osascript";
131
+ args = ["-e", 'display notification (system attribute "CCN_B") with title (system attribute "CCN_T")'];
132
+ } else {
133
+ cmd = "notify-send";
134
+ args = [m.title, m.body];
135
+ }
136
+ // Wait for the popup tool to finish. A popup started in the background and left behind is killed when this process
137
+ // exits (measured on Windows: the toast never appeared), so the hook must stay alive until it is done.
138
+ // Runs next to the phone push, so the wait is the slower of the two, not the sum. A missing tool is ignored.
139
+ return new Promise((resolve) => {
140
+ const c = spawn(cmd, args, { env, stdio: "ignore", windowsHide: true });
141
+ c.on("error", resolve);
142
+ c.on("exit", resolve);
143
+ setTimeout(resolve, 8000).unref();
144
+ });
145
+ }
146
+
147
+ // Pro relay: push through our own relay to the phone app (conf.relay = base URL, conf.relayKey = this computer's key).
148
+ async function pushRelay(conf, kind, m) {
149
+ const r = await fetch(`${conf.relay}/v1/events`, {
150
+ method: "POST",
151
+ headers: { authorization: "Bearer " + conf.relayKey, "content-type": "application/json" },
152
+ body: JSON.stringify({ kind, title: m.title, body: m.body }),
153
+ signal: AbortSignal.timeout(8000),
154
+ });
155
+ if (!r.ok) throw new Error(`relay ${r.status}`);
156
+ }
157
+
158
+ // Pairing: ask the relay for a code, show it, wait until the phone app has claimed it, store the key.
159
+ async function pair(relay) {
160
+ const post = await fetch(`${relay}/v1/pair/start`, { method: "POST" });
161
+ if (!post.ok) throw new Error(`relay ${post.status}`);
162
+ const { code, pairId, expiresIn } = await post.json();
163
+ console.log(`
164
+ Pairing code: ${code}
165
+ Type it in the phone app within ${Math.round(expiresIn / 60)} minutes. Waiting...`);
166
+ for (let i = 0; i < expiresIn / 2; i++) {
167
+ await new Promise((r) => setTimeout(r, 2000));
168
+ const r = await fetch(`${relay}/v1/pair/${pairId}`);
169
+ if (!r.ok) break;
170
+ const p = await r.json();
171
+ if (p.status === "paired") {
172
+ const conf = load() ?? { server: "https://ntfy.sh" };
173
+ fs.writeFileSync(CONF, JSON.stringify({ ...conf, relay, relayKey: p.key }, null, 2), { mode: 0o600 });
174
+ return console.log("Paired. This computer now pushes through the relay.");
175
+ }
176
+ }
177
+ console.error("Code expired. Run pair again.");
178
+ process.exit(1);
179
+ }
180
+
181
+ // Start `ccn popup` as a separate process that outlives this hook; the hook does not wait for it.
182
+ function detach(m) {
183
+ try {
184
+ spawn(process.execPath, [SELF, "popup"], { env: { ...process.env, CCN_POPUP: JSON.stringify(m) }, detached: true, stdio: "ignore", windowsHide: true }).unref();
185
+ } catch { /* popup is best effort */ }
186
+ }
187
+
188
+ // Show the topic so nobody mistakes it for a name they may pick, and put it on the clipboard (best effort).
189
+ function showTopic(conf) {
190
+ const clip = process.platform === "win32" ? ["clip"] : process.platform === "darwin" ? ["pbcopy"] : ["xclip", "-selection", "clipboard"];
191
+ const copied = spawnSync(clip[0], clip.slice(1), { input: conf.topic, stdio: ["pipe", "ignore", "ignore"] }).status === 0;
192
+ const bar = "=".repeat(64);
193
+ console.log(`\n${bar}\n YOUR TOPIC. Type it in the ntfy app EXACTLY like this:\n\n ${conf.topic}\n\n This is NOT a name you choose. This computer was given this exact\n name, and your phone must use the same one, letter for letter.\n${copied ? " It is already copied. On this computer you can paste it with Ctrl+V.\n" : ""}${bar}\n`);
194
+ }
195
+
196
+ // Wait for Enter in a real terminal; do nothing when there is none (scripts, tests, hooks).
197
+ function pause(msg) {
198
+ if (!process.stdin.isTTY) return Promise.resolve();
199
+ process.stdout.write(msg);
200
+ return new Promise((r) => process.stdin.once("data", () => { process.stdin.pause(); r(); }));
201
+ }
202
+
203
+ const cmd = process.argv[2];
204
+ const isMain = process.argv[1] && fs.realpathSync(process.argv[1]) === fs.realpathSync(SELF); // realpath: npx starts us through a symlink on macOS/Linux
205
+ if (isMain) {
206
+ if (cmd === "setup" && PKG) {
207
+ // Customer flow (npx instantping setup): hooks + pairing with the phone app. No ntfy.
208
+ const r = spawnSync(process.execPath, [SELF, "install"], { stdio: "inherit" }); if (r.status) process.exit(r.status);
209
+ console.log("\nOpen the InstantPing app on your phone; it asks for the code below.");
210
+ await pair(load()?.relay || DEFAULT_RELAY);
211
+ console.log("All set. Close Claude Code and open it again, so it loads the new hooks.");
212
+ } else if (cmd === "setup") {
213
+ for (const c of ["init", "install"]) { const r = spawnSync(process.execPath, [SELF, c], { stdio: "inherit" }); if (r.status) process.exit(r.status); }
214
+ await pause("\nNow subscribe your phone in the ntfy app (tap +, paste the topic above, tap Subscribe).\nThen come back to this window and press Enter: I will send a test popup and a test push.\nNo phone? Just press Enter.\n> ");
215
+ spawnSync(process.execPath, [SELF, "test"], { stdio: "inherit" });
216
+ console.log("\nAll set. Close Claude Code and open it again, so it loads the new hooks.");
217
+ } else if (cmd === "init") {
218
+ const conf = load() ?? { server: "https://ntfy.sh", topic: "ccn-" + crypto.randomBytes(12).toString("hex") };
219
+ fs.writeFileSync(CONF, JSON.stringify(conf, null, 2));
220
+ console.log(`Topic: ${conf.topic}\nServer: ${conf.server}`);
221
+ showTopic(conf);
222
+ console.log(`In the ntfy app: tap +, enter the topic above, keep the server ntfy.sh, tap Subscribe.\nOr open this link on your phone: ntfy://${new URL(conf.server).host}/${conf.topic}\nThe topic is your password: never share it, every person needs their own.`);
223
+ } else if (cmd === "topic") {
224
+ const conf = load();
225
+ if (conf?.topic) showTopic(conf); else console.log("No topic yet. Run: node ccn.mjs init");
226
+ } else if (cmd === "test") {
227
+ const conf = load() ?? {};
228
+ const m = { title: "ccn werkt", body: "Testmelding van claude-notifier.", priority: 3, tags: "tada" };
229
+ const [, phone] = await Promise.allSettled([conf.desktop !== false && desktop(m), conf.topic && push(conf, m)]);
230
+ if (phone.status === "rejected") { console.error("Phone push failed: " + phone.reason.message + " (check your internet connection)"); process.exit(1); }
231
+ console.log(conf.topic ? "Sent: popup on this computer + push to your phone." : "Popup sent. No phone topic yet: run init to add phone push.");
232
+ } else if (cmd === "install" || cmd === "uninstall") {
233
+ let s = {}; try { s = JSON.parse(fs.readFileSync(SETTINGS, "utf8")); } catch { /* new file */ }
234
+ if (fs.existsSync(SETTINGS)) fs.copyFileSync(SETTINGS, SETTINGS + ".ccn-backup");
235
+ s.hooks ??= {};
236
+ // Remove our hooks everywhere first (idempotent, also cleans up older installs), then add them back.
237
+ for (const ev of Object.keys(s.hooks)) {
238
+ s.hooks[ev] = s.hooks[ev].filter((g) => !JSON.stringify(g).includes(MARK));
239
+ if (!s.hooks[ev].length) delete s.hooks[ev];
240
+ }
241
+ // UserPromptSubmit only records when a task started (for minSeconds); it never notifies.
242
+ let target = SELF;
243
+ if (cmd === "install" && PKG) { fs.mkdirSync(path.dirname(STABLE), { recursive: true }); fs.copyFileSync(SELF, STABLE); target = STABLE; }
244
+ if (cmd === "install") for (const ev of ["Stop", "Notification", "UserPromptSubmit"]) (s.hooks[ev] ??= []).push({ hooks: [{ type: "command", command: `node "${target.replaceAll("\\", "/")}" hook` }] });
245
+ fs.mkdirSync(path.dirname(SETTINGS), { recursive: true });
246
+ fs.writeFileSync(SETTINGS, JSON.stringify(s, null, 2));
247
+ console.log(`${cmd}ed hooks in ${SETTINGS} (backup: settings.json.ccn-backup)`);
248
+ } else if (cmd === "pair") {
249
+ const relay = process.argv[3] || load()?.relay || DEFAULT_RELAY;
250
+ await pair(relay.replace(/\/$/, ""));
251
+ } else if (cmd === "popup") {
252
+ try { await desktop(JSON.parse(process.env.CCN_POPUP || "{}")); } catch { /* ignore */ }
253
+ } else if (cmd === "hook") {
254
+ // Never break Claude: any failure is swallowed, exit 0.
255
+ // Popup on this computer by default; phone push only when a topic exists. "desktop": false in ~/.ccn.json turns the popup off.
256
+ try {
257
+ const conf = load() ?? {};
258
+ const p = JSON.parse(fs.readFileSync(0, "utf8") || "{}");
259
+ if (!disabled()) {
260
+ if (p.hook_event_name === "UserPromptSubmit") recordStart(p.session_id);
261
+ else if (!skipReason(p, conf, Date.now(), startedAt(p.session_id)) && !throttled(p)) {
262
+ const local = format(p, true); // popup on this computer: project + closing sentence
263
+ const phone = conf.phoneDetail === true ? local : format(p); // push: generic unless you opt in
264
+ // The popup runs in its own detached process, so the hook returns at once (Claude is not held up 3-4 s).
265
+ // "detach": false in ~/.ccn.json restores the old wait-for-popup behaviour.
266
+ await Promise.allSettled([conf.desktop !== false && (conf.detach === false ? desktop(local) : detach(local)), conf.topic && push(conf, phone), conf.relayKey && pushRelay(conf, p.hook_event_name === "Stop" ? "done" : "waiting", phone)]);
267
+ }
268
+ }
269
+ } catch { /* ignore */ }
270
+ } else {
271
+ console.log("usage: node ccn.mjs setup|init|topic|test|install|uninstall|pair|hook");
272
+ }
273
+ }
package/package.json CHANGED
@@ -1,6 +1,18 @@
1
1
  {
2
2
  "name": "instantping",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Phone push when Claude Code is done or needs you. Companion for the InstantPing app.",
5
+ "type": "module",
6
+ "bin": {
7
+ "instantping": "ccn.mjs"
8
+ },
9
+ "files": [
10
+ "ccn.mjs",
11
+ "README.md"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "license": "UNLICENSED",
17
+ "homepage": "https://instantping.app"
18
+ }