← back to Project Portfolio Viewer
initial scaffold (gitify-all 2026-05-06)
763b9755a314121001dd711a713bb685f01b4fb9 · 2026-05-06 10:25:45 -0700 · Steve Abrams
Files touched
A .gitignoreA package-lock.jsonA package.jsonA portfolio-viewer.tsA portfolio-viewer.ts.backup
Diff
commit 763b9755a314121001dd711a713bb685f01b4fb9
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 6 10:25:45 2026 -0700
initial scaffold (gitify-all 2026-05-06)
---
.gitignore | 17 +
package-lock.json | 1504 ++++++++++++++++++++++++++++++++++++++++++++
package.json | 18 +
portfolio-viewer.ts | 1133 +++++++++++++++++++++++++++++++++
portfolio-viewer.ts.backup | 1133 +++++++++++++++++++++++++++++++++
5 files changed, 3805 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e33f758
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,17 @@
+node_modules/
+.next/
+dist/
+build/
+.cache/
+*.db-shm
+*.db-wal
+.env
+.env.local
+coverage/
+.DS_Store
+*.log
+tmp/
+
+.env.*.local
+.env.*
+*.bak
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..059269a
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1504 @@
+{
+ "name": "project-portfolio-viewer",
+ "version": "1.0.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "project-portfolio-viewer",
+ "version": "1.0.0",
+ "dependencies": {
+ "express": "^4.18.2"
+ },
+ "devDependencies": {
+ "@types/express": "^4.17.17",
+ "@types/node": "^20.10.5",
+ "tsx": "^4.7.0"
+ }
+ },
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.12.tgz",
+ "integrity": "sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.12.tgz",
+ "integrity": "sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.12.tgz",
+ "integrity": "sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/android-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.12.tgz",
+ "integrity": "sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "android"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.12.tgz",
+ "integrity": "sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/darwin-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.12.tgz",
+ "integrity": "sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/freebsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.12.tgz",
+ "integrity": "sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "freebsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.12.tgz",
+ "integrity": "sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.12.tgz",
+ "integrity": "sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.12.tgz",
+ "integrity": "sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-loong64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.12.tgz",
+ "integrity": "sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==",
+ "cpu": [
+ "loong64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-mips64el": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.12.tgz",
+ "integrity": "sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==",
+ "cpu": [
+ "mips64el"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-ppc64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.12.tgz",
+ "integrity": "sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-riscv64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.12.tgz",
+ "integrity": "sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-s390x": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.12.tgz",
+ "integrity": "sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==",
+ "cpu": [
+ "s390x"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/linux-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.12.tgz",
+ "integrity": "sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/netbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "netbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.12.tgz",
+ "integrity": "sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.12.tgz",
+ "integrity": "sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openharmony-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.12.tgz",
+ "integrity": "sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openharmony"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/sunos-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.12.tgz",
+ "integrity": "sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "sunos"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-arm64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.12.tgz",
+ "integrity": "sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-ia32": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.12.tgz",
+ "integrity": "sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==",
+ "cpu": [
+ "ia32"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/win32-x64": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.12.tgz",
+ "integrity": "sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
+ "node_modules/@types/body-parser": {
+ "version": "1.19.6",
+ "resolved": "https://registry.npmjs.org/@types/body-parser/-/body-parser-1.19.6.tgz",
+ "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/connect": "*",
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/connect": {
+ "version": "3.4.38",
+ "resolved": "https://registry.npmjs.org/@types/connect/-/connect-3.4.38.tgz",
+ "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/express": {
+ "version": "4.17.25",
+ "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.25.tgz",
+ "integrity": "sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/body-parser": "*",
+ "@types/express-serve-static-core": "^4.17.33",
+ "@types/qs": "*",
+ "@types/serve-static": "^1"
+ }
+ },
+ "node_modules/@types/express-serve-static-core": {
+ "version": "4.19.7",
+ "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.7.tgz",
+ "integrity": "sha512-FvPtiIf1LfhzsaIXhv/PHan/2FeQBbtBDtfX2QfvPxdUelMDEckK08SM6nqo1MIZY3RUlfA+HV8+hFUSio78qg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*",
+ "@types/qs": "*",
+ "@types/range-parser": "*",
+ "@types/send": "*"
+ }
+ },
+ "node_modules/@types/http-errors": {
+ "version": "2.0.5",
+ "resolved": "https://registry.npmjs.org/@types/http-errors/-/http-errors-2.0.5.tgz",
+ "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/mime": {
+ "version": "1.3.5",
+ "resolved": "https://registry.npmjs.org/@types/mime/-/mime-1.3.5.tgz",
+ "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/node": {
+ "version": "20.19.25",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.25.tgz",
+ "integrity": "sha512-ZsJzA5thDQMSQO788d7IocwwQbI8B5OPzmqNvpf3NY/+MHDAS759Wo0gd2WQeXYt5AAAQjzcrTVC6SKCuYgoCQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "undici-types": "~6.21.0"
+ }
+ },
+ "node_modules/@types/qs": {
+ "version": "6.14.0",
+ "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.14.0.tgz",
+ "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/range-parser": {
+ "version": "1.2.7",
+ "resolved": "https://registry.npmjs.org/@types/range-parser/-/range-parser-1.2.7.tgz",
+ "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@types/send": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/@types/send/-/send-1.2.1.tgz",
+ "integrity": "sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
+ "node_modules/@types/serve-static": {
+ "version": "1.15.10",
+ "resolved": "https://registry.npmjs.org/@types/serve-static/-/serve-static-1.15.10.tgz",
+ "integrity": "sha512-tRs1dB+g8Itk72rlSI2ZrW6vZg0YrLI81iQSTkMmOqnqCaNr/8Ek4VwWcN5vZgCYWbg/JJSGBlUaYGAOP73qBw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/http-errors": "*",
+ "@types/node": "*",
+ "@types/send": "<1"
+ }
+ },
+ "node_modules/@types/serve-static/node_modules/@types/send": {
+ "version": "0.17.6",
+ "resolved": "https://registry.npmjs.org/@types/send/-/send-0.17.6.tgz",
+ "integrity": "sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@types/mime": "^1",
+ "@types/node": "*"
+ }
+ },
+ "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/body-parser": {
+ "version": "1.20.3",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz",
+ "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==",
+ "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.0",
+ "iconv-lite": "0.4.24",
+ "on-finished": "2.4.1",
+ "qs": "6.13.0",
+ "raw-body": "2.5.2",
+ "type-is": "~1.6.18",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "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/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.1",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz",
+ "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz",
+ "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==",
+ "license": "MIT"
+ },
+ "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/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/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/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/esbuild": {
+ "version": "0.25.12",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.12.tgz",
+ "integrity": "sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "bin": {
+ "esbuild": "bin/esbuild"
+ },
+ "engines": {
+ "node": ">=18"
+ },
+ "optionalDependencies": {
+ "@esbuild/aix-ppc64": "0.25.12",
+ "@esbuild/android-arm": "0.25.12",
+ "@esbuild/android-arm64": "0.25.12",
+ "@esbuild/android-x64": "0.25.12",
+ "@esbuild/darwin-arm64": "0.25.12",
+ "@esbuild/darwin-x64": "0.25.12",
+ "@esbuild/freebsd-arm64": "0.25.12",
+ "@esbuild/freebsd-x64": "0.25.12",
+ "@esbuild/linux-arm": "0.25.12",
+ "@esbuild/linux-arm64": "0.25.12",
+ "@esbuild/linux-ia32": "0.25.12",
+ "@esbuild/linux-loong64": "0.25.12",
+ "@esbuild/linux-mips64el": "0.25.12",
+ "@esbuild/linux-ppc64": "0.25.12",
+ "@esbuild/linux-riscv64": "0.25.12",
+ "@esbuild/linux-s390x": "0.25.12",
+ "@esbuild/linux-x64": "0.25.12",
+ "@esbuild/netbsd-arm64": "0.25.12",
+ "@esbuild/netbsd-x64": "0.25.12",
+ "@esbuild/openbsd-arm64": "0.25.12",
+ "@esbuild/openbsd-x64": "0.25.12",
+ "@esbuild/openharmony-arm64": "0.25.12",
+ "@esbuild/sunos-x64": "0.25.12",
+ "@esbuild/win32-arm64": "0.25.12",
+ "@esbuild/win32-ia32": "0.25.12",
+ "@esbuild/win32-x64": "0.25.12"
+ }
+ },
+ "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/express": {
+ "version": "4.21.2",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz",
+ "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==",
+ "license": "MIT",
+ "dependencies": {
+ "accepts": "~1.3.8",
+ "array-flatten": "1.1.1",
+ "body-parser": "1.20.3",
+ "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.13.0",
+ "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/finalhandler": {
+ "version": "1.3.1",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz",
+ "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==",
+ "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.1",
+ "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/fsevents": {
+ "version": "2.3.3",
+ "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",
+ "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",
+ "dev": true,
+ "hasInstallScript": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
+ }
+ },
+ "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/get-tsconfig": {
+ "version": "4.13.0",
+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.13.0.tgz",
+ "integrity": "sha512-1VKTZJCwBrvbd+Wn3AOgQP/2Av+TfTCOlE4AcRJE72W1ksZXbAx8PPBR9RzgTeSPzlPMHrbANMH3LbltH73wxQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "resolve-pkg-maps": "^1.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
+ }
+ },
+ "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.2",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
+ "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz",
+ "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "2.0.0",
+ "inherits": "2.0.4",
+ "setprototypeof": "1.2.0",
+ "statuses": "2.0.1",
+ "toidentifier": "1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "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/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/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/ms": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==",
+ "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/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/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.12",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz",
+ "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==",
+ "license": "MIT"
+ },
+ "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/qs": {
+ "version": "6.13.0",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz",
+ "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.0.6"
+ },
+ "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.2",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz",
+ "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "3.1.2",
+ "http-errors": "2.0.0",
+ "iconv-lite": "0.4.24",
+ "unpipe": "1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/resolve-pkg-maps": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
+ "dev": true,
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/privatenumber/resolve-pkg-maps?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/send": {
+ "version": "0.19.0",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz",
+ "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~1.0.2",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "0.5.2",
+ "http-errors": "2.0.0",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "2.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/encodeurl": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz",
+ "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "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.2",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz",
+ "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "0.19.0"
+ },
+ "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.0",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz",
+ "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3"
+ },
+ "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/statuses": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz",
+ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "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/tsx": {
+ "version": "4.20.6",
+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.20.6.tgz",
+ "integrity": "sha512-ytQKuwgmrrkDTFP4LjR0ToE2nqgy886GpvRSpU0JAnrdBYppuY5rLkRUYPU1yCryb24SsKBTL/hlDQAEFVwtZg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "esbuild": "~0.25.0",
+ "get-tsconfig": "^4.7.5"
+ },
+ "bin": {
+ "tsx": "dist/cli.mjs"
+ },
+ "engines": {
+ "node": ">=18.0.0"
+ },
+ "optionalDependencies": {
+ "fsevents": "~2.3.3"
+ }
+ },
+ "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-types": {
+ "version": "6.21.0",
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz",
+ "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "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/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/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"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..9f3535c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "project-portfolio-viewer",
+ "version": "1.0.0",
+ "description": "Beautiful web interface to browse and explore all projects",
+ "main": "portfolio-viewer.ts",
+ "scripts": {
+ "start": "tsx portfolio-viewer.ts",
+ "dev": "tsx watch portfolio-viewer.ts"
+ },
+ "dependencies": {
+ "express": "^4.18.2"
+ },
+ "devDependencies": {
+ "@types/express": "^4.17.17",
+ "@types/node": "^20.10.5",
+ "tsx": "^4.7.0"
+ }
+}
diff --git a/portfolio-viewer.ts b/portfolio-viewer.ts
new file mode 100644
index 0000000..a4dfc31
--- /dev/null
+++ b/portfolio-viewer.ts
@@ -0,0 +1,1133 @@
+/**
+ * Project Portfolio Viewer
+ *
+ * Beautiful web interface to browse and explore all projects
+ * Port: 7899
+ */
+
+import express from 'express';
+import { promises as fs } from 'fs';
+import path from 'path';
+
+const app = express();
+const PORT = 7899;
+const PROJECTS_DIR = '/root/Projects';
+
+interface ProjectInfo {
+ name: string;
+ path: string;
+ displayName: string;
+ description: string;
+ type: string;
+ lastModified: Date;
+ size: number;
+ hasPackageJson: boolean;
+ hasIndexHtml: boolean;
+ technology: string[];
+ port?: number;
+ url?: string;
+}
+
+app.use(express.json());
+
+// Scan projects and gather metadata
+async function scanProjects(): Promise<ProjectInfo[]> {
+ const projects: ProjectInfo[] = [];
+
+ try {
+ const entries = await fs.readdir(PROJECTS_DIR, { withFileTypes: true });
+
+ for (const entry of entries) {
+ if (!entry.isDirectory()) continue;
+ if (entry.name.startsWith('.')) continue;
+ if (entry.name === 'project-portfolio-viewer') continue;
+
+ const projectPath = path.join(PROJECTS_DIR, entry.name);
+ const stats = await fs.stat(projectPath);
+
+ const port = await detectPort(projectPath, entry.name);
+ const url = port ? `http://45.61.58.125:${port}` : undefined;
+
+ const projectInfo: ProjectInfo = {
+ name: entry.name,
+ path: projectPath,
+ displayName: entry.name.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' '),
+ description: await getProjectDescription(projectPath),
+ type: await getProjectType(projectPath),
+ lastModified: stats.mtime,
+ size: await getDirectorySize(projectPath),
+ hasPackageJson: await fileExists(path.join(projectPath, 'package.json')),
+ hasIndexHtml: await fileExists(path.join(projectPath, 'index.html')),
+ technology: await detectTechnology(projectPath),
+ port,
+ url
+ };
+
+ projects.push(projectInfo);
+ }
+
+ return projects.sort((a, b) => b.lastModified.getTime() - a.lastModified.getTime());
+ } catch (error) {
+ console.error('Error scanning projects:', error);
+ return [];
+ }
+}
+
+async function getProjectDescription(projectPath: string): Promise<string> {
+ const packageJsonPath = path.join(projectPath, 'package.json');
+ try {
+ const content = await fs.readFile(packageJsonPath, 'utf-8');
+ const pkg = JSON.parse(content);
+ return pkg.description || pkg.name || 'No description available';
+ } catch {
+ return 'No description available';
+ }
+}
+
+async function getProjectType(projectPath: string): Promise<string> {
+ const hasPackageJson = await fileExists(path.join(projectPath, 'package.json'));
+ const hasIndexHtml = await fileExists(path.join(projectPath, 'index.html'));
+ const hasApp = await fileExists(path.join(projectPath, 'app'));
+
+ if (hasApp && hasPackageJson) return 'Next.js App';
+ if (hasPackageJson) return 'Node.js Project';
+ if (hasIndexHtml) return 'Static Website';
+ return 'General Project';
+}
+
+async function detectTechnology(projectPath: string): Promise<string[]> {
+ const tech: string[] = [];
+ const packageJsonPath = path.join(projectPath, 'package.json');
+
+ try {
+ const content = await fs.readFile(packageJsonPath, 'utf-8');
+ const pkg = JSON.parse(content);
+ const deps = { ...pkg.dependencies, ...pkg.devDependencies };
+
+ if (deps['next']) tech.push('Next.js');
+ if (deps['react']) tech.push('React');
+ if (deps['vue']) tech.push('Vue');
+ if (deps['express']) tech.push('Express');
+ if (deps['typescript']) tech.push('TypeScript');
+ if (deps['@capacitor/core']) tech.push('Capacitor');
+ if (deps['tailwindcss']) tech.push('Tailwind');
+ } catch {}
+
+ return tech;
+}
+
+async function fileExists(filePath: string): Promise<boolean> {
+ try {
+ await fs.access(filePath);
+ return true;
+ } catch {
+ return false;
+ }
+}
+
+async function detectPort(projectPath: string, projectName: string): Promise<number | undefined> {
+ // Try package.json first
+ const packageJsonPath = path.join(projectPath, 'package.json');
+ try {
+ const content = await fs.readFile(packageJsonPath, 'utf-8');
+ const pkg = JSON.parse(content);
+
+ // Check for port in package.json
+ if (pkg.port) return pkg.port;
+ if (pkg.config?.port) return pkg.config.port;
+ } catch {}
+
+ // Try to find PORT in main files
+ const mainFiles = ['index.ts', 'server.ts', 'app.ts', 'index.js', 'server.js', 'app.js'];
+
+ for (const file of mainFiles) {
+ const filePath = path.join(projectPath, file);
+ try {
+ const content = await fs.readFile(filePath, 'utf-8');
+
+ // Look for PORT = NUMBER or .listen(NUMBER
+ const portMatch = content.match(/(?:PORT\s*=\s*|listen\((?:process\.env\.PORT\s*\|\|\s*)?)([\d]+)/);
+ if (portMatch && portMatch[1]) {
+ return parseInt(portMatch[1]);
+ }
+ } catch {}
+ }
+
+ return undefined;
+}
+
+async function getDirectorySize(dirPath: string): Promise<number> {
+ let size = 0;
+ try {
+ const entries = await fs.readdir(dirPath, { withFileTypes: true });
+ for (const entry of entries) {
+ const entryPath = path.join(dirPath, entry.name);
+ if (entry.name === 'node_modules') continue;
+ if (entry.name === '.next') continue;
+
+ if (entry.isDirectory()) {
+ size += await getDirectorySize(entryPath);
+ } else {
+ const stats = await fs.stat(entryPath);
+ size += stats.size;
+ }
+ }
+ } catch {}
+ return size;
+}
+
+function formatBytes(bytes: number): string {
+ if (bytes === 0) return '0 Bytes';
+ const k = 1024;
+ const sizes = ['Bytes', 'KB', 'MB', 'GB'];
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
+ return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + ' ' + sizes[i];
+}
+
+// API endpoint
+app.get('/api/projects', async (req, res) => {
+ const projects = await scanProjects();
+ res.json(projects);
+});
+
+// Main page
+app.get('/', async (req, res) => {
+ const projects = await scanProjects();
+
+ // Add cache-busting headers
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
+ res.setHeader('Pragma', 'no-cache');
+ res.setHeader('Expires', '0');
+ res.setHeader('Surrogate-Control', 'no-store');
+
+ const version = Date.now();
+
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
+ <meta http-equiv="Pragma" content="no-cache">
+ <meta http-equiv="Expires" content="0">
+ <title>Project Portfolio Viewer v2.0 - Mobile Optimized</title>
+ <style data-version="${version}">
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ min-height: 100vh;
+ padding: 20px;
+ }
+
+ .container {
+ max-width: 1400px;
+ margin: 0 auto;
+ }
+
+ .header {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 30px 20px;
+ border-radius: 15px;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
+ margin-bottom: 20px;
+ text-align: center;
+ }
+
+ .header h1 {
+ font-size: 3em;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ margin-bottom: 10px;
+ }
+
+ .header p {
+ color: #666;
+ font-size: 1.2em;
+ }
+
+ .stats {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
+ gap: 15px;
+ margin-bottom: 20px;
+ }
+
+ .stat-card {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 20px 15px;
+ border-radius: 12px;
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
+ text-align: center;
+ }
+
+ .stat-card .number {
+ font-size: 2.5em;
+ font-weight: bold;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ }
+
+ .stat-card .label {
+ color: #666;
+ margin-top: 10px;
+ font-size: 1em;
+ }
+
+ .filters {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 15px;
+ border-radius: 12px;
+ box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
+ margin-bottom: 20px;
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ align-items: center;
+ }
+
+ .filter-btn {
+ background: #f0f0f0;
+ border: 2px solid transparent;
+ padding: 8px 16px;
+ border-radius: 8px;
+ cursor: pointer;
+ font-weight: 600;
+ font-size: 0.9em;
+ transition: all 0.3s;
+ }
+
+ .filter-btn:hover {
+ background: #e0e0e0;
+ }
+
+ .filter-btn.active {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ }
+
+ .search-box {
+ flex: 1;
+ min-width: 250px;
+ }
+
+ .search-box input {
+ width: 100%;
+ padding: 12px 20px;
+ border: 2px solid #ddd;
+ border-radius: 8px;
+ font-size: 1em;
+ transition: all 0.3s;
+ }
+
+ .search-box input:focus {
+ outline: none;
+ border-color: #667eea;
+ }
+
+ .projects-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
+ gap: 25px;
+ margin-bottom: 40px;
+ }
+
+ .project-card {
+ background: rgba(255, 255, 255, 0.95);
+ border-radius: 20px;
+ overflow: hidden;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
+ transition: all 0.3s;
+ cursor: pointer;
+ }
+
+ .project-card:hover {
+ transform: translateY(-10px);
+ box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
+ }
+
+ .project-header {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ padding: 25px;
+ color: white;
+ }
+
+ .project-title {
+ font-size: 1.5em;
+ font-weight: bold;
+ margin-bottom: 8px;
+ }
+
+ .project-type {
+ background: rgba(255, 255, 255, 0.2);
+ display: inline-block;
+ padding: 5px 12px;
+ border-radius: 12px;
+ font-size: 0.85em;
+ }
+
+ .project-body {
+ padding: 25px;
+ }
+
+ .project-description {
+ color: #666;
+ margin-bottom: 20px;
+ line-height: 1.6;
+ }
+
+ .project-tech {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 20px;
+ }
+
+ .tech-badge {
+ background: #f0f0f0;
+ padding: 5px 12px;
+ border-radius: 12px;
+ font-size: 0.85em;
+ color: #667eea;
+ font-weight: 600;
+ }
+
+ .project-meta {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 15px;
+ padding-top: 15px;
+ border-top: 1px solid #eee;
+ }
+
+ .meta-item {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ color: #666;
+ font-size: 0.9em;
+ }
+
+ .project-actions {
+ display: flex;
+ gap: 10px;
+ margin-top: 20px;
+ }
+
+ .action-btn {
+ flex: 1;
+ padding: 12px;
+ border: none;
+ border-radius: 8px;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all 0.3s;
+ }
+
+ .btn-primary {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ }
+
+ .btn-primary:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
+ }
+
+ .btn-secondary {
+ background: #f0f0f0;
+ color: #333;
+ }
+
+ .btn-secondary:hover {
+ background: #e0e0e0;
+ }
+
+ @media (max-width: 768px) {
+ body {
+ padding: 4px;
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ }
+
+ .header {
+ padding: 8px 10px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ background: rgba(255, 255, 255, 0.98);
+ border-left: 4px solid #e74c3c;
+ }
+
+ .header h1 {
+ font-size: 1.2em;
+ margin-bottom: 2px;
+ color: #e74c3c;
+ }
+
+ .header h1::after {
+ content: " 📱";
+ font-size: 0.8em;
+ }
+
+ .header p {
+ font-size: 0.75em;
+ }
+
+ .stats {
+ grid-template-columns: repeat(2, 1fr);
+ gap: 4px;
+ margin-bottom: 8px;
+ }
+
+ .stat-card {
+ padding: 8px 4px;
+ background: rgba(255, 255, 255, 0.98);
+ }
+
+ .stat-card .number {
+ font-size: 1.4em;
+ color: #e74c3c;
+ font-weight: 700;
+ }
+
+ .stat-card .label {
+ font-size: 0.7em;
+ margin-top: 2px;
+ }
+
+ .filters {
+ padding: 8px;
+ gap: 4px;
+ margin-bottom: 8px;
+ display: block;
+ background: rgba(255, 255, 255, 0.98);
+ }
+
+ .filter-btn {
+ display: inline-block;
+ padding: 4px 8px;
+ font-size: 0.75em;
+ margin: 2px;
+ background: #e74c3c;
+ color: white;
+ border: 1px solid #c0392b;
+ }
+
+ .filter-btn.active {
+ background: #c0392b;
+ }
+
+ .search-box {
+ width: 100%;
+ margin-top: 8px;
+ min-width: 100%;
+ }
+
+ .search-box input {
+ width: 100%;
+ padding: 12px 15px;
+ font-size: 16px;
+ border-radius: 8px;
+ -webkit-appearance: none;
+ border: 2px solid #e74c3c;
+ background: white;
+ }
+
+ .search-box input:focus {
+ outline: none;
+ border-color: #c0392b;
+ box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
+ }
+
+ .projects-grid {
+ grid-template-columns: 1fr;
+ gap: 8px;
+ }
+
+ .project-card {
+ border-radius: 8px;
+ border: 2px solid rgba(231, 76, 60, 0.3);
+ }
+
+ .project-header {
+ padding: 10px;
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ }
+
+ .project-title {
+ font-size: 1.1em;
+ color: white;
+ }
+
+ .project-type {
+ font-size: 0.7em;
+ padding: 3px 6px;
+ background: rgba(255, 255, 255, 0.3);
+ color: white;
+ }
+
+ .project-body {
+ padding: 10px;
+ }
+
+ .project-description {
+ font-size: 0.85em;
+ margin-bottom: 12px;
+ }
+
+ .tech-badge {
+ font-size: 0.75em;
+ padding: 4px 10px;
+ }
+
+ .meta-item {
+ font-size: 0.8em;
+ }
+
+ .action-btn {
+ padding: 10px;
+ font-size: 0.9em;
+ }
+
+ .controls {
+ flex-direction: column;
+ width: 100%;
+ gap: 8px;
+ }
+
+ .btn {
+ width: 100%;
+ padding: 10px;
+ font-size: 0.9em;
+ }
+ }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <h1>🚀 Project Portfolio</h1>
+ <p>Browse and explore all your projects <small style="opacity: 0.6;">v${version}</small></p>
+ </div>
+
+ <div class="stats">
+ <div class="stat-card">
+ <div class="number">${projects.length}</div>
+ <div class="label">Total Projects</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter(p => p.type.includes('Next.js')).length}</div>
+ <div class="label">Next.js Apps</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter(p => p.hasPackageJson).length}</div>
+ <div class="label">Node Projects</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter(p => p.hasIndexHtml && !p.hasPackageJson).length}</div>
+ <div class="label">Static Sites</div>
+ </div>
+ </div>
+
+ <div class="filters">
+ <button class="filter-btn active" onclick="filterProjects('all')">All Projects</button>
+ <button class="filter-btn" onclick="filterProjects('nextjs')">Next.js</button>
+ <button class="filter-btn" onclick="filterProjects('nodejs')">Node.js</button>
+ <button class="filter-btn" onclick="filterProjects('static')">Static</button>
+ <div class="search-box">
+ <input type="text" id="searchInput" placeholder="🔍 Search projects..." oninput="searchProjects()">
+ </div>
+ </div>
+
+ <div class="projects-grid" id="projectsGrid">
+ ${projects.map(project => `
+ <div class="project-card" data-type="${project.type}" data-name="${project.name.toLowerCase()}">
+ <div class="project-header">
+ <div class="project-title">${project.displayName}</div>
+ <span class="project-type">${project.type}</span>
+ </div>
+ <div class="project-body">
+ <div class="project-description">${project.description}</div>
+ ${project.technology.length > 0 ? `
+ <div class="project-tech">
+ ${project.technology.map(tech => `<span class="tech-badge">${tech}</span>`).join('')}
+ </div>
+ ` : ''}
+ <div class="project-meta">
+ <div class="meta-item">
+ 📅 ${new Date(project.lastModified).toLocaleDateString()}
+ </div>
+ <div class="meta-item">
+ 💾 ${formatBytes(project.size)}
+ </div>
+ </div>
+ <div class="project-actions">
+ ${project.url ? `<button class="action-btn btn-primary" onclick="window.open('${project.url}', '_blank')">
+ 🚀 Open Project ${project.port ? `(Port ${project.port})` : ''}
+ </button>` : '<button class="action-btn" disabled style="opacity: 0.5;">No URL Found</button>'}
+ <button class="action-btn btn-secondary" onclick="viewDetails('${project.name}')">
+ Details
+ </button>
+ </div>
+ </div>
+ </div>
+ `).join('')}
+ </div>
+ </div>
+
+ <script>
+ function filterProjects(type) {
+ document.querySelectorAll('.filter-btn').forEach(btn => btn.classList.remove('active'));
+ event.target.classList.add('active');
+
+ const cards = document.querySelectorAll('.project-card');
+ cards.forEach(card => {
+ const cardType = card.dataset.type.toLowerCase();
+ if (type === 'all') {
+ card.style.display = 'block';
+ } else if (type === 'nextjs' && cardType.includes('next.js')) {
+ card.style.display = 'block';
+ } else if (type === 'nodejs' && cardType.includes('node.js')) {
+ card.style.display = 'block';
+ } else if (type === 'static' && cardType.includes('static')) {
+ card.style.display = 'block';
+ } else {
+ card.style.display = 'none';
+ }
+ });
+ }
+
+ function searchProjects() {
+ const searchTerm = document.getElementById('searchInput').value.toLowerCase();
+ const cards = document.querySelectorAll('.project-card');
+
+ cards.forEach(card => {
+ const name = card.dataset.name;
+ if (name.includes(searchTerm)) {
+ card.style.display = 'block';
+ } else {
+ card.style.display = 'none';
+ }
+ });
+ }
+
+ function viewDetails(name) {
+ window.location.href = '/project/' + name;
+ }
+ </script>
+</body>
+</html>
+ `);
+});
+
+// Individual project details page
+app.get('/project/:name', async (req, res) => {
+ const projectName = req.params.name;
+ const projects = await scanProjects();
+ const project = projects.find(p => p.name === projectName);
+
+ if (!project) {
+ res.status(404).send('Project not found');
+ return;
+ }
+
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>${project.displayName} - Project Details</title>
+ <style>
+ * { margin: 0; padding: 0; box-sizing: border-box; }
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ min-height: 100vh;
+ padding: 40px 20px;
+ }
+ .container {
+ max-width: 1000px;
+ margin: 0 auto;
+ background: rgba(255, 255, 255, 0.95);
+ border-radius: 20px;
+ padding: 40px;
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
+ }
+ .back-btn {
+ display: inline-block;
+ padding: 10px 20px;
+ background: #f0f0f0;
+ border-radius: 8px;
+ text-decoration: none;
+ color: #333;
+ margin-bottom: 30px;
+ transition: all 0.3s;
+ }
+ .back-btn:hover {
+ background: #e0e0e0;
+ }
+ h1 {
+ font-size: 2.5em;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ margin-bottom: 20px;
+ }
+ .detail-grid {
+ display: grid;
+ grid-template-columns: 200px 1fr;
+ gap: 20px;
+ margin-top: 30px;
+ }
+ .detail-label {
+ font-weight: bold;
+ color: #667eea;
+ }
+ .detail-value {
+ color: #666;
+ }
+ .tech-list {
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ }
+ .tech-badge {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ padding: 8px 16px;
+ border-radius: 12px;
+ font-weight: 600;
+ }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <a href="/" class="back-btn">← Back to Projects</a>
+ <h1>${project.displayName}</h1>
+ <div class="detail-grid">
+ <div class="detail-label">Project Name:</div>
+ <div class="detail-value">${project.name}</div>
+
+ <div class="detail-label">Type:</div>
+ <div class="detail-value">${project.type}</div>
+
+ <div class="detail-label">Description:</div>
+ <div class="detail-value">${project.description}</div>
+
+ <div class="detail-label">Path:</div>
+ <div class="detail-value">${project.path}</div>
+
+ <div class="detail-label">Last Modified:</div>
+ <div class="detail-value">${new Date(project.lastModified).toLocaleString()}</div>
+
+ <div class="detail-label">Size:</div>
+ <div class="detail-value">${formatBytes(project.size)}</div>
+
+ <div class="detail-label">Technologies:</div>
+ <div class="tech-list">
+ ${project.technology.length > 0
+ ? project.technology.map(tech => `<span class="tech-badge">${tech}</span>`).join('')
+ : '<span class="detail-value">None detected</span>'}
+ </div>
+
+ <div class="detail-label">Has package.json:</div>
+ <div class="detail-value">${project.hasPackageJson ? '✅ Yes' : '❌ No'}</div>
+
+ <div class="detail-label">Has index.html:</div>
+ <div class="detail-value">${project.hasIndexHtml ? '✅ Yes' : '❌ No'}</div>
+ </div>
+ </div>
+</body>
+</html>
+ `);
+});
+
+// Health check
+// Mobile-specific endpoint - NEW URL to bypass cache completely
+app.get('/mobile', async (req, res) => {
+ const projects = await scanProjects();
+
+ // Add cache-busting headers
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
+ res.setHeader('Pragma', 'no-cache');
+ res.setHeader('Expires', '0');
+ res.setHeader('Surrogate-Control', 'no-store');
+
+ const version = Date.now();
+
+ // Force mobile view by directly applying mobile styles (no media query)
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <title>Project Portfolio - Mobile View v${version}</title>
+ <style>
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ min-height: 100vh;
+ padding: 4px;
+ }
+
+ .header {
+ background: rgba(255, 255, 255, 0.98);
+ padding: 8px 10px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ border-left: 4px solid #e74c3c;
+ text-align: center;
+ }
+
+ .header h1 {
+ font-size: 1.2em;
+ margin-bottom: 2px;
+ color: #e74c3c;
+ }
+
+ .header p {
+ font-size: 0.75em;
+ color: #666;
+ }
+
+ .notice {
+ background: #fff3cd;
+ border: 2px solid #ffc107;
+ padding: 12px;
+ margin-bottom: 10px;
+ border-radius: 8px;
+ text-align: center;
+ font-size: 0.9em;
+ }
+
+ .stats {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 4px;
+ margin-bottom: 8px;
+ }
+
+ .stat-card {
+ background: rgba(255, 255, 255, 0.98);
+ padding: 8px 4px;
+ border-radius: 8px;
+ text-align: center;
+ }
+
+ .stat-card .number {
+ font-size: 1.4em;
+ font-weight: 700;
+ color: #e74c3c;
+ }
+
+ .stat-card .label {
+ font-size: 0.7em;
+ color: #666;
+ margin-top: 2px;
+ }
+
+ .filters {
+ background: rgba(255, 255, 255, 0.98);
+ padding: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ }
+
+ .filter-btn {
+ display: inline-block;
+ padding: 4px 8px;
+ margin: 2px;
+ background: #e74c3c;
+ color: white;
+ border: 1px solid #c0392b;
+ border-radius: 6px;
+ cursor: pointer;
+ font-size: 0.75em;
+ }
+
+ .filter-btn.active {
+ background: #c0392b;
+ }
+
+ .search-box {
+ width: 100%;
+ margin-top: 8px;
+ }
+
+ .search-box input {
+ width: 100%;
+ padding: 12px 15px;
+ font-size: 16px;
+ border: 2px solid #e74c3c;
+ border-radius: 8px;
+ background: white;
+ }
+
+ .projects-grid {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 8px;
+ }
+
+ .project-card {
+ background: white;
+ border-radius: 8px;
+ overflow: hidden;
+ border: 2px solid rgba(231, 76, 60, 0.3);
+ }
+
+ .project-header {
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ padding: 10px;
+ color: white;
+ }
+
+ .project-title {
+ font-size: 1.1em;
+ font-weight: 600;
+ margin-bottom: 4px;
+ }
+
+ .project-type {
+ display: inline-block;
+ background: rgba(255, 255, 255, 0.3);
+ padding: 3px 6px;
+ border-radius: 4px;
+ font-size: 0.7em;
+ }
+
+ .project-body {
+ padding: 10px;
+ }
+
+ .project-description {
+ font-size: 0.85em;
+ color: #666;
+ margin-bottom: 8px;
+ }
+
+ .tech-badges {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ margin-bottom: 8px;
+ }
+
+ .tech-badge {
+ background: #f0f0f0;
+ padding: 3px 8px;
+ border-radius: 4px;
+ font-size: 0.7em;
+ }
+
+ .project-meta {
+ font-size: 0.75em;
+ color: #999;
+ margin-bottom: 8px;
+ }
+
+ .action-btn {
+ background: #e74c3c;
+ color: white;
+ padding: 10px;
+ border-radius: 6px;
+ text-align: center;
+ font-size: 0.9em;
+ font-weight: 600;
+ }
+ </style>
+</head>
+<body>
+ <div class="header">
+ <h1>📱 Project Portfolio MOBILE</h1>
+ <p>v${version}</p>
+ </div>
+
+ <div class="notice">
+ 🎯 This is the MOBILE-OPTIMIZED view with RED theme
+ </div>
+
+ <div class="stats">
+ <div class="stat-card">
+ <div class="number">${projects.length}</div>
+ <div class="label">Total Projects</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter((p: any) => p.hasPackageJson).length}</div>
+ <div class="label">Node.js Apps</div>
+ </div>
+ </div>
+
+ <div class="filters">
+ <button class="filter-btn active">All</button>
+ <button class="filter-btn">Node.js</button>
+ <button class="filter-btn">HTML</button>
+ <div class="search-box">
+ <input type="text" placeholder="Search projects...">
+ </div>
+ </div>
+
+ <div class="projects-grid">
+ ${projects.slice(0, 5).map((p: any) => `
+ <div class="project-card">
+ <div class="project-header">
+ <div class="project-title">${p.displayName}</div>
+ <span class="project-type">${p.type}</span>
+ </div>
+ <div class="project-body">
+ <div class="project-description">${p.description || 'No description'}</div>
+ <div class="tech-badges">
+ ${p.technology.map((t: string) => `<span class="tech-badge">${t}</span>`).join('')}
+ </div>
+ <div class="project-meta">
+ Last modified: ${new Date(p.lastModified).toLocaleDateString()}
+ </div>
+ <div class="action-btn">View Details</div>
+ </div>
+ </div>
+ `).join('')}
+ </div>
+
+ <div class="notice" style="margin-top: 10px;">
+ If you see RED background and this notice, the mobile view is working! ✅
+ </div>
+</body>
+</html>
+ `);
+});
+
+app.get('/api/health', (req, res) => {
+ res.json({
+ status: 'online',
+ port: PORT,
+ uptime: process.uptime(),
+ projectsDir: PROJECTS_DIR
+ });
+});
+
+app.listen(PORT, '127.0.0.1', () => {
+ console.log('');
+ console.log('🚀 Project Portfolio Viewer');
+ console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
+ console.log(`🌍 External: http://45.61.58.125:${PORT}`);
+ console.log(`🏠 Local: http://localhost:${PORT}`);
+ console.log('');
+ console.log(`📁 Projects Directory: ${PROJECTS_DIR}`);
+ console.log('✅ Portfolio viewer ready...');
+ console.log('');
+});
diff --git a/portfolio-viewer.ts.backup b/portfolio-viewer.ts.backup
new file mode 100644
index 0000000..bcee478
--- /dev/null
+++ b/portfolio-viewer.ts.backup
@@ -0,0 +1,1133 @@
+/**
+ * Project Portfolio Viewer
+ *
+ * Beautiful web interface to browse and explore all projects
+ * Port: 7899
+ */
+
+import express from 'express';
+import { promises as fs } from 'fs';
+import path from 'path';
+
+const app = express();
+const PORT = 7899;
+const PROJECTS_DIR = '/root/Projects';
+
+interface ProjectInfo {
+ name: string;
+ path: string;
+ displayName: string;
+ description: string;
+ type: string;
+ lastModified: Date;
+ size: number;
+ hasPackageJson: boolean;
+ hasIndexHtml: boolean;
+ technology: string[];
+ port?: number;
+ url?: string;
+}
+
+app.use(express.json());
+
+// Scan projects and gather metadata
+async function scanProjects(): Promise<ProjectInfo[]> {
+ const projects: ProjectInfo[] = [];
+
+ try {
+ const entries = await fs.readdir(PROJECTS_DIR, { withFileTypes: true });
+
+ for (const entry of entries) {
+ if (!entry.isDirectory()) continue;
+ if (entry.name.startsWith('.')) continue;
+ if (entry.name === 'project-portfolio-viewer') continue;
+
+ const projectPath = path.join(PROJECTS_DIR, entry.name);
+ const stats = await fs.stat(projectPath);
+
+ const port = await detectPort(projectPath, entry.name);
+ const url = port ? `http://45.61.58.125:${port}` : undefined;
+
+ const projectInfo: ProjectInfo = {
+ name: entry.name,
+ path: projectPath,
+ displayName: entry.name.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' '),
+ description: await getProjectDescription(projectPath),
+ type: await getProjectType(projectPath),
+ lastModified: stats.mtime,
+ size: await getDirectorySize(projectPath),
+ hasPackageJson: await fileExists(path.join(projectPath, 'package.json')),
+ hasIndexHtml: await fileExists(path.join(projectPath, 'index.html')),
+ technology: await detectTechnology(projectPath),
+ port,
+ url
+ };
+
+ projects.push(projectInfo);
+ }
+
+ return projects.sort((a, b) => b.lastModified.getTime() - a.lastModified.getTime());
+ } catch (error) {
+ console.error('Error scanning projects:', error);
+ return [];
+ }
+}
+
+async function getProjectDescription(projectPath: string): Promise<string> {
+ const packageJsonPath = path.join(projectPath, 'package.json');
+ try {
+ const content = await fs.readFile(packageJsonPath, 'utf-8');
+ const pkg = JSON.parse(content);
+ return pkg.description || pkg.name || 'No description available';
+ } catch {
+ return 'No description available';
+ }
+}
+
+async function getProjectType(projectPath: string): Promise<string> {
+ const hasPackageJson = await fileExists(path.join(projectPath, 'package.json'));
+ const hasIndexHtml = await fileExists(path.join(projectPath, 'index.html'));
+ const hasApp = await fileExists(path.join(projectPath, 'app'));
+
+ if (hasApp && hasPackageJson) return 'Next.js App';
+ if (hasPackageJson) return 'Node.js Project';
+ if (hasIndexHtml) return 'Static Website';
+ return 'General Project';
+}
+
+async function detectTechnology(projectPath: string): Promise<string[]> {
+ const tech: string[] = [];
+ const packageJsonPath = path.join(projectPath, 'package.json');
+
+ try {
+ const content = await fs.readFile(packageJsonPath, 'utf-8');
+ const pkg = JSON.parse(content);
+ const deps = { ...pkg.dependencies, ...pkg.devDependencies };
+
+ if (deps['next']) tech.push('Next.js');
+ if (deps['react']) tech.push('React');
+ if (deps['vue']) tech.push('Vue');
+ if (deps['express']) tech.push('Express');
+ if (deps['typescript']) tech.push('TypeScript');
+ if (deps['@capacitor/core']) tech.push('Capacitor');
+ if (deps['tailwindcss']) tech.push('Tailwind');
+ } catch {}
+
+ return tech;
+}
+
+async function fileExists(filePath: string): Promise<boolean> {
+ try {
+ await fs.access(filePath);
+ return true;
+ } catch {
+ return false;
+ }
+}
+
+async function detectPort(projectPath: string, projectName: string): Promise<number | undefined> {
+ // Try package.json first
+ const packageJsonPath = path.join(projectPath, 'package.json');
+ try {
+ const content = await fs.readFile(packageJsonPath, 'utf-8');
+ const pkg = JSON.parse(content);
+
+ // Check for port in package.json
+ if (pkg.port) return pkg.port;
+ if (pkg.config?.port) return pkg.config.port;
+ } catch {}
+
+ // Try to find PORT in main files
+ const mainFiles = ['index.ts', 'server.ts', 'app.ts', 'index.js', 'server.js', 'app.js'];
+
+ for (const file of mainFiles) {
+ const filePath = path.join(projectPath, file);
+ try {
+ const content = await fs.readFile(filePath, 'utf-8');
+
+ // Look for PORT = NUMBER or .listen(NUMBER
+ const portMatch = content.match(/(?:PORT\s*=\s*|listen\((?:process\.env\.PORT\s*\|\|\s*)?)([\d]+)/);
+ if (portMatch && portMatch[1]) {
+ return parseInt(portMatch[1]);
+ }
+ } catch {}
+ }
+
+ return undefined;
+}
+
+async function getDirectorySize(dirPath: string): Promise<number> {
+ let size = 0;
+ try {
+ const entries = await fs.readdir(dirPath, { withFileTypes: true });
+ for (const entry of entries) {
+ const entryPath = path.join(dirPath, entry.name);
+ if (entry.name === 'node_modules') continue;
+ if (entry.name === '.next') continue;
+
+ if (entry.isDirectory()) {
+ size += await getDirectorySize(entryPath);
+ } else {
+ const stats = await fs.stat(entryPath);
+ size += stats.size;
+ }
+ }
+ } catch {}
+ return size;
+}
+
+function formatBytes(bytes: number): string {
+ if (bytes === 0) return '0 Bytes';
+ const k = 1024;
+ const sizes = ['Bytes', 'KB', 'MB', 'GB'];
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
+ return Math.round((bytes / Math.pow(k, i)) * 100) / 100 + ' ' + sizes[i];
+}
+
+// API endpoint
+app.get('/api/projects', async (req, res) => {
+ const projects = await scanProjects();
+ res.json(projects);
+});
+
+// Main page
+app.get('/', async (req, res) => {
+ const projects = await scanProjects();
+
+ // Add cache-busting headers
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
+ res.setHeader('Pragma', 'no-cache');
+ res.setHeader('Expires', '0');
+ res.setHeader('Surrogate-Control', 'no-store');
+
+ const version = Date.now();
+
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
+ <meta http-equiv="Pragma" content="no-cache">
+ <meta http-equiv="Expires" content="0">
+ <title>Project Portfolio Viewer v2.0 - Mobile Optimized</title>
+ <style data-version="${version}">
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ min-height: 100vh;
+ padding: 20px;
+ }
+
+ .container {
+ max-width: 1400px;
+ margin: 0 auto;
+ }
+
+ .header {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 30px 20px;
+ border-radius: 15px;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
+ margin-bottom: 20px;
+ text-align: center;
+ }
+
+ .header h1 {
+ font-size: 3em;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ margin-bottom: 10px;
+ }
+
+ .header p {
+ color: #666;
+ font-size: 1.2em;
+ }
+
+ .stats {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
+ gap: 15px;
+ margin-bottom: 20px;
+ }
+
+ .stat-card {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 20px 15px;
+ border-radius: 12px;
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
+ text-align: center;
+ }
+
+ .stat-card .number {
+ font-size: 2.5em;
+ font-weight: bold;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ }
+
+ .stat-card .label {
+ color: #666;
+ margin-top: 10px;
+ font-size: 1em;
+ }
+
+ .filters {
+ background: rgba(255, 255, 255, 0.95);
+ padding: 15px;
+ border-radius: 12px;
+ box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
+ margin-bottom: 20px;
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ align-items: center;
+ }
+
+ .filter-btn {
+ background: #f0f0f0;
+ border: 2px solid transparent;
+ padding: 8px 16px;
+ border-radius: 8px;
+ cursor: pointer;
+ font-weight: 600;
+ font-size: 0.9em;
+ transition: all 0.3s;
+ }
+
+ .filter-btn:hover {
+ background: #e0e0e0;
+ }
+
+ .filter-btn.active {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ }
+
+ .search-box {
+ flex: 1;
+ min-width: 250px;
+ }
+
+ .search-box input {
+ width: 100%;
+ padding: 12px 20px;
+ border: 2px solid #ddd;
+ border-radius: 8px;
+ font-size: 1em;
+ transition: all 0.3s;
+ }
+
+ .search-box input:focus {
+ outline: none;
+ border-color: #667eea;
+ }
+
+ .projects-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
+ gap: 25px;
+ margin-bottom: 40px;
+ }
+
+ .project-card {
+ background: rgba(255, 255, 255, 0.95);
+ border-radius: 20px;
+ overflow: hidden;
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
+ transition: all 0.3s;
+ cursor: pointer;
+ }
+
+ .project-card:hover {
+ transform: translateY(-10px);
+ box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
+ }
+
+ .project-header {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ padding: 25px;
+ color: white;
+ }
+
+ .project-title {
+ font-size: 1.5em;
+ font-weight: bold;
+ margin-bottom: 8px;
+ }
+
+ .project-type {
+ background: rgba(255, 255, 255, 0.2);
+ display: inline-block;
+ padding: 5px 12px;
+ border-radius: 12px;
+ font-size: 0.85em;
+ }
+
+ .project-body {
+ padding: 25px;
+ }
+
+ .project-description {
+ color: #666;
+ margin-bottom: 20px;
+ line-height: 1.6;
+ }
+
+ .project-tech {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin-bottom: 20px;
+ }
+
+ .tech-badge {
+ background: #f0f0f0;
+ padding: 5px 12px;
+ border-radius: 12px;
+ font-size: 0.85em;
+ color: #667eea;
+ font-weight: 600;
+ }
+
+ .project-meta {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 15px;
+ padding-top: 15px;
+ border-top: 1px solid #eee;
+ }
+
+ .meta-item {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ color: #666;
+ font-size: 0.9em;
+ }
+
+ .project-actions {
+ display: flex;
+ gap: 10px;
+ margin-top: 20px;
+ }
+
+ .action-btn {
+ flex: 1;
+ padding: 12px;
+ border: none;
+ border-radius: 8px;
+ font-weight: 600;
+ cursor: pointer;
+ transition: all 0.3s;
+ }
+
+ .btn-primary {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ }
+
+ .btn-primary:hover {
+ transform: translateY(-2px);
+ box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
+ }
+
+ .btn-secondary {
+ background: #f0f0f0;
+ color: #333;
+ }
+
+ .btn-secondary:hover {
+ background: #e0e0e0;
+ }
+
+ @media (max-width: 768px) {
+ body {
+ padding: 4px;
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ }
+
+ .header {
+ padding: 8px 10px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ background: rgba(255, 255, 255, 0.98);
+ border-left: 4px solid #e74c3c;
+ }
+
+ .header h1 {
+ font-size: 1.2em;
+ margin-bottom: 2px;
+ color: #e74c3c;
+ }
+
+ .header h1::after {
+ content: " 📱";
+ font-size: 0.8em;
+ }
+
+ .header p {
+ font-size: 0.75em;
+ }
+
+ .stats {
+ grid-template-columns: repeat(2, 1fr);
+ gap: 4px;
+ margin-bottom: 8px;
+ }
+
+ .stat-card {
+ padding: 8px 4px;
+ background: rgba(255, 255, 255, 0.98);
+ }
+
+ .stat-card .number {
+ font-size: 1.4em;
+ color: #e74c3c;
+ font-weight: 700;
+ }
+
+ .stat-card .label {
+ font-size: 0.7em;
+ margin-top: 2px;
+ }
+
+ .filters {
+ padding: 8px;
+ gap: 4px;
+ margin-bottom: 8px;
+ display: block;
+ background: rgba(255, 255, 255, 0.98);
+ }
+
+ .filter-btn {
+ display: inline-block;
+ padding: 4px 8px;
+ font-size: 0.75em;
+ margin: 2px;
+ background: #e74c3c;
+ color: white;
+ border: 1px solid #c0392b;
+ }
+
+ .filter-btn.active {
+ background: #c0392b;
+ }
+
+ .search-box {
+ width: 100%;
+ margin-top: 8px;
+ min-width: 100%;
+ }
+
+ .search-box input {
+ width: 100%;
+ padding: 12px 15px;
+ font-size: 16px;
+ border-radius: 8px;
+ -webkit-appearance: none;
+ border: 2px solid #e74c3c;
+ background: white;
+ }
+
+ .search-box input:focus {
+ outline: none;
+ border-color: #c0392b;
+ box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
+ }
+
+ .projects-grid {
+ grid-template-columns: 1fr;
+ gap: 8px;
+ }
+
+ .project-card {
+ border-radius: 8px;
+ border: 2px solid rgba(231, 76, 60, 0.3);
+ }
+
+ .project-header {
+ padding: 10px;
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ }
+
+ .project-title {
+ font-size: 1.1em;
+ color: white;
+ }
+
+ .project-type {
+ font-size: 0.7em;
+ padding: 3px 6px;
+ background: rgba(255, 255, 255, 0.3);
+ color: white;
+ }
+
+ .project-body {
+ padding: 10px;
+ }
+
+ .project-description {
+ font-size: 0.85em;
+ margin-bottom: 12px;
+ }
+
+ .tech-badge {
+ font-size: 0.75em;
+ padding: 4px 10px;
+ }
+
+ .meta-item {
+ font-size: 0.8em;
+ }
+
+ .action-btn {
+ padding: 10px;
+ font-size: 0.9em;
+ }
+
+ .controls {
+ flex-direction: column;
+ width: 100%;
+ gap: 8px;
+ }
+
+ .btn {
+ width: 100%;
+ padding: 10px;
+ font-size: 0.9em;
+ }
+ }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <div class="header">
+ <h1>🚀 Project Portfolio</h1>
+ <p>Browse and explore all your projects <small style="opacity: 0.6;">v${version}</small></p>
+ </div>
+
+ <div class="stats">
+ <div class="stat-card">
+ <div class="number">${projects.length}</div>
+ <div class="label">Total Projects</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter(p => p.type.includes('Next.js')).length}</div>
+ <div class="label">Next.js Apps</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter(p => p.hasPackageJson).length}</div>
+ <div class="label">Node Projects</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter(p => p.hasIndexHtml && !p.hasPackageJson).length}</div>
+ <div class="label">Static Sites</div>
+ </div>
+ </div>
+
+ <div class="filters">
+ <button class="filter-btn active" onclick="filterProjects('all')">All Projects</button>
+ <button class="filter-btn" onclick="filterProjects('nextjs')">Next.js</button>
+ <button class="filter-btn" onclick="filterProjects('nodejs')">Node.js</button>
+ <button class="filter-btn" onclick="filterProjects('static')">Static</button>
+ <div class="search-box">
+ <input type="text" id="searchInput" placeholder="🔍 Search projects..." oninput="searchProjects()">
+ </div>
+ </div>
+
+ <div class="projects-grid" id="projectsGrid">
+ ${projects.map(project => `
+ <div class="project-card" data-type="${project.type}" data-name="${project.name.toLowerCase()}">
+ <div class="project-header">
+ <div class="project-title">${project.displayName}</div>
+ <span class="project-type">${project.type}</span>
+ </div>
+ <div class="project-body">
+ <div class="project-description">${project.description}</div>
+ ${project.technology.length > 0 ? `
+ <div class="project-tech">
+ ${project.technology.map(tech => `<span class="tech-badge">${tech}</span>`).join('')}
+ </div>
+ ` : ''}
+ <div class="project-meta">
+ <div class="meta-item">
+ 📅 ${new Date(project.lastModified).toLocaleDateString()}
+ </div>
+ <div class="meta-item">
+ 💾 ${formatBytes(project.size)}
+ </div>
+ </div>
+ <div class="project-actions">
+ ${project.url ? `<button class="action-btn btn-primary" onclick="window.open('${project.url}', '_blank')">
+ 🚀 Open Project ${project.port ? `(Port ${project.port})` : ''}
+ </button>` : '<button class="action-btn" disabled style="opacity: 0.5;">No URL Found</button>'}
+ <button class="action-btn btn-secondary" onclick="viewDetails('${project.name}')">
+ Details
+ </button>
+ </div>
+ </div>
+ </div>
+ `).join('')}
+ </div>
+ </div>
+
+ <script>
+ function filterProjects(type) {
+ document.querySelectorAll('.filter-btn').forEach(btn => btn.classList.remove('active'));
+ event.target.classList.add('active');
+
+ const cards = document.querySelectorAll('.project-card');
+ cards.forEach(card => {
+ const cardType = card.dataset.type.toLowerCase();
+ if (type === 'all') {
+ card.style.display = 'block';
+ } else if (type === 'nextjs' && cardType.includes('next.js')) {
+ card.style.display = 'block';
+ } else if (type === 'nodejs' && cardType.includes('node.js')) {
+ card.style.display = 'block';
+ } else if (type === 'static' && cardType.includes('static')) {
+ card.style.display = 'block';
+ } else {
+ card.style.display = 'none';
+ }
+ });
+ }
+
+ function searchProjects() {
+ const searchTerm = document.getElementById('searchInput').value.toLowerCase();
+ const cards = document.querySelectorAll('.project-card');
+
+ cards.forEach(card => {
+ const name = card.dataset.name;
+ if (name.includes(searchTerm)) {
+ card.style.display = 'block';
+ } else {
+ card.style.display = 'none';
+ }
+ });
+ }
+
+ function viewDetails(name) {
+ window.location.href = '/project/' + name;
+ }
+ </script>
+</body>
+</html>
+ `);
+});
+
+// Individual project details page
+app.get('/project/:name', async (req, res) => {
+ const projectName = req.params.name;
+ const projects = await scanProjects();
+ const project = projects.find(p => p.name === projectName);
+
+ if (!project) {
+ res.status(404).send('Project not found');
+ return;
+ }
+
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>${project.displayName} - Project Details</title>
+ <style>
+ * { margin: 0; padding: 0; box-sizing: border-box; }
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ min-height: 100vh;
+ padding: 40px 20px;
+ }
+ .container {
+ max-width: 1000px;
+ margin: 0 auto;
+ background: rgba(255, 255, 255, 0.95);
+ border-radius: 20px;
+ padding: 40px;
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
+ }
+ .back-btn {
+ display: inline-block;
+ padding: 10px 20px;
+ background: #f0f0f0;
+ border-radius: 8px;
+ text-decoration: none;
+ color: #333;
+ margin-bottom: 30px;
+ transition: all 0.3s;
+ }
+ .back-btn:hover {
+ background: #e0e0e0;
+ }
+ h1 {
+ font-size: 2.5em;
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ -webkit-background-clip: text;
+ -webkit-text-fill-color: transparent;
+ margin-bottom: 20px;
+ }
+ .detail-grid {
+ display: grid;
+ grid-template-columns: 200px 1fr;
+ gap: 20px;
+ margin-top: 30px;
+ }
+ .detail-label {
+ font-weight: bold;
+ color: #667eea;
+ }
+ .detail-value {
+ color: #666;
+ }
+ .tech-list {
+ display: flex;
+ gap: 10px;
+ flex-wrap: wrap;
+ }
+ .tech-badge {
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
+ color: white;
+ padding: 8px 16px;
+ border-radius: 12px;
+ font-weight: 600;
+ }
+ </style>
+</head>
+<body>
+ <div class="container">
+ <a href="/" class="back-btn">← Back to Projects</a>
+ <h1>${project.displayName}</h1>
+ <div class="detail-grid">
+ <div class="detail-label">Project Name:</div>
+ <div class="detail-value">${project.name}</div>
+
+ <div class="detail-label">Type:</div>
+ <div class="detail-value">${project.type}</div>
+
+ <div class="detail-label">Description:</div>
+ <div class="detail-value">${project.description}</div>
+
+ <div class="detail-label">Path:</div>
+ <div class="detail-value">${project.path}</div>
+
+ <div class="detail-label">Last Modified:</div>
+ <div class="detail-value">${new Date(project.lastModified).toLocaleString()}</div>
+
+ <div class="detail-label">Size:</div>
+ <div class="detail-value">${formatBytes(project.size)}</div>
+
+ <div class="detail-label">Technologies:</div>
+ <div class="tech-list">
+ ${project.technology.length > 0
+ ? project.technology.map(tech => `<span class="tech-badge">${tech}</span>`).join('')
+ : '<span class="detail-value">None detected</span>'}
+ </div>
+
+ <div class="detail-label">Has package.json:</div>
+ <div class="detail-value">${project.hasPackageJson ? '✅ Yes' : '❌ No'}</div>
+
+ <div class="detail-label">Has index.html:</div>
+ <div class="detail-value">${project.hasIndexHtml ? '✅ Yes' : '❌ No'}</div>
+ </div>
+ </div>
+</body>
+</html>
+ `);
+});
+
+// Health check
+// Mobile-specific endpoint - NEW URL to bypass cache completely
+app.get('/mobile', async (req, res) => {
+ const projects = await scanProjects();
+
+ // Add cache-busting headers
+ res.setHeader('Cache-Control', 'no-store, no-cache, must-revalidate, proxy-revalidate');
+ res.setHeader('Pragma', 'no-cache');
+ res.setHeader('Expires', '0');
+ res.setHeader('Surrogate-Control', 'no-store');
+
+ const version = Date.now();
+
+ // Force mobile view by directly applying mobile styles (no media query)
+ res.send(`
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <title>Project Portfolio - Mobile View v${version}</title>
+ <style>
+ * {
+ margin: 0;
+ padding: 0;
+ box-sizing: border-box;
+ }
+
+ body {
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ min-height: 100vh;
+ padding: 4px;
+ }
+
+ .header {
+ background: rgba(255, 255, 255, 0.98);
+ padding: 8px 10px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ border-left: 4px solid #e74c3c;
+ text-align: center;
+ }
+
+ .header h1 {
+ font-size: 1.2em;
+ margin-bottom: 2px;
+ color: #e74c3c;
+ }
+
+ .header p {
+ font-size: 0.75em;
+ color: #666;
+ }
+
+ .notice {
+ background: #fff3cd;
+ border: 2px solid #ffc107;
+ padding: 12px;
+ margin-bottom: 10px;
+ border-radius: 8px;
+ text-align: center;
+ font-size: 0.9em;
+ }
+
+ .stats {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 4px;
+ margin-bottom: 8px;
+ }
+
+ .stat-card {
+ background: rgba(255, 255, 255, 0.98);
+ padding: 8px 4px;
+ border-radius: 8px;
+ text-align: center;
+ }
+
+ .stat-card .number {
+ font-size: 1.4em;
+ font-weight: 700;
+ color: #e74c3c;
+ }
+
+ .stat-card .label {
+ font-size: 0.7em;
+ color: #666;
+ margin-top: 2px;
+ }
+
+ .filters {
+ background: rgba(255, 255, 255, 0.98);
+ padding: 8px;
+ margin-bottom: 8px;
+ border-radius: 8px;
+ }
+
+ .filter-btn {
+ display: inline-block;
+ padding: 4px 8px;
+ margin: 2px;
+ background: #e74c3c;
+ color: white;
+ border: 1px solid #c0392b;
+ border-radius: 6px;
+ cursor: pointer;
+ font-size: 0.75em;
+ }
+
+ .filter-btn.active {
+ background: #c0392b;
+ }
+
+ .search-box {
+ width: 100%;
+ margin-top: 8px;
+ }
+
+ .search-box input {
+ width: 100%;
+ padding: 12px 15px;
+ font-size: 16px;
+ border: 2px solid #e74c3c;
+ border-radius: 8px;
+ background: white;
+ }
+
+ .projects-grid {
+ display: grid;
+ grid-template-columns: 1fr;
+ gap: 8px;
+ }
+
+ .project-card {
+ background: white;
+ border-radius: 8px;
+ overflow: hidden;
+ border: 2px solid rgba(231, 76, 60, 0.3);
+ }
+
+ .project-header {
+ background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
+ padding: 10px;
+ color: white;
+ }
+
+ .project-title {
+ font-size: 1.1em;
+ font-weight: 600;
+ margin-bottom: 4px;
+ }
+
+ .project-type {
+ display: inline-block;
+ background: rgba(255, 255, 255, 0.3);
+ padding: 3px 6px;
+ border-radius: 4px;
+ font-size: 0.7em;
+ }
+
+ .project-body {
+ padding: 10px;
+ }
+
+ .project-description {
+ font-size: 0.85em;
+ color: #666;
+ margin-bottom: 8px;
+ }
+
+ .tech-badges {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 4px;
+ margin-bottom: 8px;
+ }
+
+ .tech-badge {
+ background: #f0f0f0;
+ padding: 3px 8px;
+ border-radius: 4px;
+ font-size: 0.7em;
+ }
+
+ .project-meta {
+ font-size: 0.75em;
+ color: #999;
+ margin-bottom: 8px;
+ }
+
+ .action-btn {
+ background: #e74c3c;
+ color: white;
+ padding: 10px;
+ border-radius: 6px;
+ text-align: center;
+ font-size: 0.9em;
+ font-weight: 600;
+ }
+ </style>
+</head>
+<body>
+ <div class="header">
+ <h1>📱 Project Portfolio MOBILE</h1>
+ <p>v${version}</p>
+ </div>
+
+ <div class="notice">
+ 🎯 This is the MOBILE-OPTIMIZED view with RED theme
+ </div>
+
+ <div class="stats">
+ <div class="stat-card">
+ <div class="number">${projects.length}</div>
+ <div class="label">Total Projects</div>
+ </div>
+ <div class="stat-card">
+ <div class="number">${projects.filter((p: any) => p.hasPackageJson).length}</div>
+ <div class="label">Node.js Apps</div>
+ </div>
+ </div>
+
+ <div class="filters">
+ <button class="filter-btn active">All</button>
+ <button class="filter-btn">Node.js</button>
+ <button class="filter-btn">HTML</button>
+ <div class="search-box">
+ <input type="text" placeholder="Search projects...">
+ </div>
+ </div>
+
+ <div class="projects-grid">
+ ${projects.slice(0, 5).map((p: any) => `
+ <div class="project-card">
+ <div class="project-header">
+ <div class="project-title">${p.displayName}</div>
+ <span class="project-type">${p.type}</span>
+ </div>
+ <div class="project-body">
+ <div class="project-description">${p.description || 'No description'}</div>
+ <div class="tech-badges">
+ ${p.technology.map((t: string) => `<span class="tech-badge">${t}</span>`).join('')}
+ </div>
+ <div class="project-meta">
+ Last modified: ${new Date(p.lastModified).toLocaleDateString()}
+ </div>
+ <div class="action-btn">View Details</div>
+ </div>
+ </div>
+ `).join('')}
+ </div>
+
+ <div class="notice" style="margin-top: 10px;">
+ If you see RED background and this notice, the mobile view is working! ✅
+ </div>
+</body>
+</html>
+ `);
+});
+
+app.get('/api/health', (req, res) => {
+ res.json({
+ status: 'online',
+ port: PORT,
+ uptime: process.uptime(),
+ projectsDir: PROJECTS_DIR
+ });
+});
+
+app.listen(PORT, '0.0.0.0', () => {
+ console.log('');
+ console.log('🚀 Project Portfolio Viewer');
+ console.log('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');
+ console.log(`🌍 External: http://45.61.58.125:${PORT}`);
+ console.log(`🏠 Local: http://localhost:${PORT}`);
+ console.log('');
+ console.log(`📁 Projects Directory: ${PROJECTS_DIR}`);
+ console.log('✅ Portfolio viewer ready...');
+ console.log('');
+});
(oldest)
·
back to Project Portfolio Viewer
·
untrack portfolio-viewer.ts.backup + broaden .gitignore (.ba 8198e0e →