Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 5.72 KB
/
Copy pathpackage.json
File metadata and controls
129 lines (129 loc) · 5.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "open-ping",
"version": "0.21.0",
"description": "Open-source, self-hosted uptime monitoring and public status page running entirely in your own Cloudflare account.",
"license": "MIT",
"type": "module",
"private": true,
"engines": {
"node": ">=20"
},
"scripts": {
"dev": "vite",
"build": "vite build",
"postbuild": "node scripts/secure-build-output.mjs",
"preview": "vite preview",
"deploy": "node scripts/deploy.mjs",
"deploy:prod": "node scripts/prod-config.mjs && OPENPING_WRANGLER_CONFIG=.wrangler.prod.jsonc npm run deploy",
"typecheck": "tsc -b",
"lint": "eslint . --max-warnings=0",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "vitest run",
"test:integration": "vitest run --config vitest.integration.config.ts && npm run test:platform",
"test:platform": "vitest run --config platform/vitest.config.ts",
"test:watch": "vitest",
"test:e2e": "playwright test",
"op": "node scripts/op.mjs",
"tenant-release": "node scripts/tenant-release.mjs",
"hosted-load": "node scripts/hosted-drills/load.mjs",
"hosted-restore-drill": "node scripts/hosted-drills/restore.mjs",
"cf-typegen": "wrangler types",
"db:create": "wrangler d1 create open-ping",
"db:migrate:local": "wrangler d1 migrations apply DB --local",
"db:migrate": "wrangler d1 migrations apply DB --remote",
"db:migrate:prod": "node scripts/prod-config.mjs && wrangler d1 migrations apply DB --remote -c .wrangler.prod.jsonc",
"release": "release-kit release",
"release:check": "release-kit check && npm run lint && npm run typecheck && npm test && npm run build",
"prepare": "git config core.hooksPath .githooks || true"
},
"cloudflare": {
"bindings": {
"MASTER_KEY": {
"description": "Encrypts the credentials OpenPing stores. Must be 32 random bytes in base64: run `openssl rand -base64 32`, or use the generator at [openping.n8builds.dev/install](https://openping.n8builds.dev/install#generate). **Save a copy in your password manager**: Cloudflare never shows it again."
},
"SETUP_TOKEN": {
"description": "Unlocks the first-run setup page until you finish it, so nobody else can claim your new install. Generate another value the same way (`openssl rand -base64 32`) and keep it: the setup page asks for it."
},
"WORKERS_PLAN": {
"description": "Your Cloudflare Workers plan, `free` or `paid`. On Free each 12-minute run checks about 24 monitors and leaves the rest for the next run. [More](https://github.com/n8watkins/open-ping/blob/main/docs/FREE_TIER.md)"
},
"WAITLIST_ENABLED": {
"description": "Leave `false`. Only the OpenPing project's own site collects the Hosted waitlist."
},
"HOME_PAGE": {
"description": "Leave `status`, so visitors see your status page at `/`. Only the OpenPing project's own site uses `landing`."
},
"HOSTED_SIGNUP_URL": {
"description": "Leave empty. Only the OpenPing project's own site sets it, once OpenPing Hosted takes sign-ups."
},
"CONFIRM_REGIONS": {
"description": "Leave `enam,weur`. Before a failure opens an incident, OpenPing re-checks it from one of these Cloudflare regions, away from where the first check ran, so one location's network trouble doesn't page you. `off` re-checks from the same place. [More](https://github.com/n8watkins/open-ping/blob/main/docs/SECOND_REGION.md)"
},
"SENTRY_DSN": {
"description": "Leave empty. To get error reports from the Worker and the browser, set a Sentry DSN of your own; nothing is sent without one."
},
"EMAIL_TRANSPORT": {
"description": "Leave empty to send email through Cloudflare Email Service when the EMAIL binding exists. Set it to resend to send through your own Resend account (RESEND_API_KEY) instead."
},
"DEFAULT_EMAIL_FROM": {
"description": "Optional. The From address for email when the email_from setting is empty, for example OpenPing <alerts@your-domain.com>. It must be on a domain onboarded for sending."
},
"EMAIL_DAILY_CAP": {
"description": "Emails this install may send per UTC day (default 150). Extra ones wait for the next day."
},
"DB": {
"description": "OpenPing's database: monitors, check results, incidents and settings. The deploy creates its tables."
}
}
},
"dependencies": {
"@modelcontextprotocol/server": "^2.4.0",
"@sentry/browser": "11.16.0",
"@sentry/cloudflare": "11.16.0",
"clsx": "^2.1.1",
"hono": "^4.13.19",
"lucide-react": "^1.77.0",
"luxon": "^3.5.0",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-router-dom": "^7.18.6",
"tailwind-merge": "^3.7.1",
"zod": "^4.6.7"
},
"devDependencies": {
"@axe-core/playwright": "^4.14.0",
"@cloudflare/vite-plugin": "^1.70.1",
"@cloudflare/vitest-plugin": "^1.9.0",
"@cloudflare/workers-types": "^5.20261101.1",
"@eslint/js": "10.0.1",
"@playwright/test": "^1.65.1",
"@tailwindcss/vite": "^4.3.5",
"@types/luxon": "^3.7.6",
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^6.3.0",
"eslint": "10.15.0",
"eslint-plugin-react-hooks": "7.1.1",
"globals": "17.14.0",
"release-kit": "github:n8watkins/release-kit#v2.12.0",
"tailwindcss": "^4.0.0",
"typescript": "^6.0.3",
"typescript-eslint": "8.73.0",
"vite": "^8.3.8",
"vitest": "^5.1.1",
"wrangler": "^4.166.0"
},
"overrides": {
"undici": "^7.30.1",
"sharp": "^0.35.5",
"@cloudflare/vitest-plugin": {
"zod": "^4.6.7"
},
"minimatch": "^11.0.1"
},
"allowScripts": {
"esbuild": true,
"workerd": true
}
}