← back to Abrams Report
initial scaffold: Drudge-style design industry news aggregator
035396aaa0c960b74717740caf16a21fefa5b2b8 · 2026-05-11 15:59:44 -0700 · Steve Abrams
Files touched
A .gitignoreA data/headlines.dbA deploy-kamatera.shA ecosystem.config.jsA package-lock.jsonA package.jsonA scrapers/db.jsA scrapers/scrape-all.jsA scrapers/scrape-html.jsA scrapers/scrape-rss.jsA scrapers/scrape-wallpaper.jsA scrapers/sources.jsA server.js
Diff
commit 035396aaa0c960b74717740caf16a21fefa5b2b8
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Mon May 11 15:59:44 2026 -0700
initial scaffold: Drudge-style design industry news aggregator
---
.gitignore | 9 +
data/headlines.db | Bin 0 -> 192512 bytes
deploy-kamatera.sh | 43 ++
ecosystem.config.js | 16 +
package-lock.json | 1672 ++++++++++++++++++++++++++++++++++++++++++
package.json | 19 +
scrapers/db.js | 72 ++
scrapers/scrape-all.js | 18 +
scrapers/scrape-html.js | 120 +++
scrapers/scrape-rss.js | 69 ++
scrapers/scrape-wallpaper.js | 18 +
scrapers/sources.js | 290 ++++++++
server.js | 434 +++++++++++
13 files changed, 2780 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c34ccff
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+node_modules/
+.env*
+tmp/
+*.log
+.DS_Store
+dist/
+build/
+data/*.db-shm
+data/*.db-wal
diff --git a/data/headlines.db b/data/headlines.db
new file mode 100644
index 0000000..c14f2b7
Binary files /dev/null and b/data/headlines.db differ
diff --git a/deploy-kamatera.sh b/deploy-kamatera.sh
new file mode 100755
index 0000000..2d7d7e1
--- /dev/null
+++ b/deploy-kamatera.sh
@@ -0,0 +1,43 @@
+#!/usr/bin/env bash
+# deploy-kamatera.sh — abrams-report deploy to Kamatera
+set -euo pipefail
+
+REMOTE_HOST="root@45.61.58.125"
+REMOTE_DIR="/root/Projects/Designer-Wallcoverings/DW-Websites/abrams-report"
+HEALTH_URL="http://localhost:9779/health"
+LOCAL_DIR="$(cd "$(dirname "$0")" && pwd)"
+
+echo "==> Syncing to Kamatera..."
+rsync -az --delete \
+ --exclude 'node_modules/' \
+ --exclude '.git/' \
+ --exclude '.env*' \
+ --exclude 'data/*.db' \
+ --exclude 'data/*.db-shm' \
+ --exclude 'data/*.db-wal' \
+ --exclude '*.log' \
+ --exclude '.DS_Store' \
+ "$LOCAL_DIR/" "$REMOTE_HOST:$REMOTE_DIR/"
+
+echo "==> Installing dependencies..."
+ssh "$REMOTE_HOST" "cd $REMOTE_DIR && npm install --omit=dev 2>&1 | tail -3"
+
+echo "==> Creating data dir if needed..."
+ssh "$REMOTE_HOST" "mkdir -p $REMOTE_DIR/data"
+
+echo "==> Starting/reloading pm2..."
+ssh "$REMOTE_HOST" "cd $REMOTE_DIR && pm2 startOrReload ecosystem.config.js --update-env && pm2 save"
+
+echo "==> Waiting for process to settle (5s)..."
+sleep 5
+
+echo "==> Health check..."
+HEALTH=$(ssh "$REMOTE_HOST" "curl -sf $HEALTH_URL" 2>/dev/null || echo "FAIL")
+if echo "$HEALTH" | grep -q '"ok"'; then
+ echo "PASS: $HEALTH"
+else
+ echo "FAIL: health check returned: $HEALTH"
+ exit 1
+fi
+
+echo "==> Deploy complete."
diff --git a/ecosystem.config.js b/ecosystem.config.js
new file mode 100644
index 0000000..15b5cf5
--- /dev/null
+++ b/ecosystem.config.js
@@ -0,0 +1,16 @@
+module.exports = {
+ apps: [
+ {
+ name: 'abrams-report',
+ script: 'server.js',
+ cwd: '/root/Projects/Designer-Wallcoverings/DW-Websites/abrams-report',
+ env: {
+ PORT: 9779,
+ NODE_ENV: 'production',
+ },
+ max_memory_restart: '300M',
+ restart_delay: 3000,
+ autorestart: true,
+ },
+ ],
+};
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..4037581
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1672 @@
+{
+ "name": "abrams-report",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "abrams-report",
+ "version": "1.0.0",
+ "dependencies": {
+ "better-sqlite3": "^9.4.3",
+ "cheerio": "^1.0.0-rc.12",
+ "express": "^4.18.2",
+ "node-cron": "^3.0.3",
+ "node-fetch": "^2.7.0",
+ "rss-parser": "^3.13.0"
+ }
+ },
+ "node_modules/accepts": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+ "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-types": "~2.1.34",
+ "negotiator": "0.6.3"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/array-flatten": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+ "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+ "license": "MIT"
+ },
+ "node_modules/base64-js": {
+ "version": "1.5.1",
+ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
+ "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/better-sqlite3": {
+ "version": "9.6.0",
+ "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-9.6.0.tgz",
+ "integrity": "sha512-yR5HATnqeYNVnkaUTf4bOP2dJSnyhP4puJN/QPRyx4YkBEEUxib422n2XzPqDEHjQQqazoYoADdAm5vE15+dAQ==",
+ "hasInstallScript": true,
+ "license": "MIT",
+ "dependencies": {
+ "bindings": "^1.5.0",
+ "prebuild-install": "^7.1.1"
+ }
+ },
+ "node_modules/bindings": {
+ "version": "1.5.0",
+ "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz",
+ "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==",
+ "license": "MIT",
+ "dependencies": {
+ "file-uri-to-path": "1.0.0"
+ }
+ },
+ "node_modules/bl": {
+ "version": "4.1.0",
+ "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
+ "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
+ "license": "MIT",
+ "dependencies": {
+ "buffer": "^5.5.0",
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.4.0"
+ }
+ },
+ "node_modules/body-parser": {
+ "version": "1.20.5",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
+ "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "~1.2.0",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "on-finished": "~2.4.1",
+ "qs": "~6.15.1",
+ "raw-body": "~2.5.3",
+ "type-is": "~1.6.18",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/body-parser/node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/boolbase": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz",
+ "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==",
+ "license": "ISC"
+ },
+ "node_modules/buffer": {
+ "version": "5.7.1",
+ "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
+ "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "base64-js": "^1.3.1",
+ "ieee754": "^1.1.13"
+ }
+ },
+ "node_modules/bytes": {
+ "version": "3.1.2",
+ "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz",
+ "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/call-bind-apply-helpers": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
+ "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/call-bound": {
+ "version": "1.0.4",
+ "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz",
+ "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "get-intrinsic": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/cheerio": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/cheerio/-/cheerio-1.2.0.tgz",
+ "integrity": "sha512-WDrybc/gKFpTYQutKIK6UvfcuxijIZfMfXaYm8NMsPQxSYvf+13fXUJ4rztGGbJcBQ/GF55gvrZ0Bc0bj/mqvg==",
+ "license": "MIT",
+ "dependencies": {
+ "cheerio-select": "^2.1.0",
+ "dom-serializer": "^2.0.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.2.2",
+ "encoding-sniffer": "^0.2.1",
+ "htmlparser2": "^10.1.0",
+ "parse5": "^7.3.0",
+ "parse5-htmlparser2-tree-adapter": "^7.1.0",
+ "parse5-parser-stream": "^7.1.2",
+ "undici": "^7.19.0",
+ "whatwg-mimetype": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=20.18.1"
+ },
+ "funding": {
+ "url": "https://github.com/cheeriojs/cheerio?sponsor=1"
+ }
+ },
+ "node_modules/cheerio-select": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/cheerio-select/-/cheerio-select-2.1.0.tgz",
+ "integrity": "sha512-9v9kG0LvzrlcungtnJtpGNxY+fzECQKhK4EGJX2vByejiMX84MFNQw4UxPJl3bFbTMw+Dfs37XaIkCwTZfLh4g==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0",
+ "css-select": "^5.1.0",
+ "css-what": "^6.1.0",
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fb55"
+ }
+ },
+ "node_modules/chownr": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
+ "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
+ "license": "ISC"
+ },
+ "node_modules/content-disposition": {
+ "version": "0.5.4",
+ "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz",
+ "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.2.1"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/content-type": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz",
+ "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie": {
+ "version": "0.7.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
+ "license": "MIT"
+ },
+ "node_modules/css-select": {
+ "version": "5.2.2",
+ "resolved": "https://registry.npmjs.org/css-select/-/css-select-5.2.2.tgz",
+ "integrity": "sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0",
+ "css-what": "^6.1.0",
+ "domhandler": "^5.0.2",
+ "domutils": "^3.0.1",
+ "nth-check": "^2.0.1"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fb55"
+ }
+ },
+ "node_modules/css-what": {
+ "version": "6.2.2",
+ "resolved": "https://registry.npmjs.org/css-what/-/css-what-6.2.2.tgz",
+ "integrity": "sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">= 6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/fb55"
+ }
+ },
+ "node_modules/debug": {
+ "version": "2.6.9",
+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",
+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",
+ "license": "MIT",
+ "dependencies": {
+ "ms": "2.0.0"
+ }
+ },
+ "node_modules/decompress-response": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz",
+ "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==",
+ "license": "MIT",
+ "dependencies": {
+ "mimic-response": "^3.1.0"
+ },
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/deep-extend": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
+ "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/depd": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
+ "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/destroy": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz",
+ "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/detect-libc": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=8"
+ }
+ },
+ "node_modules/dom-serializer": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-2.0.0.tgz",
+ "integrity": "sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg==",
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.2",
+ "entities": "^4.2.0"
+ },
+ "funding": {
+ "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
+ }
+ },
+ "node_modules/domelementtype": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.3.0.tgz",
+ "integrity": "sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/domhandler": {
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-5.0.3.tgz",
+ "integrity": "sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "domelementtype": "^2.3.0"
+ },
+ "engines": {
+ "node": ">= 4"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domhandler?sponsor=1"
+ }
+ },
+ "node_modules/domutils": {
+ "version": "3.2.2",
+ "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.2.2.tgz",
+ "integrity": "sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "dom-serializer": "^2.0.0",
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/domutils?sponsor=1"
+ }
+ },
+ "node_modules/dunder-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
+ "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "gopd": "^1.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/ee-first": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz",
+ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==",
+ "license": "MIT"
+ },
+ "node_modules/encodeurl": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz",
+ "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/encoding-sniffer": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/encoding-sniffer/-/encoding-sniffer-0.2.1.tgz",
+ "integrity": "sha512-5gvq20T6vfpekVtqrYQsSCFZ1wEg5+wW0/QaZMWkFr6BqD3NfKs0rLCx4rrVlSWJeZb5NBJgVLswK/w2MWU+Gw==",
+ "license": "MIT",
+ "dependencies": {
+ "iconv-lite": "^0.6.3",
+ "whatwg-encoding": "^3.1.1"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/encoding-sniffer?sponsor=1"
+ }
+ },
+ "node_modules/end-of-stream": {
+ "version": "1.4.5",
+ "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.5.tgz",
+ "integrity": "sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==",
+ "license": "MIT",
+ "dependencies": {
+ "once": "^1.4.0"
+ }
+ },
+ "node_modules/entities": {
+ "version": "4.5.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
+ "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/es-define-property": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
+ "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-errors": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
+ "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/es-object-atoms": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
+ "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/escape-html": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
+ "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==",
+ "license": "MIT"
+ },
+ "node_modules/etag": {
+ "version": "1.8.1",
+ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz",
+ "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/expand-template": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
+ "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
+ "license": "(MIT OR WTFPL)",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/express": {
+ "version": "4.22.2",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz",
+ "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "~1.20.5",
+ "content-disposition": "~0.5.4",
+ "content-type": "~1.0.4",
+ "cookie": "~0.7.1",
+ "cookie-signature": "~1.0.6",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "finalhandler": "~1.3.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.0",
+ "merge-descriptors": "1.0.3",
+ "methods": "~1.1.2",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "path-to-regexp": "~0.1.12",
+ "proxy-addr": "~2.0.7",
+ "qs": "~6.15.1",
+ "range-parser": "~1.2.1",
+ "safe-buffer": "5.2.1",
+ "send": "~0.19.0",
+ "serve-static": "~1.16.2",
+ "setprototypeof": "1.2.0",
+ "statuses": "~2.0.1",
+ "type-is": "~1.6.18",
+ "utils-merge": "1.0.1",
+ "vary": "~1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.10.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/file-uri-to-path": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz",
+ "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==",
+ "license": "MIT"
+ },
+ "node_modules/finalhandler": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
+ "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "~2.0.2",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fs-constants": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
+ "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
+ "license": "MIT"
+ },
+ "node_modules/function-bind": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
+ "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-intrinsic": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
+ "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bind-apply-helpers": "^1.0.2",
+ "es-define-property": "^1.0.1",
+ "es-errors": "^1.3.0",
+ "es-object-atoms": "^1.1.1",
+ "function-bind": "^1.1.2",
+ "get-proto": "^1.0.1",
+ "gopd": "^1.2.0",
+ "has-symbols": "^1.1.0",
+ "hasown": "^2.0.2",
+ "math-intrinsics": "^1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/get-proto": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
+ "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
+ "license": "MIT",
+ "dependencies": {
+ "dunder-proto": "^1.0.1",
+ "es-object-atoms": "^1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/github-from-package": {
+ "version": "0.0.0",
+ "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
+ "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
+ "license": "MIT"
+ },
+ "node_modules/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",
+ "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/htmlparser2": {
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-10.1.0.tgz",
+ "integrity": "sha512-VTZkM9GWRAtEpveh7MSF6SjjrpNVNNVJfFup7xTY3UpFtm67foy9HDVXneLtFVt4pMz5kZtgNcvCniNFb1hlEQ==",
+ "funding": [
+ "https://github.com/fb55/htmlparser2?sponsor=1",
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/fb55"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "domelementtype": "^2.3.0",
+ "domhandler": "^5.0.3",
+ "domutils": "^3.2.2",
+ "entities": "^7.0.1"
+ }
+ },
+ "node_modules/htmlparser2/node_modules/entities": {
+ "version": "7.0.1",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-7.0.1.tgz",
+ "integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz",
+ "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/ieee754": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
+ "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "BSD-3-Clause"
+ },
+ "node_modules/inherits": {
+ "version": "2.0.4",
+ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
+ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
+ "license": "ISC"
+ },
+ "node_modules/ini": {
+ "version": "1.3.8",
+ "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
+ "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
+ "license": "ISC"
+ },
+ "node_modules/ipaddr.js": {
+ "version": "1.9.1",
+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
+ "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/math-intrinsics": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/media-typer": {
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz",
+ "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/merge-descriptors": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz",
+ "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/methods": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz",
+ "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz",
+ "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==",
+ "license": "MIT",
+ "bin": {
+ "mime": "cli.js"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mimic-response": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz",
+ "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=10"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/minimist": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
+ "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/mkdirp-classic": {
+ "version": "0.5.3",
+ "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
+ "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
+ "license": "MIT"
+ },
+ "node_modules/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "license": "MIT"
+ },
+ "node_modules/napi-build-utils": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-2.0.0.tgz",
+ "integrity": "sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==",
+ "license": "MIT"
+ },
+ "node_modules/negotiator": {
+ "version": "0.6.3",
+ "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz",
+ "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/node-abi": {
+ "version": "3.92.0",
+ "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.92.0.tgz",
+ "integrity": "sha512-KdHvFWZjEKDf0cakgFjebl371GPsISX2oZHcuyKqM7DtogIsHrqKeLTo8wBHxaXRAQlY2PsPlZmfo+9ZCxEREQ==",
+ "license": "MIT",
+ "dependencies": {
+ "semver": "^7.3.5"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/node-cron": {
+ "version": "3.0.3",
+ "resolved": "https://registry.npmjs.org/node-cron/-/node-cron-3.0.3.tgz",
+ "integrity": "sha512-dOal67//nohNgYWb+nWmg5dkFdIwDm8EpeGYMekPMrngV3637lqnX0lbUcCtgibHTz6SEz7DAIjKvKDFYCnO1A==",
+ "license": "ISC",
+ "dependencies": {
+ "uuid": "8.3.2"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ }
+ },
+ "node_modules/node-fetch": {
+ "version": "2.7.0",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",
+ "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",
+ "license": "MIT",
+ "dependencies": {
+ "whatwg-url": "^5.0.0"
+ },
+ "engines": {
+ "node": "4.x || >=6.0.0"
+ },
+ "peerDependencies": {
+ "encoding": "^0.1.0"
+ },
+ "peerDependenciesMeta": {
+ "encoding": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/nth-check": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.1.1.tgz",
+ "integrity": "sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==",
+ "license": "BSD-2-Clause",
+ "dependencies": {
+ "boolbase": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/nth-check?sponsor=1"
+ }
+ },
+ "node_modules/object-inspect": {
+ "version": "1.13.4",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz",
+ "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/on-finished": {
+ "version": "2.4.1",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz",
+ "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/once": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
+ "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
+ "license": "ISC",
+ "dependencies": {
+ "wrappy": "1"
+ }
+ },
+ "node_modules/parse5": {
+ "version": "7.3.0",
+ "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.3.0.tgz",
+ "integrity": "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw==",
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^6.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/parse5-htmlparser2-tree-adapter": {
+ "version": "7.1.0",
+ "resolved": "https://registry.npmjs.org/parse5-htmlparser2-tree-adapter/-/parse5-htmlparser2-tree-adapter-7.1.0.tgz",
+ "integrity": "sha512-ruw5xyKs6lrpo9x9rCZqZZnIUntICjQAd0Wsmp396Ul9lN/h+ifgVV1x1gZHi8euej6wTfpqX8j+BFQxF0NS/g==",
+ "license": "MIT",
+ "dependencies": {
+ "domhandler": "^5.0.3",
+ "parse5": "^7.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/parse5-parser-stream": {
+ "version": "7.1.2",
+ "resolved": "https://registry.npmjs.org/parse5-parser-stream/-/parse5-parser-stream-7.1.2.tgz",
+ "integrity": "sha512-JyeQc9iwFLn5TbvvqACIF/VXG6abODeB3Fwmv/TGdLk2LfbWkaySGY72at4+Ty7EkPZj854u4CrICqNk2qIbow==",
+ "license": "MIT",
+ "dependencies": {
+ "parse5": "^7.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/inikulin/parse5?sponsor=1"
+ }
+ },
+ "node_modules/parse5/node_modules/entities": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-6.0.1.tgz",
+ "integrity": "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=0.12"
+ },
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/parseurl": {
+ "version": "1.3.3",
+ "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz",
+ "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/path-to-regexp": {
+ "version": "0.1.13",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
+ "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
+ "license": "MIT"
+ },
+ "node_modules/prebuild-install": {
+ "version": "7.1.3",
+ "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.3.tgz",
+ "integrity": "sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==",
+ "deprecated": "No longer maintained. Please contact the author of the relevant native addon; alternatives are available.",
+ "license": "MIT",
+ "dependencies": {
+ "detect-libc": "^2.0.0",
+ "expand-template": "^2.0.3",
+ "github-from-package": "0.0.0",
+ "minimist": "^1.2.3",
+ "mkdirp-classic": "^0.5.3",
+ "napi-build-utils": "^2.0.0",
+ "node-abi": "^3.3.0",
+ "pump": "^3.0.0",
+ "rc": "^1.2.7",
+ "simple-get": "^4.0.0",
+ "tar-fs": "^2.0.0",
+ "tunnel-agent": "^0.6.0"
+ },
+ "bin": {
+ "prebuild-install": "bin.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/proxy-addr": {
+ "version": "2.0.7",
+ "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
+ "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==",
+ "license": "MIT",
+ "dependencies": {
+ "forwarded": "0.2.0",
+ "ipaddr.js": "1.9.1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
+ "node_modules/pump": {
+ "version": "3.0.4",
+ "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.4.tgz",
+ "integrity": "sha512-VS7sjc6KR7e1ukRFhQSY5LM2uBWAUPiOPa/A3mkKmiMwSmRFUITt0xuj+/lesgnCv+dPIEYlkzrcyXgquIHMcA==",
+ "license": "MIT",
+ "dependencies": {
+ "end-of-stream": "^1.1.0",
+ "once": "^1.3.1"
+ }
+ },
+ "node_modules/qs": {
+ "version": "6.15.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
+ "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.3",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+ "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/raw-body/node_modules/iconv-lite": {
+ "version": "0.4.24",
+ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz",
+ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==",
+ "license": "MIT",
+ "dependencies": {
+ "safer-buffer": ">= 2.1.2 < 3"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/rc": {
+ "version": "1.2.8",
+ "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
+ "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
+ "license": "(BSD-2-Clause OR MIT OR Apache-2.0)",
+ "dependencies": {
+ "deep-extend": "^0.6.0",
+ "ini": "~1.3.0",
+ "minimist": "^1.2.0",
+ "strip-json-comments": "~2.0.1"
+ },
+ "bin": {
+ "rc": "cli.js"
+ }
+ },
+ "node_modules/readable-stream": {
+ "version": "3.6.2",
+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
+ "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
+ "license": "MIT",
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 6"
+ }
+ },
+ "node_modules/rss-parser": {
+ "version": "3.13.0",
+ "resolved": "https://registry.npmjs.org/rss-parser/-/rss-parser-3.13.0.tgz",
+ "integrity": "sha512-7jWUBV5yGN3rqMMj7CZufl/291QAhvrrGpDNE4k/02ZchL0npisiYYqULF71jCEKoIiHvK/Q2e6IkDwPziT7+w==",
+ "license": "MIT",
+ "dependencies": {
+ "entities": "^2.0.3",
+ "xml2js": "^0.5.0"
+ }
+ },
+ "node_modules/rss-parser/node_modules/entities": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/entities/-/entities-2.2.0.tgz",
+ "integrity": "sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A==",
+ "license": "BSD-2-Clause",
+ "funding": {
+ "url": "https://github.com/fb55/entities?sponsor=1"
+ }
+ },
+ "node_modules/safe-buffer": {
+ "version": "5.2.1",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
+ "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/safer-buffer": {
+ "version": "2.1.2",
+ "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz",
+ "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==",
+ "license": "MIT"
+ },
+ "node_modules/sax": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.6.0.tgz",
+ "integrity": "sha512-6R3J5M4AcbtLUdZmRv2SygeVaM7IhrLXu9BmnOGmmACak8fiUtOsYNWUS4uK7upbmHIBbLBeFeI//477BKLBzA==",
+ "license": "BlueOak-1.0.0",
+ "engines": {
+ "node": ">=11.0.0"
+ }
+ },
+ "node_modules/semver": {
+ "version": "7.8.0",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.0.tgz",
+ "integrity": "sha512-AcM7dV/5ul4EekoQ29Agm5vri8JNqRyj39o0qpX6vDF2GZrtutZl5RwgD1XnZjiTAfncsJhMI48QQH3sN87YNA==",
+ "license": "ISC",
+ "bin": {
+ "semver": "bin/semver.js"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/send": {
+ "version": "0.19.2",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
+ "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "~2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/serve-static": {
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
+ "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "~0.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/simple-concat": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT"
+ },
+ "node_modules/simple-get": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz",
+ "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/feross"
+ },
+ {
+ "type": "patreon",
+ "url": "https://www.patreon.com/feross"
+ },
+ {
+ "type": "consulting",
+ "url": "https://feross.org/support"
+ }
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "decompress-response": "^6.0.0",
+ "once": "^1.3.1",
+ "simple-concat": "^1.0.0"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/string_decoder": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "~5.2.0"
+ }
+ },
+ "node_modules/strip-json-comments": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
+ "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/tar-fs": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.4.tgz",
+ "integrity": "sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==",
+ "license": "MIT",
+ "dependencies": {
+ "chownr": "^1.1.1",
+ "mkdirp-classic": "^0.5.2",
+ "pump": "^3.0.0",
+ "tar-stream": "^2.1.4"
+ }
+ },
+ "node_modules/tar-stream": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
+ "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "bl": "^4.0.3",
+ "end-of-stream": "^1.4.1",
+ "fs-constants": "^1.0.0",
+ "inherits": "^2.0.3",
+ "readable-stream": "^3.1.1"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/toidentifier": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz",
+ "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.6"
+ }
+ },
+ "node_modules/tr46": {
+ "version": "0.0.3",
+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==",
+ "license": "MIT"
+ },
+ "node_modules/tunnel-agent": {
+ "version": "0.6.0",
+ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
+ "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "safe-buffer": "^5.0.1"
+ },
+ "engines": {
+ "node": "*"
+ }
+ },
+ "node_modules/type-is": {
+ "version": "1.6.18",
+ "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz",
+ "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==",
+ "license": "MIT",
+ "dependencies": {
+ "media-typer": "0.3.0",
+ "mime-types": "~2.1.24"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/undici": {
+ "version": "7.25.0",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-7.25.0.tgz",
+ "integrity": "sha512-xXnp4kTyor2Zq+J1FfPI6Eq3ew5h6Vl0F/8d9XU5zZQf1tX9s2Su1/3PiMmUANFULpmksxkClamIZcaUqryHsQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=20.18.1"
+ }
+ },
+ "node_modules/unpipe": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz",
+ "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/util-deprecate": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
+ "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",
+ "license": "MIT"
+ },
+ "node_modules/utils-merge": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz",
+ "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4.0"
+ }
+ },
+ "node_modules/uuid": {
+ "version": "8.3.2",
+ "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
+ "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
+ "deprecated": "uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028).",
+ "license": "MIT",
+ "bin": {
+ "uuid": "dist/bin/uuid"
+ }
+ },
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/webidl-conversions": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==",
+ "license": "BSD-2-Clause"
+ },
+ "node_modules/whatwg-encoding": {
+ "version": "3.1.1",
+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-3.1.1.tgz",
+ "integrity": "sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==",
+ "deprecated": "Use @exodus/bytes instead for a more spec-conformant and faster implementation",
+ "license": "MIT",
+ "dependencies": {
+ "iconv-lite": "0.6.3"
+ },
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/whatwg-mimetype": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-4.0.0.tgz",
+ "integrity": "sha512-QaKxh0eNIi2mE9p2vEdzfagOKHCcj1pJ56EEHGQOVxp8r9/iszLUUV7v89x9O1p/T+NlTM5W7jW6+cz4Fq1YVg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/whatwg-url": {
+ "version": "5.0.0",
+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
+ "license": "MIT",
+ "dependencies": {
+ "tr46": "~0.0.3",
+ "webidl-conversions": "^3.0.0"
+ }
+ },
+ "node_modules/wrappy": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
+ "license": "ISC"
+ },
+ "node_modules/xml2js": {
+ "version": "0.5.0",
+ "resolved": "https://registry.npmjs.org/xml2js/-/xml2js-0.5.0.tgz",
+ "integrity": "sha512-drPFnkQJik/O+uPKpqSgr22mpuFHqKdbS835iAQrUC73L2F5WkboIRd63ai/2Yg6I1jzifPFKH2NTK+cfglkIA==",
+ "license": "MIT",
+ "dependencies": {
+ "sax": ">=0.6.0",
+ "xmlbuilder": "~11.0.0"
+ },
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/xmlbuilder": {
+ "version": "11.0.1",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-11.0.1.tgz",
+ "integrity": "sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4.0"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..e14bb68
--- /dev/null
+++ b/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "abrams-report",
+ "version": "1.0.0",
+ "description": "Drudge-style design industry news aggregator",
+ "main": "server.js",
+ "scripts": {
+ "start": "node server.js",
+ "scrape": "node scrapers/scrape-all.js",
+ "scrape:wallpaper": "node scrapers/scrape-wallpaper.js"
+ },
+ "dependencies": {
+ "express": "^4.18.2",
+ "better-sqlite3": "^9.4.3",
+ "node-fetch": "^2.7.0",
+ "rss-parser": "^3.13.0",
+ "cheerio": "^1.0.0-rc.12",
+ "node-cron": "^3.0.3"
+ }
+}
diff --git a/scrapers/db.js b/scrapers/db.js
new file mode 100644
index 0000000..dec52e3
--- /dev/null
+++ b/scrapers/db.js
@@ -0,0 +1,72 @@
+'use strict';
+const Database = require('better-sqlite3');
+const path = require('path');
+
+const DB_PATH = path.join(__dirname, '..', 'data', 'headlines.db');
+
+let _db = null;
+
+function getDb() {
+ if (_db) return _db;
+ _db = new Database(DB_PATH);
+ _db.pragma('journal_mode = WAL');
+ _db.pragma('foreign_keys = ON');
+
+ _db.exec(`
+ CREATE TABLE IF NOT EXISTS headlines (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ uid TEXT UNIQUE NOT NULL,
+ title TEXT NOT NULL,
+ url TEXT NOT NULL,
+ source TEXT NOT NULL,
+ category TEXT NOT NULL,
+ fetched_at INTEGER NOT NULL DEFAULT (unixepoch()),
+ pub_date INTEGER,
+ is_breaking INTEGER NOT NULL DEFAULT 0,
+ is_developing INTEGER NOT NULL DEFAULT 0,
+ is_top INTEGER NOT NULL DEFAULT 0
+ );
+ CREATE INDEX IF NOT EXISTS idx_headlines_category ON headlines(category);
+ CREATE INDEX IF NOT EXISTS idx_headlines_fetched ON headlines(fetched_at DESC);
+ CREATE INDEX IF NOT EXISTS idx_headlines_source ON headlines(source);
+
+ CREATE TABLE IF NOT EXISTS scrape_log (
+ id INTEGER PRIMARY KEY AUTOINCREMENT,
+ source TEXT NOT NULL,
+ ran_at INTEGER NOT NULL DEFAULT (unixepoch()),
+ count_added INTEGER NOT NULL DEFAULT 0,
+ error TEXT
+ );
+ `);
+
+ return _db;
+}
+
+function upsertHeadline(h) {
+ const db = getDb();
+ const stmt = db.prepare(`
+ INSERT OR IGNORE INTO headlines (uid, title, url, source, category, pub_date, is_breaking, is_developing, is_top)
+ VALUES (@uid, @title, @url, @source, @category, @pub_date, @is_breaking, @is_developing, @is_top)
+ `);
+ const info = stmt.run(h);
+ return info.changes;
+}
+
+function getHeadlines(opts = {}) {
+ const db = getDb();
+ const { category, limit = 200, since = 0 } = opts;
+ let q = 'SELECT * FROM headlines WHERE fetched_at > ?';
+ const params = [since];
+ if (category) { q += ' AND category = ?'; params.push(category); }
+ q += ' ORDER BY is_top DESC, fetched_at DESC LIMIT ?';
+ params.push(limit);
+ return db.prepare(q).all(...params);
+}
+
+function logScrape(source, count, error = null) {
+ const db = getDb();
+ db.prepare('INSERT INTO scrape_log (source, count_added, error) VALUES (?, ?, ?)')
+ .run(source, count, error);
+}
+
+module.exports = { getDb, upsertHeadline, getHeadlines, logScrape };
diff --git a/scrapers/scrape-all.js b/scrapers/scrape-all.js
new file mode 100644
index 0000000..c536bf1
--- /dev/null
+++ b/scrapers/scrape-all.js
@@ -0,0 +1,18 @@
+#!/usr/bin/env node
+'use strict';
+const { scrapeAllRss } = require('./scrape-rss');
+const { scrapeAllHtml } = require('./scrape-html');
+
+async function main() {
+ console.log('[scrape-all] Starting full scrape at', new Date().toISOString());
+ const rssResults = await scrapeAllRss();
+ const htmlResults = await scrapeAllHtml();
+ const total = [...rssResults, ...htmlResults].reduce((s, r) => s + r.added, 0);
+ console.log(`[scrape-all] Done. Total new headlines: ${total}`);
+ process.exit(0);
+}
+
+main().catch(err => {
+ console.error('[scrape-all] Fatal:', err);
+ process.exit(1);
+});
diff --git a/scrapers/scrape-html.js b/scrapers/scrape-html.js
new file mode 100644
index 0000000..4ad6490
--- /dev/null
+++ b/scrapers/scrape-html.js
@@ -0,0 +1,120 @@
+'use strict';
+const fetch = require('node-fetch');
+const cheerio = require('cheerio');
+const crypto = require('crypto');
+const { upsertHeadline, logScrape } = require('./db');
+const { SCRAPE_SOURCES } = require('./sources');
+
+const FETCH_OPTS = {
+ timeout: 20000,
+ headers: {
+ 'User-Agent': 'Mozilla/5.0 (compatible; AbramsDrReport/1.0; +https://abramsreport.agentabrams.com)',
+ 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
+ 'Accept-Language': 'en-US,en;q=0.5',
+ },
+};
+
+function makeUid(source, url) {
+ return crypto.createHash('sha1').update(source + '|' + url).digest('hex').slice(0, 16);
+}
+
+function isBreaking(title) {
+ return /breaking|emergency|urgent|just in/i.test(title);
+}
+function isDeveloping(title) {
+ return /developing|exclusive|update:|report:/i.test(title);
+}
+
+function resolveUrl(href, baseUrl) {
+ try {
+ return new URL(href, baseUrl).href;
+ } catch {
+ return null;
+ }
+}
+
+function cleanTitle(text) {
+ return text
+ .replace(/\s+/g, ' ')
+ .replace(/[\r\n\t]/g, ' ')
+ .trim()
+ .slice(0, 200);
+}
+
+async function fetchHtml(url) {
+ const res = await fetch(url, FETCH_OPTS);
+ if (!res.ok) throw new Error(`HTTP ${res.status}`);
+ return res.text();
+}
+
+async function scrapeSite(src) {
+ let html;
+ try {
+ html = await fetchHtml(src.url);
+ } catch (err) {
+ console.error(`[html] ${src.key} failed: ${err.message}`);
+ logScrape(src.key, 0, err.message);
+ return 0;
+ }
+
+ const $ = cheerio.load(html);
+ const seen = new Set();
+ let added = 0;
+
+ $(src.selector).each((_, el) => {
+ const href = $(el).attr('href');
+ if (!href) return;
+
+ const absUrl = resolveUrl(href, src.baseUrl);
+ if (!absUrl) return;
+ if (seen.has(absUrl)) return;
+ if (!src.linkFilter.test(absUrl)) return;
+ seen.add(absUrl);
+
+ // Title: try <img alt>, then text content, then URL slug
+ let title = cleanTitle($(el).text());
+ if (!title || title.length < 5) {
+ title = cleanTitle($(el).find('img').attr('alt') || '');
+ }
+ if (!title || title.length < 5) {
+ // derive from URL slug
+ const slug = absUrl.split('/').filter(Boolean).pop() || '';
+ title = slug.replace(/-/g, ' ').replace(/\.\w+$/, '').slice(0, 100);
+ }
+ if (!title || title.length < 5) return;
+
+ const uid = makeUid(src.key, absUrl);
+ added += upsertHeadline({
+ uid,
+ title,
+ url: absUrl,
+ source: src.name,
+ category: src.category,
+ pub_date: null,
+ is_breaking: isBreaking(title) ? 1 : 0,
+ is_developing: isDeveloping(title) ? 1 : 0,
+ is_top: 0,
+ });
+ });
+
+ logScrape(src.key, added);
+ return added;
+}
+
+async function scrapeAllHtml(category = null) {
+ const sources = category
+ ? SCRAPE_SOURCES.filter(s => s.category === category)
+ : SCRAPE_SOURCES;
+
+ const results = [];
+ for (const src of sources) {
+ const count = await scrapeSite(src);
+ console.log(`[html] ${src.name}: +${count}`);
+ results.push({ source: src.key, added: count });
+ // Small polite delay
+ await new Promise(r => setTimeout(r, 500));
+ }
+ return results;
+}
+
+module.exports = { scrapeAllHtml, scrapeSite };
diff --git a/scrapers/scrape-rss.js b/scrapers/scrape-rss.js
new file mode 100644
index 0000000..eca44e7
--- /dev/null
+++ b/scrapers/scrape-rss.js
@@ -0,0 +1,69 @@
+'use strict';
+const Parser = require('rss-parser');
+const crypto = require('crypto');
+const { upsertHeadline, logScrape } = require('./db');
+const { RSS_SOURCES } = require('./sources');
+
+const parser = new Parser({
+ timeout: 15000,
+ headers: {
+ 'User-Agent': 'AbramsDrReport/1.0 (+https://abramsreport.agentabrams.com)',
+ },
+});
+
+function makeUid(source, url) {
+ return crypto.createHash('sha1').update(source + '|' + url).digest('hex').slice(0, 16);
+}
+
+function isBreaking(title) {
+ return /breaking|emergency|urgent|just in/i.test(title);
+}
+function isDeveloping(title) {
+ return /developing|exclusive|update:|report:/i.test(title);
+}
+
+async function scrapeRss(src) {
+ let feed;
+ try {
+ feed = await parser.parseURL(src.rssUrl);
+ } catch (err) {
+ console.error(`[rss] ${src.key} failed: ${err.message}`);
+ logScrape(src.key, 0, err.message);
+ return 0;
+ }
+
+ let added = 0;
+ for (const item of (feed.items || [])) {
+ const title = (item.title || '').trim();
+ const url = item.link || item.guid;
+ if (!title || !url) continue;
+ // Headlines + links only — no excerpt, no images (copyright safe)
+ const uid = makeUid(src.key, url);
+ const pubDate = item.pubDate ? Math.floor(new Date(item.pubDate).getTime() / 1000) : null;
+ added += upsertHeadline({
+ uid,
+ title,
+ url,
+ source: src.name,
+ category: src.category,
+ pub_date: pubDate,
+ is_breaking: isBreaking(title) ? 1 : 0,
+ is_developing: isDeveloping(title) ? 1 : 0,
+ is_top: 0,
+ });
+ }
+ logScrape(src.key, added);
+ return added;
+}
+
+async function scrapeAllRss() {
+ const results = [];
+ for (const src of RSS_SOURCES) {
+ const count = await scrapeRss(src);
+ console.log(`[rss] ${src.name}: +${count}`);
+ results.push({ source: src.key, added: count });
+ }
+ return results;
+}
+
+module.exports = { scrapeAllRss, scrapeRss };
diff --git a/scrapers/scrape-wallpaper.js b/scrapers/scrape-wallpaper.js
new file mode 100644
index 0000000..ab38184
--- /dev/null
+++ b/scrapers/scrape-wallpaper.js
@@ -0,0 +1,18 @@
+#!/usr/bin/env node
+'use strict';
+// Runs every 30 min — wallpaper houses only
+const { scrapeAllHtml } = require('./scrape-html');
+const { CAT } = require('./sources');
+
+async function main() {
+ console.log('[wallpaper-watch] Starting wallpaper scrape at', new Date().toISOString());
+ const results = await scrapeAllHtml(CAT.WALLPAPER);
+ const total = results.reduce((s, r) => s + r.added, 0);
+ console.log(`[wallpaper-watch] Done. New wallpaper headlines: ${total}`);
+ process.exit(0);
+}
+
+main().catch(err => {
+ console.error('[wallpaper-watch] Fatal:', err);
+ process.exit(1);
+});
diff --git a/scrapers/sources.js b/scrapers/sources.js
new file mode 100644
index 0000000..9c7c045
--- /dev/null
+++ b/scrapers/sources.js
@@ -0,0 +1,290 @@
+'use strict';
+
+// Category constants
+const CAT = {
+ DESIGN_CENTER: 'design-centers',
+ TRADE: 'trade-pubs',
+ CONSUMER: 'consumer-pubs',
+ WALLPAPER: 'wallpaper-watch',
+};
+
+// RSS-based sources
+const RSS_SOURCES = [
+ // --- Trade pubs ---
+ {
+ key: 'business-of-home',
+ name: 'Business of Home',
+ category: CAT.TRADE,
+ rssUrl: 'https://businessofhome.com/articles.rss',
+ },
+ {
+ key: 'editor-at-large',
+ name: 'Editor at Large',
+ category: CAT.TRADE,
+ rssUrl: 'https://editoratlarge.com/feed/',
+ },
+ {
+ key: 'furniture-today',
+ name: 'Furniture Today',
+ category: CAT.TRADE,
+ rssUrl: 'https://www.furnituretoday.com/category/news/feed/',
+ },
+ {
+ key: 'hospitality-design',
+ name: 'Hospitality Design',
+ category: CAT.TRADE,
+ rssUrl: 'https://hospitalitydesign.com/feed/',
+ },
+ {
+ key: 'interior-design-mag',
+ name: 'Interior Design Magazine',
+ category: CAT.TRADE,
+ rssUrl: 'https://interiordesign.net/feed/',
+ },
+ // --- Consumer pubs ---
+ {
+ key: 'architectural-digest',
+ name: 'Architectural Digest',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://www.architecturaldigest.com/feed/rss',
+ },
+ {
+ key: 'elle-decor',
+ name: 'Elle Decor',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://www.elledecor.com/rss/all.xml/',
+ },
+ {
+ key: 'house-beautiful',
+ name: 'House Beautiful',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://www.housebeautiful.com/rss/all.xml/',
+ },
+ {
+ key: 'veranda',
+ name: 'Veranda',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://www.veranda.com/rss/all.xml/',
+ },
+ {
+ key: 'domino',
+ name: 'Domino',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://www.domino.com/feed',
+ },
+ {
+ key: 'dezeen',
+ name: 'Dezeen',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://www.dezeen.com/feed/',
+ },
+ {
+ key: 'design-milk',
+ name: 'Design Milk',
+ category: CAT.CONSUMER,
+ rssUrl: 'https://design-milk.com/feed/',
+ },
+];
+
+// HTML-scraped sources (design centers + wallpaper houses)
+// These are scraped for linked headlines only — no excerpts
+const SCRAPE_SOURCES = [
+ // --- Design Centers ---
+ {
+ key: 'pacific-design-center',
+ name: 'Pacific Design Center',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://pacificdesigncenter.com/news',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press)/i,
+ baseUrl: 'https://pacificdesigncenter.com',
+ },
+ {
+ key: 'dd-building',
+ name: 'D&D Building NYC',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://ddbuilding.com/news',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press)/i,
+ baseUrl: 'https://ddbuilding.com',
+ },
+ {
+ key: 'themart',
+ name: 'Chicago Merchandise Mart',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://www.themart.com/press-releases/',
+ selector: 'a[href]',
+ linkFilter: /\/(press|news|event|release)/i,
+ baseUrl: 'https://www.themart.com',
+ },
+ {
+ key: 'dc-dallas',
+ name: 'Decorative Center Dallas',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://dcdallas.com/latest-news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press|latest)/i,
+ baseUrl: 'https://dcdallas.com',
+ },
+ {
+ key: 'dec-center-houston',
+ name: 'Decorative Center Houston',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://www.decorativecenterhouston.com/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press|feature|article)/i,
+ baseUrl: 'https://www.decorativecenterhouston.com',
+ },
+ {
+ key: 'adac-atlanta',
+ name: 'ADAC Atlanta',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://adacatlanta.com/adac-news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press|adac)/i,
+ baseUrl: 'https://adacatlanta.com',
+ },
+ {
+ key: 'nydc',
+ name: 'New York Design Center',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://www.nydc.com/news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press)/i,
+ baseUrl: 'https://www.nydc.com',
+ },
+ {
+ key: 'sf-design-center',
+ name: 'San Francisco Design Center',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://www.sfdesigncenter.com/news-events/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press)/i,
+ baseUrl: 'https://www.sfdesigncenter.com',
+ },
+ {
+ key: 'washington-design-center',
+ name: 'Washington Design Center',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://www.dcdesigncenter.com/news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press)/i,
+ baseUrl: 'https://www.dcdesigncenter.com',
+ },
+ {
+ key: 'miami-design-district',
+ name: 'Miami Design District',
+ category: CAT.DESIGN_CENTER,
+ url: 'https://miamidesigndistrict.net/news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|event|press)/i,
+ baseUrl: 'https://miamidesigndistrict.net',
+ },
+ // --- Wallpaper Houses ---
+ {
+ key: 'schumacher',
+ name: 'Schumacher',
+ category: CAT.WALLPAPER,
+ url: 'https://www.fschumacher.com/search#q=&t=All%20Products&sort=newest',
+ selector: 'a[href]',
+ linkFilter: /\/(search|product|collection|new)/i,
+ baseUrl: 'https://www.fschumacher.com',
+ newsUrl: 'https://www.fschumacher.com/news',
+ newsFilter: /\/(news|press|stories)/i,
+ },
+ {
+ key: 'thibaut',
+ name: 'Thibaut',
+ category: CAT.WALLPAPER,
+ url: 'https://www.thibautdesign.com/inspiration/',
+ selector: 'a[href]',
+ linkFilter: /\/(inspiration|news|press|new-arrivals|collection|blog)/i,
+ baseUrl: 'https://www.thibautdesign.com',
+ },
+ {
+ key: 'phillip-jeffries',
+ name: 'Phillip Jeffries',
+ category: CAT.WALLPAPER,
+ url: 'https://www.phillipjeffries.com/news',
+ selector: 'a[href]',
+ linkFilter: /\/(news|press|new-arrivals|collection)/i,
+ baseUrl: 'https://www.phillipjeffries.com',
+ },
+ {
+ key: 'scalamandre',
+ name: 'Scalamandre',
+ category: CAT.WALLPAPER,
+ url: 'https://scalamandre.com/news',
+ selector: 'a[href]',
+ linkFilter: /\/(news|press|blog|collection)/i,
+ baseUrl: 'https://scalamandre.com',
+ },
+ {
+ key: 'maya-romanoff',
+ name: 'Maya Romanoff',
+ category: CAT.WALLPAPER,
+ url: 'https://www.mayaromanoff.com/news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|press|blog|collection)/i,
+ baseUrl: 'https://www.mayaromanoff.com',
+ },
+ {
+ key: 'arte-international',
+ name: 'Arte International',
+ category: CAT.WALLPAPER,
+ url: 'https://www.arte-international.com/en/collections',
+ selector: 'a[href]',
+ linkFilter: /\/(en\/|collections|products|new)/i,
+ baseUrl: 'https://www.arte-international.com',
+ },
+ {
+ key: 'brewster',
+ name: 'Brewster Home Fashions',
+ category: CAT.WALLPAPER,
+ url: 'https://www.brewsterwallcovering.com/new-arrivals',
+ selector: 'a[href]',
+ linkFilter: /\/(new-arrivals|collections|wallcovering|catalog)/i,
+ baseUrl: 'https://www.brewsterwallcovering.com',
+ },
+ {
+ key: 'york-wallcoverings',
+ name: 'York Wallcoverings',
+ category: CAT.WALLPAPER,
+ url: 'https://www.yorkwallcoverings.com/blog',
+ selector: 'a[href]',
+ linkFilter: /\/(blog|collections|new|inspiration)/i,
+ baseUrl: 'https://www.yorkwallcoverings.com',
+ },
+ {
+ key: 'wallquest',
+ name: 'Wallquest',
+ category: CAT.WALLPAPER,
+ url: 'https://wallquest.com/latest-news/',
+ selector: 'a[href]',
+ linkFilter: /\/(news|press|collection|latest)/i,
+ baseUrl: 'https://wallquest.com',
+ },
+ {
+ key: 'cole-and-son',
+ name: 'Cole & Son',
+ category: CAT.WALLPAPER,
+ url: 'https://www.cole-and-son.com/en/news',
+ selector: 'a[href]',
+ linkFilter: /\/(news|press|new|collection)/i,
+ baseUrl: 'https://www.cole-and-son.com',
+ },
+];
+
+// Social follow links (no scraping — just reference links)
+const SOCIAL_LINKS = [
+ { name: 'Architectural Digest', ig: 'https://www.instagram.com/archdigest/', li: 'https://www.linkedin.com/company/architectural-digest/' },
+ { name: 'Elle Decor', ig: 'https://www.instagram.com/elledecor/', li: 'https://www.linkedin.com/company/elle-decor/' },
+ { name: 'Business of Home', ig: 'https://www.instagram.com/businessofhome/', li: 'https://www.linkedin.com/company/business-of-home/' },
+ { name: 'Dezeen', ig: 'https://www.instagram.com/dezeen/', li: 'https://www.linkedin.com/company/dezeen/' },
+ { name: 'Design Milk', ig: 'https://www.instagram.com/designmilk/', li: 'https://www.linkedin.com/company/design-milk/' },
+ { name: 'Pacific Design Center', ig: 'https://www.instagram.com/pacificdesigncenter/', li: 'https://www.linkedin.com/company/pacific-design-center/' },
+ { name: 'ADAC Atlanta', ig: 'https://www.instagram.com/adacatlanta/', li: 'https://www.linkedin.com/company/atlanta-decorative-arts-center/' },
+ { name: 'Miami Design District', ig: 'https://www.instagram.com/miamidesigndistrict/', li: 'https://www.linkedin.com/company/miami-design-district/' },
+];
+
+module.exports = { RSS_SOURCES, SCRAPE_SOURCES, SOCIAL_LINKS, CAT };
diff --git a/server.js b/server.js
new file mode 100644
index 0000000..7cb36ef
--- /dev/null
+++ b/server.js
@@ -0,0 +1,434 @@
+'use strict';
+const express = require('express');
+const path = require('path');
+const { getHeadlines } = require('./scrapers/db');
+const { CAT, SOCIAL_LINKS } = require('./scrapers/sources');
+
+const PORT = process.env.PORT || 9779;
+const app = express();
+
+app.set('trust proxy', true);
+
+// Cache-Control: no-store on all HTML responses (Cloudflare-aware)
+app.use((req, res, next) => {
+ res.setHeader('Cache-Control', 'no-store, must-revalidate');
+ next();
+});
+
+app.use(express.static(path.join(__dirname, 'public')));
+
+// ─── Helper: build page HTML ─────────────────────────────────────────────────
+function renderPage(data) {
+ const {
+ wallpaperHeadlines,
+ tradePubHeadlines,
+ consumerHeadlines,
+ designCenterHeadlines,
+ topStory,
+ socialLinks,
+ fetchedAt,
+ } = data;
+
+ function headlineLink(h) {
+ let prefix = '';
+ if (h.is_breaking) prefix = '<span class="tag tag-breaking">BREAKING:</span> ';
+ else if (h.is_developing) prefix = '<span class="tag tag-developing">DEVELOPING:</span> ';
+ return `<li><a href="${escHtml(h.url)}" target="_blank" rel="noopener noreferrer">${prefix}${escHtml(h.title)}</a></li>`;
+ }
+
+ function col(headlines, max = 18) {
+ return headlines.slice(0, max).map(headlineLink).join('\n');
+ }
+
+ function escHtml(s) {
+ return String(s || '')
+ .replace(/&/g, '&')
+ .replace(/</g, '<')
+ .replace(/>/g, '>')
+ .replace(/"/g, '"');
+ }
+
+ const topHtml = topStory
+ ? `<div class="top-story">
+ 🚨 <a href="${escHtml(topStory.url)}" target="_blank" rel="noopener noreferrer">${escHtml(topStory.title)}</a>
+ <span class="top-source">— ${escHtml(topStory.source)}</span>
+ </div>`
+ : '';
+
+ const socialHtml = socialLinks.map(s => `
+ <div class="social-item">
+ <span class="social-name">${escHtml(s.name)}</span>
+ <a href="${escHtml(s.ig)}" target="_blank" rel="noopener noreferrer">IG</a>
+ <a href="${escHtml(s.li)}" target="_blank" rel="noopener noreferrer">LinkedIn</a>
+ </div>`).join('\n');
+
+ const now = new Date(fetchedAt * 1000).toLocaleString('en-US', {
+ timeZone: 'America/Los_Angeles',
+ month: 'short', day: 'numeric', year: 'numeric',
+ hour: 'numeric', minute: '2-digit', hour12: true,
+ });
+
+ // Split trade + consumer headlines across 3 columns
+ const trade = tradePubHeadlines.slice(0, 24);
+ const consumer = consumerHeadlines.slice(0, 24);
+ const centers = designCenterHeadlines.slice(0, 24);
+
+ // Interleave trade + consumer for left 2 columns; design centers get col 3
+ const leftCol = [...trade.slice(0, 12), ...consumer.slice(0, 6)];
+ const midCol = [...trade.slice(12, 24), ...consumer.slice(6, 12)];
+ const rightCol = centers;
+
+ return `<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>ABRAMS REPORT — Design Industry Intelligence</title>
+ <meta name="description" content="The design industry's headline service. Trade news, market intelligence, and wallcovering watch — updated hourly.">
+ <style>
+ /* ── Reset + Base ──────────────────────────────────────────── */
+ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
+ html { font-size: 16px; }
+ body {
+ background: #f5f0e8;
+ color: #111;
+ font-family: Georgia, 'Times New Roman', Times, serif;
+ line-height: 1.45;
+ }
+ a { color: #111; text-decoration: underline; }
+ a:hover { color: #8b0000; }
+
+ /* ── Masthead ──────────────────────────────────────────────── */
+ .masthead {
+ border-top: 6px solid #111;
+ border-bottom: 3px double #111;
+ text-align: center;
+ padding: 18px 20px 14px;
+ background: #f5f0e8;
+ }
+ .masthead-eyebrow {
+ font-size: 0.65rem;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ margin-bottom: 4px;
+ color: #555;
+ }
+ .masthead-title {
+ font-size: clamp(2.4rem, 6vw, 4.8rem);
+ font-weight: 700;
+ letter-spacing: -0.01em;
+ line-height: 1;
+ text-transform: uppercase;
+ }
+ .masthead-tagline {
+ font-size: 0.75rem;
+ font-style: italic;
+ color: #444;
+ margin-top: 6px;
+ letter-spacing: 0.08em;
+ }
+ .masthead-meta {
+ font-size: 0.65rem;
+ letter-spacing: 0.12em;
+ text-transform: uppercase;
+ margin-top: 10px;
+ color: #666;
+ border-top: 1px solid #bbb;
+ padding-top: 8px;
+ }
+
+ /* ── Top Story Banner ───────────────────────────────────────── */
+ .top-story {
+ background: #111;
+ color: #f5f0e8;
+ text-align: center;
+ padding: 10px 20px;
+ font-size: 1.05rem;
+ font-weight: 700;
+ border-bottom: 3px solid #8b0000;
+ }
+ .top-story a { color: #fff; }
+ .top-story a:hover { color: #ffcccc; }
+ .top-source {
+ font-weight: 400;
+ font-style: italic;
+ font-size: 0.85rem;
+ opacity: 0.85;
+ }
+
+ /* ── WALLPAPER WATCH ──────────────────────────────────────── */
+ .wallpaper-watch-bar {
+ background: #8b0000;
+ color: #fff;
+ text-align: center;
+ padding: 12px 20px 10px;
+ border-bottom: 2px solid #5c0000;
+ }
+ .wallpaper-watch-bar h2 {
+ font-size: clamp(1.4rem, 4vw, 2.4rem);
+ font-style: italic;
+ letter-spacing: 0.06em;
+ text-transform: uppercase;
+ }
+ .wallpaper-watch-bar .ww-tagline {
+ font-size: 0.7rem;
+ letter-spacing: 0.15em;
+ text-transform: uppercase;
+ opacity: 0.85;
+ margin-top: 3px;
+ }
+
+ .wallpaper-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
+ gap: 0;
+ border-bottom: 3px double #111;
+ }
+ .wallpaper-col {
+ padding: 12px 14px;
+ border-right: 1px solid #ccc;
+ }
+ .wallpaper-col:last-child { border-right: none; }
+ .wallpaper-col h3 {
+ font-size: 0.65rem;
+ text-transform: uppercase;
+ letter-spacing: 0.14em;
+ color: #8b0000;
+ border-bottom: 1px solid #8b0000;
+ padding-bottom: 4px;
+ margin-bottom: 8px;
+ }
+ .wallpaper-col ul { list-style: none; }
+ .wallpaper-col li {
+ border-bottom: 1px dotted #ccc;
+ padding: 4px 0;
+ font-size: 0.78rem;
+ line-height: 1.35;
+ }
+ .wallpaper-col li a { text-decoration: none; }
+ .wallpaper-col li a:hover { text-decoration: underline; color: #8b0000; }
+
+ /* ── Three-column main ───────────────────────────────────────── */
+ .section-header {
+ background: #111;
+ color: #f5f0e8;
+ text-align: center;
+ padding: 7px 20px;
+ font-size: 0.65rem;
+ letter-spacing: 0.18em;
+ text-transform: uppercase;
+ }
+
+ .three-col {
+ display: grid;
+ grid-template-columns: 1fr 1fr 1fr;
+ border-bottom: 3px double #111;
+ }
+ @media (max-width: 768px) {
+ .three-col { grid-template-columns: 1fr; }
+ .wallpaper-grid { grid-template-columns: 1fr 1fr; }
+ }
+ @media (max-width: 480px) {
+ .wallpaper-grid { grid-template-columns: 1fr; }
+ }
+
+ .col {
+ padding: 14px 16px;
+ border-right: 1px solid #bbb;
+ }
+ .col:last-child { border-right: none; }
+ .col h3 {
+ font-size: 0.65rem;
+ text-transform: uppercase;
+ letter-spacing: 0.14em;
+ color: #555;
+ border-bottom: 1px solid #bbb;
+ padding-bottom: 5px;
+ margin-bottom: 10px;
+ }
+ .col ul { list-style: none; }
+ .col li {
+ border-bottom: 1px dotted #ccc;
+ padding: 5px 0;
+ font-size: 0.8rem;
+ line-height: 1.38;
+ }
+ .col li a { text-decoration: none; }
+ .col li a:hover { text-decoration: underline; color: #8b0000; }
+
+ /* ── Tags ────────────────────────────────────────────────────── */
+ .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; }
+ .tag-breaking { color: #8b0000; }
+ .tag-developing { font-style: italic; color: #333; }
+
+ /* ── Social Row ─────────────────────────────────────────────── */
+ .social-section {
+ border-top: 1px solid #bbb;
+ padding: 14px 20px;
+ background: #ede8de;
+ }
+ .social-section h3 {
+ font-size: 0.65rem;
+ text-transform: uppercase;
+ letter-spacing: 0.16em;
+ margin-bottom: 10px;
+ color: #555;
+ }
+ .social-row {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 14px;
+ }
+ .social-item {
+ font-size: 0.72rem;
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ }
+ .social-name { font-style: italic; color: #444; }
+ .social-item a {
+ font-size: 0.65rem;
+ font-weight: 700;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ color: #8b0000;
+ text-decoration: none;
+ }
+ .social-item a:hover { text-decoration: underline; }
+
+ /* ── Footer ─────────────────────────────────────────────────── */
+ footer {
+ text-align: center;
+ padding: 14px;
+ font-size: 0.62rem;
+ color: #888;
+ letter-spacing: 0.1em;
+ text-transform: uppercase;
+ border-top: 2px solid #111;
+ }
+ </style>
+</head>
+<body>
+
+ <!-- MASTHEAD -->
+ <header class="masthead">
+ <div class="masthead-eyebrow">The Design Industry's Source</div>
+ <div class="masthead-title">Abrams Report</div>
+ <div class="masthead-tagline">Headlines & Outbound Links — The Design World in One Place</div>
+ <div class="masthead-meta">Updated hourly • Wallpaper Watch every 30 min • ${now} PT</div>
+ </header>
+
+ <!-- TOP STORY -->
+ ${topHtml}
+
+ <!-- WALLPAPER WATCH -->
+ <div class="wallpaper-watch-bar">
+ <h2>★ Wallpaper Watch ★</h2>
+ <div class="ww-tagline">New Arrivals • Collections • Press Releases — Updated Every 30 Minutes</div>
+ </div>
+
+ <div class="wallpaper-grid">
+ ${buildWallpaperCols(wallpaperHeadlines)}
+ </div>
+
+ <!-- SECTION HEADER: NEWS -->
+ <div class="section-header">Trade • Consumer • Design Centers</div>
+
+ <!-- THREE COLUMNS -->
+ <div class="three-col">
+ <div class="col">
+ <h3>Trade Publications</h3>
+ <ul>${col(leftCol)}</ul>
+ </div>
+ <div class="col">
+ <h3>Consumer Design Press</h3>
+ <ul>${col(midCol)}</ul>
+ </div>
+ <div class="col">
+ <h3>Design Centers</h3>
+ <ul>${col(rightCol)}</ul>
+ </div>
+ </div>
+
+ <!-- SOCIAL FOLLOW -->
+ <div class="social-section">
+ <h3>Follow the Sources</h3>
+ <div class="social-row">
+ ${socialHtml}
+ </div>
+ </div>
+
+ <footer>
+ © ${new Date().getFullYear()} Abrams Report — Design Industry Intelligence —
+ Headlines & links only — No excerpts — All content © respective publishers
+ </footer>
+
+</body>
+</html>`;
+
+ // ── Wallpaper cols helper ──────────────────────────────────────────────────
+ function buildWallpaperCols(headlines) {
+ // Group by source
+ const bySource = {};
+ for (const h of headlines) {
+ if (!bySource[h.source]) bySource[h.source] = [];
+ bySource[h.source].push(h);
+ }
+ const cols = Object.entries(bySource).map(([sourceName, items]) => {
+ const links = items.slice(0, 6).map(h =>
+ `<li><a href="${escHtml(h.url)}" target="_blank" rel="noopener noreferrer">${escHtml(h.title)}</a></li>`
+ ).join('\n');
+ return `<div class="wallpaper-col">
+ <h3>${escHtml(sourceName)}</h3>
+ <ul>${links}</ul>
+ </div>`;
+ });
+ return cols.join('\n') || '<div class="wallpaper-col"><p style="font-size:.8rem;color:#888;padding:10px">Scraping in progress…</p></div>';
+ }
+}
+
+// ─── Routes ─────────────────────────────────────────────────────────────────
+
+app.get('/health', (req, res) => res.json({ status: 'ok', ts: Date.now() }));
+
+app.get('/', (req, res) => {
+ try {
+ const since = Math.floor(Date.now() / 1000) - 7 * 24 * 3600; // 7 days window
+
+ const wallpaper = getHeadlines({ category: CAT.WALLPAPER, limit: 100, since });
+ const trade = getHeadlines({ category: CAT.TRADE, limit: 60, since });
+ const consumer = getHeadlines({ category: CAT.CONSUMER, limit: 60, since });
+ const centers = getHeadlines({ category: CAT.DESIGN_CENTER, limit: 40, since });
+
+ // Top story: most recent breaking item, or just most recent
+ const all = [...wallpaper, ...trade, ...consumer, ...centers];
+ const topStory = all.find(h => h.is_breaking) || all[0] || null;
+
+ const html = renderPage({
+ wallpaperHeadlines: wallpaper,
+ tradePubHeadlines: trade,
+ consumerHeadlines: consumer,
+ designCenterHeadlines: centers,
+ topStory,
+ socialLinks: SOCIAL_LINKS,
+ fetchedAt: Math.floor(Date.now() / 1000),
+ });
+
+ res.setHeader('Content-Type', 'text/html; charset=utf-8');
+ res.send(html);
+ } catch (err) {
+ console.error('[server] render error:', err);
+ res.status(500).send('<h1>Abrams Report — Temporarily Unavailable</h1>');
+ }
+});
+
+app.get('/api/headlines', (req, res) => {
+ const since = Math.floor(Date.now() / 1000) - 7 * 24 * 3600;
+ const { category, limit = 50 } = req.query;
+ const headlines = getHeadlines({ category, limit: parseInt(limit), since });
+ res.json({ ok: true, count: headlines.length, headlines });
+});
+
+app.listen(PORT, () => {
+ console.log(`[abrams-report] Listening on :${PORT}`);
+});
(oldest)
·
back to Abrams Report
·
fix(wallpaper-watch): rewrite all 10 wallpaper-house scraper 42ab728 →