Files
skywatch/package.json
T
nmemmertandClaude Sonnet 4.6 f119168399 Full health check: fix startup crash, add subnet input to network discovery
Server fixes:
- database.js: auto-create data/ directory on startup — was crashing on
  fresh clone because the gitignored directory didn't exist
- better-sqlite3 upgraded to latest (13.x) for Node 26 compatibility

Network discovery:
- discoverNetwork() accepts optional subnet param; scans that range instead
  of auto-detecting when provided
- New GET /api/network-subnets endpoint returns detected local interfaces
  so UI can offer quick-select buttons
- Discovery modal: subnet text input + Scan button + auto-detect quick-select;
  local subnet buttons populate once the modal is open
- server/index.js: pass subnet from request body to discoverNetwork()

Infra:
- React client runs on PORT=3456 in dev to avoid port conflicts
- .claude/launch.json added for one-command preview via Express (serves
  the pre-built client, no port conflict with the preview tool)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-08-06 17:21:34 -04:00

40 lines
1.1 KiB
JSON

{
"name": "skywatch",
"version": "1.0.0",
"description": "SkyWatch - Infrastructure monitoring and alerting system",
"main": "server/index.js",
"scripts": {
"start": "node server/index.js",
"dev": "concurrently \"npm run server\" \"npm run client\"",
"server": "nodemon server/index.js",
"client": "cd client && PORT=3456 npm start",
"build": "cd client && npm run build",
"build:commit": "npm run build && git add -f client/build/ && git commit -m \"Auto-commit built React app\" && git push",
"install-all": "npm install && cd client && npm install"
},
"keywords": [
"monitoring",
"uptime",
"alerts",
"dashboard"
],
"author": "",
"license": "MIT",
"dependencies": {
"axios": "^1.6.2",
"better-sqlite3": "^13.0.3",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.3",
"node-cron": "^3.0.3",
"nodemailer": "^6.9.7",
"ping": "^0.4.4",
"ws": "^8.17.1"
},
"devDependencies": {
"concurrently": "^8.2.2",
"nodemon": "^3.0.2"
}
}