Implement exporter using nocap from nostr-watch along with tests

This commit is contained in:
pleb
2026-03-22 14:55:22 -07:00
parent 9c6aef1d92
commit 0531a23680
17 changed files with 1576 additions and 7 deletions
+16 -6
View File
@@ -1,17 +1,27 @@
{
"name": "relay-exporter",
"version": "1.0.0",
"description": "",
"main": "index.js",
"description": "Prometheus exporter for Nostr relay health checks",
"type": "module",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"dev": "tsx watch src/index.ts",
"build": "tsc -p tsconfig.json",
"start": "node dist/index.js",
"test": "tsx --test test/config.test.ts test/smoke.test.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"keywords": [
"nostr",
"prometheus",
"exporter"
],
"license": "MIT",
"packageManager": "pnpm@10.28.0",
"dependencies": {
"@nostrwatch/nocap": "^0.9.2",
"@nostrwatch/nocap-every-adapter-default": "^1.7.0",
"nostr-tools": "^2.23.3",
"p-limit": "^7.3.0",
"prom-client": "^15.1.3"
},
"devDependencies": {