← back to Designerrepresentatives
initial scaffold + GA gtag (designer representatives directory, build_only phase)
5abc682733ddc7759f148a49add6e141cc245ff7 · 2026-05-10 03:02:03 -0700 · Steve Abrams
Files touched
A .gitignoreA README.mdA data/reps.jsonA db/schema.sqlA db/seed.jsA ecosystem.config.jsA lib/db.jsA lib/sort.jsA package-lock.jsonA package.jsonA public/css/site.cssA public/css/theme.cssA public/favicon.svgA public/js/grid-controls.jsA public/js/theme-toggle.jsA public/robots.txtA routes/public.jsA server.jsA views/partials/footer.ejsA views/partials/grid-controls.ejsA views/partials/head.ejsA views/partials/header.ejsA views/public/404.ejsA views/public/about.ejsA views/public/claim.ejsA views/public/error.ejsA views/public/home.ejsA views/public/rep.ejsA views/public/reps.ejs
Diff
commit 5abc682733ddc7759f148a49add6e141cc245ff7
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Sun May 10 03:02:03 2026 -0700
initial scaffold + GA gtag (designer representatives directory, build_only phase)
---
.gitignore | 9 +
README.md | 34 ++
data/reps.json | 42 ++
db/schema.sql | 28 +
db/seed.js | 64 +++
ecosystem.config.js | 16 +
lib/db.js | 9 +
lib/sort.js | 43 ++
package-lock.json | 1142 ++++++++++++++++++++++++++++++++++++++
package.json | 23 +
public/css/site.css | 186 +++++++
public/css/theme.css | 38 ++
public/favicon.svg | 5 +
public/js/grid-controls.js | 31 ++
public/js/theme-toggle.js | 11 +
public/robots.txt | 3 +
routes/public.js | 108 ++++
server.js | 54 ++
views/partials/footer.ejs | 39 ++
views/partials/grid-controls.ejs | 21 +
views/partials/head.ejs | 42 ++
views/partials/header.ejs | 17 +
views/public/404.ejs | 11 +
views/public/about.ejs | 48 ++
views/public/claim.ejs | 37 ++
views/public/error.ejs | 12 +
views/public/home.ejs | 74 +++
views/public/rep.ejs | 54 ++
views/public/reps.ejs | 63 +++
29 files changed, 2264 insertions(+)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4a0b3ea
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+node_modules/
+.env
+.env.*
+tmp/
+*.log
+.DS_Store
+dist/
+build/
+.next/
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..5ab4824
--- /dev/null
+++ b/README.md
@@ -0,0 +1,34 @@
+# Designer Representatives
+
+Canonical directory of independent sales reps for designers, showrooms,
+and contract specifiers. Sister property of Designer Wallcoverings.
+
+## Stack
+
+- Node 20+, Express 4, EJS views
+- Postgres (`designer_representatives` database, table `designer_reps`)
+- Standalone — does not touch `dw_unified`, `lawyer_*`, or `doctor_*` DBs.
+
+## Run locally
+
+```bash
+cp .env.example .env
+psql -c 'CREATE DATABASE designer_representatives;'
+PGDATABASE=designer_representatives npm run schema
+PGDATABASE=designer_representatives npm run seed
+npm install
+npm start
+# → http://localhost:9924
+```
+
+## Deploy (Kamatera)
+
+- pm2 reads `ecosystem.config.js` (port 9924).
+- nginx vhost: `/etc/nginx/sites-enabled/designerrepresentatives.com` proxies
+ `localhost:9924`. Initially HTTP-only on `:80` (DNS flip + Let's Encrypt
+ comes in a later wave).
+
+## Phase
+
+`build_only` — DNS, Cloudflare, certbot, and Purelymail are deferred to
+the DNS-flip wave.
diff --git a/data/reps.json b/data/reps.json
new file mode 100644
index 0000000..fa371f8
--- /dev/null
+++ b/data/reps.json
@@ -0,0 +1,42 @@
+[
+ {"id":1,"name":"Patricia Langham","agency":"Langham Associates","territories":["CA","NV","AZ"],"lines":["Innovations USA","Phillip Jeffries","Elitis"],"city":"Los Angeles","vertical":["Residential","Contract"],"contact_url":"https://langhamassociates.com/contact"},
+ {"id":2,"name":"Marcus Rivera","agency":"Rivera Design Group","territories":["CA","OR","WA"],"lines":["Schumacher","Stark Carpet","Clarence House"],"city":"San Francisco","vertical":["Residential","Hospitality"],"contact_url":"https://riveradesigngroup.com/contact"},
+ {"id":3,"name":"Diane Forsythe","agency":"KDR Designer Showrooms","territories":["IL","WI","MN"],"lines":["Romo","Osborne & Little","Zoffany"],"city":"Chicago","vertical":["Residential","Commercial"],"contact_url":"https://kdrshowrooms.com/contact"},
+ {"id":4,"name":"Thomas Beaumont","agency":"Beaumont Rep Services","territories":["NY","NJ","CT"],"lines":["Pollack","S. Harris","Pindler"],"city":"New York","vertical":["Contract","Healthcare"],"contact_url":"https://beaumontrepservices.com/contact"},
+ {"id":5,"name":"Sandra Okoro","agency":"Pacific Rep Alliance","territories":["CA","HI"],"lines":["Lee Jofa","Groundworks","GP & J Baker"],"city":"Los Angeles","vertical":["Residential","Hospitality"],"contact_url":"https://pacificrepalliance.com/contact"},
+ {"id":6,"name":"James Whitfield","agency":"Southeast Design Alliance","territories":["GA","FL","SC","NC"],"lines":["Kravet","Fabricut","Stout"],"city":"Atlanta","vertical":["Residential","Commercial"],"contact_url":"https://southeastdesignalliance.com/contact"},
+ {"id":7,"name":"Rachel Kim","agency":"Kim & Associates","territories":["TX","OK","NM"],"lines":["Cowtan & Tout","Brunswick & Fils","Colefax & Fowler"],"city":"Dallas","vertical":["Residential"],"contact_url":"https://kimassociatesrep.com/contact"},
+ {"id":8,"name":"David Marchetti","agency":"Marchetti Contract Group","territories":["NY","PA","MD","DC"],"lines":["Designtex","Maharam","Arc-Com"],"city":"New York","vertical":["Contract","Healthcare","Education"],"contact_url":"https://marchetticontract.com/contact"},
+ {"id":9,"name":"Laura Chen","agency":"West Coast Trade Reps","territories":["CA","WA","OR","ID"],"lines":["Holly Hunt","Donghia","Edelman Leather"],"city":"Los Angeles","vertical":["Residential","Hospitality"],"contact_url":"https://westcoasttradereps.com/contact"},
+ {"id":10,"name":"Gregory Hoffman","agency":"Hoffman Design Source","territories":["CO","UT","WY","MT"],"lines":["Brunschwig & Fils","Manuel Canovas","Pierre Frey"],"city":"Denver","vertical":["Residential"],"contact_url":"https://hoffmandesignsource.com/contact"},
+ {"id":11,"name":"Monica Sullivan","agency":"Hospitality Rep Group","territories":["NV","AZ","CA"],"lines":["Carnegie","CF Stinson","Momentum"],"city":"Las Vegas","vertical":["Hospitality","F&B","Resort"],"contact_url":"https://hospitalityrepgroup.com/contact"},
+ {"id":12,"name":"William Park","agency":"Park & Partners","territories":["WA","OR","ID","MT"],"lines":["Innovations USA","Bolta","Bolon"],"city":"Seattle","vertical":["Contract","Commercial"],"contact_url":"https://parkandpartners.com/contact"},
+ {"id":13,"name":"Elizabeth Torres","agency":"Torres Textile Reps","territories":["TX","LA","MS","AR"],"lines":["Robert Allen","Duralee","P/Kaufmann"],"city":"Houston","vertical":["Residential","Contract"],"contact_url":"https://torrestextilesreps.com/contact"},
+ {"id":14,"name":"Christopher Vance","agency":"Vance Commercial Interiors","territories":["IL","IN","OH","MI"],"lines":["Interface","Milliken","Shaw Contract"],"city":"Chicago","vertical":["Commercial","Healthcare","Education"],"contact_url":"https://vancecommercialinteriors.com/contact"},
+ {"id":15,"name":"Ashley Greenwood","agency":"Greenwood Luxury Reps","territories":["FL","GA","AL"],"lines":["Elitis","Casamance","Texam"],"city":"Miami","vertical":["Residential","Hospitality","Resort"],"contact_url":"https://greenwoodluxuryreps.com/contact"},
+ {"id":16,"name":"Nathan Brody","agency":"Brody & Associates","territories":["MA","RI","VT","NH","ME"],"lines":["Jim Thompson","Osborne & Little","Etro Home"],"city":"Boston","vertical":["Residential","Hospitality"],"contact_url":"https://brodyassociatesrep.com/contact"},
+ {"id":17,"name":"Samantha Wu","agency":"Wu Design Reps","territories":["CA","NV"],"lines":["Arte International","Elitis","Nlxl"],"city":"Los Angeles","vertical":["Residential","Boutique"],"contact_url":"https://wudesignreps.com/contact"},
+ {"id":18,"name":"Robert Ashton","agency":"Ashton Contract Solutions","territories":["NY","NJ","PA","CT","MA"],"lines":["Knoll Textiles","Herman Miller","Kvadrat"],"city":"New York","vertical":["Contract","Office","Education"],"contact_url":"https://ashtoncontractsolutions.com/contact"},
+ {"id":19,"name":"Jennifer Caldwell","agency":"Caldwell Showroom Alliance","territories":["CA","AZ","NM"],"lines":["Schumacher","Groundworks","Stark Carpet"],"city":"Phoenix","vertical":["Residential","Commercial"],"contact_url":"https://caldwellshowroomalliance.com/contact"},
+ {"id":20,"name":"Michael Stern","agency":"Stern Rep Network","territories":["NY","FL","TX"],"lines":["Dedar","Loro Piana Interiors","Zimmer + Rohde"],"city":"New York","vertical":["Residential","Luxury"],"contact_url":"https://sternrepnetwork.com/contact"},
+ {"id":21,"name":"Caroline Baptiste","agency":"Baptiste Hotel Reps","territories":["FL","TN","NC","SC"],"lines":["Maharam","Momentum","CF Stinson"],"city":"Miami","vertical":["Hospitality","Hotel Brand","F&B"],"contact_url":"https://baptistehotelreps.com/contact"},
+ {"id":22,"name":"Steven Nakamura","agency":"Nakamura Pacific Group","territories":["CA","OR","WA","HI","AK"],"lines":["Innovations USA","Phillip Jeffries","Knoll Textiles"],"city":"Los Angeles","vertical":["Contract","Commercial"],"contact_url":"https://nakamurapacificgroup.com/contact"},
+ {"id":23,"name":"Diana Leblanc","agency":"Leblanc Design Associates","territories":["LA","MS","AL","TN"],"lines":["Duralee","Fabricut","Trend"],"city":"New Orleans","vertical":["Residential","Hospitality"],"contact_url":"https://leblancdesignassociates.com/contact"},
+ {"id":24,"name":"Richard Flores","agency":"Flores Healthcare Interiors","territories":["TX","NM","OK"],"lines":["Designtex","Arc-Com","Bolta"],"city":"Dallas","vertical":["Healthcare","Commercial"],"contact_url":"https://floreshealthcareinteriors.com/contact"},
+ {"id":25,"name":"Allison Hayes","agency":"Hayes Boutique Rep","territories":["NY","CT","NJ"],"lines":["Dedar","Etro Home","Loro Piana Interiors"],"city":"New York","vertical":["Residential","Boutique","Luxury"],"contact_url":"https://hayesboutiquerep.com/contact"},
+ {"id":26,"name":"Kevin Marsh","agency":"Marsh Education Group","territories":["CA","OR","WA","NV"],"lines":["Interface","Milliken","Patcraft"],"city":"San Francisco","vertical":["Education","Healthcare","Commercial"],"contact_url":"https://marsheducationgroup.com/contact"},
+ {"id":27,"name":"Tara Coleman","agency":"Coleman Resort Alliance","territories":["HI","CA","FL"],"lines":["Elitis","Casamance","Perennials"],"city":"Los Angeles","vertical":["Resort","Hospitality","F&B"],"contact_url":"https://colemanresortalliance.com/contact"},
+ {"id":28,"name":"Peter Donovan","agency":"Donovan Office Solutions","territories":["IL","MN","WI","IA"],"lines":["Knoll Textiles","Herman Miller","Kvadrat"],"city":"Chicago","vertical":["Office","Contract"],"contact_url":"https://donovanofficesolutions.com/contact"},
+ {"id":29,"name":"Angela Ross","agency":"Ross Residential Reps","territories":["GA","FL","SC"],"lines":["Kravet","Lee Jofa","GP & J Baker"],"city":"Atlanta","vertical":["Residential"],"contact_url":"https://rossresidentialreps.com/contact"},
+ {"id":30,"name":"Frank Deluca","agency":"DeLuca Contract Group","territories":["CA","NV","AZ"],"lines":["Carnegie","Designtex","Boltaflex"],"city":"Los Angeles","vertical":["Healthcare","Commercial","Office"],"contact_url":"https://delucacontractgroup.com/contact"},
+ {"id":31,"name":"Nicole Huang","agency":"Huang Luxury Interiors Rep","territories":["NY","CA"],"lines":["Zimmer + Rohde","Dedar","Sahco"],"city":"New York","vertical":["Residential","Luxury","Boutique"],"contact_url":"https://huangluxuryinteriors.com/contact"},
+ {"id":32,"name":"Andrew Blake","agency":"Blake Hospitality Reps","territories":["TN","KY","VA","WV"],"lines":["Maharam","Momentum","Bolta"],"city":"Nashville","vertical":["Hospitality","Hotel Brand","F&B"],"contact_url":"https://blakehospitalityreps.com/contact"},
+ {"id":33,"name":"Stephanie Osei","agency":"Osei Commercial Alliance","territories":["GA","AL","TN","SC"],"lines":["Interface","Shaw Contract","Patcraft"],"city":"Atlanta","vertical":["Commercial","Office","Retail"],"contact_url":"https://oseicommercialalliance.com/contact"},
+ {"id":34,"name":"Timothy Grant","agency":"Grant & Grant Design Reps","territories":["PA","DE","MD","VA"],"lines":["Schumacher","Brunschwig & Fils","Clarence House"],"city":"Philadelphia","vertical":["Residential","Contract"],"contact_url":"https://grantgrantdesignreps.com/contact"},
+ {"id":35,"name":"Lisa Johansson","agency":"Nordic West Reps","territories":["WA","OR","ID","MT","WY"],"lines":["Bolon","Baux","Kvadrat"],"city":"Seattle","vertical":["Commercial","Office","Education"],"contact_url":"https://nordicwestreps.com/contact"},
+ {"id":36,"name":"Omar Farouk","agency":"Farouk Luxury Reps","territories":["CA","TX","NY"],"lines":["Loro Piana Interiors","Dedar","Sahco"],"city":"Los Angeles","vertical":["Luxury","Residential","Boutique"],"contact_url":"https://faroukluxuryreps.com/contact"},
+ {"id":37,"name":"Catherine Moore","agency":"Moore Wallcovering Reps","territories":["IL","MO","KS","NE"],"lines":["Innovations USA","Arte International","Nlxl"],"city":"Chicago","vertical":["Residential","Contract"],"contact_url":"https://moorewallcoveringreps.com/contact"},
+ {"id":38,"name":"Henry Vasquez","agency":"Vasquez Southwest Reps","territories":["AZ","NM","TX","CO"],"lines":["Pollack","Pindler","Duralee"],"city":"Phoenix","vertical":["Residential","Commercial"],"contact_url":"https://vasquezSouthwestreps.com/contact"},
+ {"id":39,"name":"Pamela Nkosi","agency":"Nkosi Retail Design Reps","territories":["NY","NJ","CT","MA"],"lines":["Maharam","Momentum","Interface"],"city":"New York","vertical":["Retail","Commercial","Office"],"contact_url":"https://nkosiretaildesignreps.com/contact"},
+ {"id":40,"name":"Jonathan Reyes","agency":"Reyes Pacific Hospitality","territories":["CA","HI","NV"],"lines":["Perennials","Elitis","Casamance"],"city":"Los Angeles","vertical":["Hospitality","Resort","Boutique"],"contact_url":"https://reyespacifichospitality.com/contact"}
+]
diff --git a/db/schema.sql b/db/schema.sql
new file mode 100644
index 0000000..b973d3f
--- /dev/null
+++ b/db/schema.sql
@@ -0,0 +1,28 @@
+-- designer_representatives schema
+-- Standalone PG table — NOT part of dw_unified, lawyer_*, or doctor_*.
+CREATE TABLE IF NOT EXISTS designer_reps (
+ id SERIAL PRIMARY KEY,
+ slug TEXT UNIQUE NOT NULL,
+ name TEXT NOT NULL,
+ agency TEXT NOT NULL,
+ city TEXT,
+ region TEXT,
+ territories TEXT[] DEFAULT '{}',
+ lines TEXT[] DEFAULT '{}',
+ vertical TEXT[] DEFAULT '{}',
+ email TEXT,
+ phone TEXT,
+ website_url TEXT,
+ contact_url TEXT,
+ bio TEXT,
+ is_claimed BOOLEAN NOT NULL DEFAULT FALSE,
+ is_published BOOLEAN NOT NULL DEFAULT TRUE,
+ created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
+ updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
+);
+
+CREATE INDEX IF NOT EXISTS idx_designer_reps_city ON designer_reps (city);
+CREATE INDEX IF NOT EXISTS idx_designer_reps_published ON designer_reps (is_published);
+CREATE INDEX IF NOT EXISTS idx_designer_reps_territories ON designer_reps USING gin (territories);
+CREATE INDEX IF NOT EXISTS idx_designer_reps_lines ON designer_reps USING gin (lines);
+CREATE INDEX IF NOT EXISTS idx_designer_reps_vertical ON designer_reps USING gin (vertical);
diff --git a/db/seed.js b/db/seed.js
new file mode 100644
index 0000000..627c348
--- /dev/null
+++ b/db/seed.js
@@ -0,0 +1,64 @@
+// Seed designer_reps from data/reps.json into Postgres.
+// Idempotent: ON CONFLICT (slug) DO UPDATE so reruns refresh fields.
+require('dotenv').config();
+const fs = require('fs');
+const path = require('path');
+const { Pool } = require('pg');
+
+const pool = new Pool();
+
+function slugify(s) {
+ return String(s || '')
+ .toLowerCase()
+ .replace(/[^a-z0-9]+/g, '-')
+ .replace(/^-+|-+$/g, '')
+ .slice(0, 80);
+}
+
+(async () => {
+ const reps = JSON.parse(
+ fs.readFileSync(path.join(__dirname, '..', 'data', 'reps.json'), 'utf8')
+ );
+ const client = await pool.connect();
+ try {
+ await client.query('BEGIN');
+ let inserted = 0;
+ for (const r of reps) {
+ const slug = slugify(`${r.agency}-${r.city}`);
+ await client.query(
+ `INSERT INTO designer_reps
+ (slug, name, agency, city, territories, lines, vertical, contact_url, is_published)
+ VALUES ($1,$2,$3,$4,$5,$6,$7,$8,TRUE)
+ ON CONFLICT (slug) DO UPDATE SET
+ name = EXCLUDED.name,
+ agency = EXCLUDED.agency,
+ city = EXCLUDED.city,
+ territories = EXCLUDED.territories,
+ lines = EXCLUDED.lines,
+ vertical = EXCLUDED.vertical,
+ contact_url = EXCLUDED.contact_url,
+ updated_at = NOW()`,
+ [
+ slug,
+ r.name,
+ r.agency,
+ r.city || null,
+ r.territories || [],
+ r.lines || [],
+ r.vertical || [],
+ r.contact_url || null,
+ ]
+ );
+ inserted++;
+ }
+ await client.query('COMMIT');
+ console.log(`seeded ${inserted} designer_reps rows`);
+ } catch (e) {
+ await client.query('ROLLBACK');
+ console.error('seed failed', e);
+ process.exitCode = 1;
+ } finally {
+ client.release();
+ await pool.end();
+ }
+})();
diff --git a/ecosystem.config.js b/ecosystem.config.js
new file mode 100644
index 0000000..290c093
--- /dev/null
+++ b/ecosystem.config.js
@@ -0,0 +1,16 @@
+module.exports = {
+ apps: [
+ {
+ name: 'designerrepresentatives',
+ script: 'server.js',
+ cwd: __dirname,
+ env: {
+ NODE_ENV: 'production',
+ PORT: 9924,
+ PUBLIC_URL: 'https://designerrepresentatives.com',
+ },
+ max_memory_restart: '300M',
+ time: true,
+ },
+ ],
+};
diff --git a/lib/db.js b/lib/db.js
new file mode 100644
index 0000000..dd523fd
--- /dev/null
+++ b/lib/db.js
@@ -0,0 +1,9 @@
+const { Pool } = require('pg');
+
+const pool = new Pool({
+ // libpq env vars are picked up automatically (PGHOST/PGPORT/PGUSER/PGPASSWORD/PGDATABASE).
+ max: parseInt(process.env.PG_POOL_MAX || '10', 10),
+ idleTimeoutMillis: 30_000,
+});
+
+module.exports = { pool };
diff --git a/lib/sort.js b/lib/sort.js
new file mode 100644
index 0000000..1e3205b
--- /dev/null
+++ b/lib/sort.js
@@ -0,0 +1,43 @@
+// Sort + density helpers shared between server-rendered grid and client.
+// The select <option> values must match SORTS keys exactly.
+
+const SORTS = {
+ newest: 'newest',
+ city: 'city',
+ agency_az: 'agency_az',
+ name_az: 'name_az',
+ vertical: 'vertical',
+};
+
+function sortReps(reps, key) {
+ const k = SORTS[key] ? key : 'newest';
+ const out = reps.slice();
+ switch (k) {
+ case 'agency_az':
+ out.sort((a, b) => (a.agency || '').localeCompare(b.agency || ''));
+ break;
+ case 'name_az':
+ out.sort((a, b) => (a.name || '').localeCompare(b.name || ''));
+ break;
+ case 'city':
+ out.sort((a, b) =>
+ (a.city || '').localeCompare(b.city || '') ||
+ (a.agency || '').localeCompare(b.agency || '')
+ );
+ break;
+ case 'vertical':
+ // Group residential / hospitality / contract / commercial / healthcare / luxury
+ out.sort((a, b) => {
+ const av = (a.vertical && a.vertical[0]) || 'zzz';
+ const bv = (b.vertical && b.vertical[0]) || 'zzz';
+ return av.localeCompare(bv) || (a.agency || '').localeCompare(b.agency || '');
+ });
+ break;
+ case 'newest':
+ default:
+ out.sort((a, b) => (b.id || 0) - (a.id || 0));
+ }
+ return out;
+}
+
+module.exports = { SORTS, sortReps };
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..8d2d755
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,1142 @@
+{
+ "name": "designer-representatives",
+ "version": "0.1.0",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {
+ "": {
+ "name": "designer-representatives",
+ "version": "0.1.0",
+ "dependencies": {
+ "dotenv": "^16.4.5",
+ "ejs": "^3.1.10",
+ "express": "^4.21.0",
+ "morgan": "^1.10.0",
+ "pg": "^8.13.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+ },
+ "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/async": {
+ "version": "3.2.6",
+ "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
+ "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==",
+ "license": "MIT"
+ },
+ "node_modules/balanced-match": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
+ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
+ "license": "MIT"
+ },
+ "node_modules/basic-auth": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz",
+ "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==",
+ "license": "MIT",
+ "dependencies": {
+ "safe-buffer": "5.1.2"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/basic-auth/node_modules/safe-buffer": {
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
+ "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
+ "license": "MIT"
+ },
+ "node_modules/body-parser": {
+ "version": "1.20.5",
+ "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.5.tgz",
+ "integrity": "sha512-3grm+/2tUOvu2cjJkvsIxrv/wVpfXQW4PsQHYm7yk4vfpu7Ekl6nEsYBoJUL6qDwZUx8wUhQ8tR2qz+ad9c9OA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "content-type": "~1.0.5",
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "~1.2.0",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "on-finished": "~2.4.1",
+ "qs": "~6.15.1",
+ "raw-body": "~2.5.3",
+ "type-is": "~1.6.18",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8",
+ "npm": "1.2.8000 || >= 1.4.16"
+ }
+ },
+ "node_modules/body-parser/node_modules/qs": {
+ "version": "6.15.1",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
+ "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/brace-expansion": {
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.0.tgz",
+ "integrity": "sha512-TN1kCZAgdgweJhWWpgKYrQaMNHcDULHkWwQIspdtjV4Y5aurRdZpjAqn6yX3FPqTA9ngHCc4hJxMAMgGfve85w==",
+ "license": "MIT",
+ "dependencies": {
+ "balanced-match": "^1.0.0"
+ }
+ },
+ "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.2",
+ "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz",
+ "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/cookie-signature": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.7.tgz",
+ "integrity": "sha512-NXdYc3dLr47pBkpUCHtKSwIOQXLVn8dZEuywboCOJY/osA0wFSLlSawr3KN8qXJEyX66FcONTH8EIlVuK0yyFA==",
+ "license": "MIT"
+ },
+ "node_modules/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/dotenv": {
+ "version": "16.6.1",
+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
+ "integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
+ "license": "BSD-2-Clause",
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://dotenvx.com"
+ }
+ },
+ "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/ejs": {
+ "version": "3.1.10",
+ "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz",
+ "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "jake": "^10.8.5"
+ },
+ "bin": {
+ "ejs": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "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/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.22.1",
+ "resolved": "https://registry.npmjs.org/express/-/express-4.22.1.tgz",
+ "integrity": "sha512-F2X8g9P1X7uCPZMA3MVf9wcTqlyNp7IhH5qPCI0izhaOIYXaW9L535tGA3qmjRzpH+bZczqq7hVKxTR4NWnu+g==",
+ "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.14.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/filelist": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.6.tgz",
+ "integrity": "sha512-5giy2PkLYY1cP39p17Ech+2xlpTRL9HLspOfEgm0L6CwBXBTgsK5ou0JtzYuepxkaQ/tvhCFIJ5uXo0OrM2DxA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "minimatch": "^5.0.1"
+ }
+ },
+ "node_modules/finalhandler": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
+ "integrity": "sha512-aA4RyPcd3badbdABGDuTXCMTtOneUCAYH/gxoYRTZlIJdF0YPWuGqiAsIrhNnnqdXGswYk6dGujem4w80UJFhg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "on-finished": "~2.4.1",
+ "parseurl": "~1.3.3",
+ "statuses": "~2.0.2",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/forwarded": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz",
+ "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/fresh": {
+ "version": "0.5.2",
+ "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz",
+ "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/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/gopd": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
+ "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/has-symbols": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
+ "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/hasown": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz",
+ "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==",
+ "license": "MIT",
+ "dependencies": {
+ "function-bind": "^1.1.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ }
+ },
+ "node_modules/http-errors": {
+ "version": "2.0.1",
+ "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz",
+ "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==",
+ "license": "MIT",
+ "dependencies": {
+ "depd": "~2.0.0",
+ "inherits": "~2.0.4",
+ "setprototypeof": "~1.2.0",
+ "statuses": "~2.0.2",
+ "toidentifier": "~1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/express"
+ }
+ },
+ "node_modules/iconv-lite": {
+ "version": "0.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/jake": {
+ "version": "10.9.4",
+ "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.4.tgz",
+ "integrity": "sha512-wpHYzhxiVQL+IV05BLE2Xn34zW1S223hvjtqk0+gsPrwd/8JNLXJgZZM/iPFsYc1xyphF+6M6EvdE5E9MBGkDA==",
+ "license": "Apache-2.0",
+ "dependencies": {
+ "async": "^3.2.6",
+ "filelist": "^1.0.4",
+ "picocolors": "^1.1.1"
+ },
+ "bin": {
+ "jake": "bin/cli.js"
+ },
+ "engines": {
+ "node": ">=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/minimatch": {
+ "version": "5.1.9",
+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.9.tgz",
+ "integrity": "sha512-7o1wEA2RyMP7Iu7GNba9vc0RWWGACJOCZBJX2GJWip0ikV+wcOsgVuY9uE8CPiyQhkGFSlhuSkZPavN7u1c2Fw==",
+ "license": "ISC",
+ "dependencies": {
+ "brace-expansion": "^2.0.1"
+ },
+ "engines": {
+ "node": ">=10"
+ }
+ },
+ "node_modules/morgan": {
+ "version": "1.10.1",
+ "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.1.tgz",
+ "integrity": "sha512-223dMRJtI/l25dJKWpgij2cMtywuG/WiUKXdvwfbhGKBhy1puASqXwFzmWZ7+K73vUPoR7SS2Qz2cI/g9MKw0A==",
+ "license": "MIT",
+ "dependencies": {
+ "basic-auth": "~2.0.1",
+ "debug": "2.6.9",
+ "depd": "~2.0.0",
+ "on-finished": "~2.3.0",
+ "on-headers": "~1.1.0"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/morgan/node_modules/on-finished": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz",
+ "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==",
+ "license": "MIT",
+ "dependencies": {
+ "ee-first": "1.1.1"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "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/on-headers": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.1.0.tgz",
+ "integrity": "sha512-737ZY3yNnXy37FHkQxPzt4UZ2UWPWiCZWLvFZ4fu5cueciegX0zGPnrlY6bwRg4FdQOe9YU8MkmJwGhoMybl8A==",
+ "license": "MIT",
+ "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.13",
+ "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.13.tgz",
+ "integrity": "sha512-A/AGNMFN3c8bOlvV9RreMdrv7jsmF9XIfDeCd87+I8RNg6s78BhJxMu69NEMHBSJFxKidViTEdruRwEk/WIKqA==",
+ "license": "MIT"
+ },
+ "node_modules/pg": {
+ "version": "8.20.0",
+ "resolved": "https://registry.npmjs.org/pg/-/pg-8.20.0.tgz",
+ "integrity": "sha512-ldhMxz2r8fl/6QkXnBD3CR9/xg694oT6DZQ2s6c/RI28OjtSOpxnPrUCGOBJ46RCUxcWdx3p6kw/xnDHjKvaRA==",
+ "license": "MIT",
+ "dependencies": {
+ "pg-connection-string": "^2.12.0",
+ "pg-pool": "^3.13.0",
+ "pg-protocol": "^1.13.0",
+ "pg-types": "2.2.0",
+ "pgpass": "1.0.5"
+ },
+ "engines": {
+ "node": ">= 16.0.0"
+ },
+ "optionalDependencies": {
+ "pg-cloudflare": "^1.3.0"
+ },
+ "peerDependencies": {
+ "pg-native": ">=3.0.1"
+ },
+ "peerDependenciesMeta": {
+ "pg-native": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/pg-cloudflare": {
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/pg-cloudflare/-/pg-cloudflare-1.3.0.tgz",
+ "integrity": "sha512-6lswVVSztmHiRtD6I8hw4qP/nDm1EJbKMRhf3HCYaqud7frGysPv7FYJ5noZQdhQtN2xJnimfMtvQq21pdbzyQ==",
+ "license": "MIT",
+ "optional": true
+ },
+ "node_modules/pg-connection-string": {
+ "version": "2.12.0",
+ "resolved": "https://registry.npmjs.org/pg-connection-string/-/pg-connection-string-2.12.0.tgz",
+ "integrity": "sha512-U7qg+bpswf3Cs5xLzRqbXbQl85ng0mfSV/J0nnA31MCLgvEaAo7CIhmeyrmJpOr7o+zm0rXK+hNnT5l9RHkCkQ==",
+ "license": "MIT"
+ },
+ "node_modules/pg-int8": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz",
+ "integrity": "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==",
+ "license": "ISC",
+ "engines": {
+ "node": ">=4.0.0"
+ }
+ },
+ "node_modules/pg-pool": {
+ "version": "3.13.0",
+ "resolved": "https://registry.npmjs.org/pg-pool/-/pg-pool-3.13.0.tgz",
+ "integrity": "sha512-gB+R+Xud1gLFuRD/QgOIgGOBE2KCQPaPwkzBBGC9oG69pHTkhQeIuejVIk3/cnDyX39av2AxomQiyPT13WKHQA==",
+ "license": "MIT",
+ "peerDependencies": {
+ "pg": ">=8.0"
+ }
+ },
+ "node_modules/pg-protocol": {
+ "version": "1.13.0",
+ "resolved": "https://registry.npmjs.org/pg-protocol/-/pg-protocol-1.13.0.tgz",
+ "integrity": "sha512-zzdvXfS6v89r6v7OcFCHfHlyG/wvry1ALxZo4LqgUoy7W9xhBDMaqOuMiF3qEV45VqsN6rdlcehHrfDtlCPc8w==",
+ "license": "MIT"
+ },
+ "node_modules/pg-types": {
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz",
+ "integrity": "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==",
+ "license": "MIT",
+ "dependencies": {
+ "pg-int8": "1.0.1",
+ "postgres-array": "~2.0.0",
+ "postgres-bytea": "~1.0.0",
+ "postgres-date": "~1.0.4",
+ "postgres-interval": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/pgpass": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/pgpass/-/pgpass-1.0.5.tgz",
+ "integrity": "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==",
+ "license": "MIT",
+ "dependencies": {
+ "split2": "^4.1.0"
+ }
+ },
+ "node_modules/picocolors": {
+ "version": "1.1.1",
+ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",
+ "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",
+ "license": "ISC"
+ },
+ "node_modules/postgres-array": {
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/postgres-array/-/postgres-array-2.0.0.tgz",
+ "integrity": "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=4"
+ }
+ },
+ "node_modules/postgres-bytea": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/postgres-bytea/-/postgres-bytea-1.0.1.tgz",
+ "integrity": "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/postgres-date": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/postgres-date/-/postgres-date-1.0.7.tgz",
+ "integrity": "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "node_modules/postgres-interval": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/postgres-interval/-/postgres-interval-1.2.0.tgz",
+ "integrity": "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==",
+ "license": "MIT",
+ "dependencies": {
+ "xtend": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ }
+ },
+ "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.14.2",
+ "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.2.tgz",
+ "integrity": "sha512-V/yCWTTF7VJ9hIh18Ugr2zhJMP01MY7c5kh4J870L7imm6/DIzBsNLTXzMwUA3yZ5b/KBqLx8Kp3uRvd7xSe3Q==",
+ "license": "BSD-3-Clause",
+ "dependencies": {
+ "side-channel": "^1.1.0"
+ },
+ "engines": {
+ "node": ">=0.6"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/range-parser": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+ "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/raw-body": {
+ "version": "2.5.3",
+ "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+ "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+ "license": "MIT",
+ "dependencies": {
+ "bytes": "~3.1.2",
+ "http-errors": "~2.0.1",
+ "iconv-lite": "~0.4.24",
+ "unpipe": "~1.0.0"
+ },
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/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.2",
+ "resolved": "https://registry.npmjs.org/send/-/send-0.19.2.tgz",
+ "integrity": "sha512-VMbMxbDeehAxpOtWJXlcUS5E8iXh6QmN+BkRX1GARS3wRaXEEgzCcB10gTQazO42tpNIya8xIyNx8fll1OFPrg==",
+ "license": "MIT",
+ "dependencies": {
+ "debug": "2.6.9",
+ "depd": "2.0.0",
+ "destroy": "1.2.0",
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "etag": "~1.8.1",
+ "fresh": "~0.5.2",
+ "http-errors": "~2.0.1",
+ "mime": "1.6.0",
+ "ms": "2.1.3",
+ "on-finished": "~2.4.1",
+ "range-parser": "~1.2.1",
+ "statuses": "~2.0.2"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/send/node_modules/ms": {
+ "version": "2.1.3",
+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
+ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",
+ "license": "MIT"
+ },
+ "node_modules/serve-static": {
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.3.tgz",
+ "integrity": "sha512-x0RTqQel6g5SY7Lg6ZreMmsOzncHFU7nhnRWkKgWuMTu5NN0DR5oruckMqRvacAN9d5w6ARnRBXl9xhDCgfMeA==",
+ "license": "MIT",
+ "dependencies": {
+ "encodeurl": "~2.0.0",
+ "escape-html": "~1.0.3",
+ "parseurl": "~1.3.3",
+ "send": "~0.19.1"
+ },
+ "engines": {
+ "node": ">= 0.8.0"
+ }
+ },
+ "node_modules/setprototypeof": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz",
+ "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==",
+ "license": "ISC"
+ },
+ "node_modules/side-channel": {
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz",
+ "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.3",
+ "side-channel-list": "^1.0.0",
+ "side-channel-map": "^1.0.1",
+ "side-channel-weakmap": "^1.0.2"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-list": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz",
+ "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==",
+ "license": "MIT",
+ "dependencies": {
+ "es-errors": "^1.3.0",
+ "object-inspect": "^1.13.4"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-map": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz",
+ "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/side-channel-weakmap": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz",
+ "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==",
+ "license": "MIT",
+ "dependencies": {
+ "call-bound": "^1.0.2",
+ "es-errors": "^1.3.0",
+ "get-intrinsic": "^1.2.5",
+ "object-inspect": "^1.13.3",
+ "side-channel-map": "^1.0.1"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ }
+ },
+ "node_modules/split2": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz",
+ "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==",
+ "license": "ISC",
+ "engines": {
+ "node": ">= 10.x"
+ }
+ },
+ "node_modules/statuses": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz",
+ "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
+ "node_modules/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/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/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"
+ }
+ },
+ "node_modules/xtend": {
+ "version": "4.0.2",
+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
+ "license": "MIT",
+ "engines": {
+ "node": ">=0.4"
+ }
+ }
+ }
+}
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..b4c943c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "designer-representatives",
+ "version": "0.1.0",
+ "private": true,
+ "description": "Designer Representatives — directory of independent sales reps for designers, showrooms, and contract specifiers.",
+ "main": "server.js",
+ "scripts": {
+ "start": "node server.js",
+ "dev": "node server.js",
+ "schema": "psql $PGDATABASE -f db/schema.sql",
+ "seed": "node db/seed.js"
+ },
+ "dependencies": {
+ "dotenv": "^16.4.5",
+ "ejs": "^3.1.10",
+ "express": "^4.21.0",
+ "morgan": "^1.10.0",
+ "pg": "^8.13.1"
+ },
+ "engines": {
+ "node": ">=20"
+ }
+}
diff --git a/public/css/site.css b/public/css/site.css
new file mode 100644
index 0000000..50a6c48
--- /dev/null
+++ b/public/css/site.css
@@ -0,0 +1,186 @@
+* { box-sizing: border-box; }
+
+html, body { margin: 0; padding: 0; }
+body {
+ background: var(--bg);
+ color: var(--text);
+ font-family: var(--font-sans);
+ font-size: 16px;
+ line-height: 1.55;
+ -webkit-font-smoothing: antialiased;
+}
+
+a { color: var(--link); text-decoration: none; }
+a:hover { color: var(--link-hover); text-decoration: underline; }
+
+h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: 0.005em; }
+h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 .5rem; }
+h2 { font-size: 1.6rem; margin: 1.5rem 0 .75rem; }
+h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
+
+.muted { color: var(--text-muted); }
+.small { font-size: .85rem; }
+
+.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
+.wrap.narrow { max-width: 740px; }
+.section { padding: 3.5rem 0; }
+.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
+
+/* Header */
+.site-header {
+ background: var(--surface);
+ border-bottom: 1px solid var(--border);
+ position: sticky; top: 0; z-index: 30;
+ backdrop-filter: saturate(140%) blur(6px);
+}
+.site-header .wrap {
+ display: flex; align-items: center; gap: 1.5rem;
+ padding-top: .9rem; padding-bottom: .9rem;
+}
+.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
+.brand:hover { text-decoration: none; }
+.brand-mark {
+ font-family: var(--font-serif); font-weight: 600;
+ background: var(--accent); color: var(--accent-fg);
+ width: 34px; height: 34px; border-radius: 50%;
+ display: inline-flex; align-items: center; justify-content: center;
+ font-size: 1rem; letter-spacing: 0;
+}
+.brand-name { font-family: var(--font-serif); font-size: 1.15rem; }
+.nav { margin-left: auto; display: flex; gap: 1.25rem; }
+.nav a { color: var(--text); }
+.theme-toggle {
+ background: transparent; border: 1px solid var(--border);
+ border-radius: 999px; padding: .35rem .65rem;
+ color: var(--text); cursor: pointer; font-size: 1rem;
+ display: inline-flex; gap: .25rem;
+}
+html[data-theme='light'] .theme-toggle-moon { display: none; }
+html[data-theme='dark'] .theme-toggle-sun { display: none; }
+
+/* Hero */
+.hero {
+ padding: 4.5rem 0 3rem;
+ border-bottom: 1px solid var(--border);
+ background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
+}
+.hero .kicker {
+ text-transform: uppercase; letter-spacing: .14em;
+ font-size: .8rem; color: var(--text-muted); margin: 0 0 .75rem;
+}
+.hero h1 { max-width: 18ch; }
+.hero .lede { max-width: 60ch; font-size: 1.1rem; color: var(--text-muted); }
+.hero-cta { margin-top: 1.5rem; display: flex; gap: .75rem; flex-wrap: wrap; }
+
+.btn {
+ display: inline-flex; align-items: center; justify-content: center;
+ padding: .7rem 1.15rem; border-radius: var(--radius);
+ font-family: var(--font-sans); font-size: .95rem; font-weight: 500;
+ cursor: pointer; border: 1px solid transparent;
+ text-decoration: none;
+}
+.btn.primary { background: var(--accent); color: var(--accent-fg); }
+.btn.primary:hover { background: var(--link-hover); color: var(--accent-fg); text-decoration: none; }
+.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
+.btn.ghost:hover { background: var(--surface); text-decoration: none; }
+
+/* Section heads */
+.section-head {
+ display: flex; align-items: baseline; justify-content: space-between;
+ gap: 1rem; margin-bottom: 1.25rem;
+}
+
+/* Two-col layout */
+.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
+@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
+
+/* Filter form (reps list) */
+.filter-form {
+ display: flex; gap: .75rem; flex-wrap: wrap;
+ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
+ padding: 1rem; margin: 1.25rem 0;
+}
+.filter-form .control { display: flex; flex-direction: column; gap: .25rem; min-width: 130px; }
+.filter-form input, .filter-form select {
+ background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
+ color: var(--text); padding: .5rem .65rem; font: inherit;
+}
+.filter-form .btn { align-self: flex-end; }
+
+/* Grid controls */
+.grid-controls {
+ display: flex; align-items: center; justify-content: space-between;
+ gap: 1rem; margin: 1.25rem 0; flex-wrap: wrap;
+}
+.grid-controls-right { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
+.grid-controls .control { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-muted); }
+.grid-controls .control select,
+.grid-controls .control input[type=range] {
+ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
+ color: var(--text); padding: .35rem .5rem; font: inherit;
+}
+.grid-controls input[type=range] { padding: 0; width: 160px; }
+.grid-count { font-weight: 600; font-size: 1.05rem; color: var(--text); }
+
+/* Rep grid */
+.rep-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(var(--cols-min), 1fr));
+ gap: var(--gap);
+}
+.rep-card {
+ background: var(--surface);
+ border: 1px solid var(--border);
+ border-radius: var(--radius);
+ padding: 1.15rem 1.15rem 1rem;
+ box-shadow: var(--shadow);
+ display: flex; flex-direction: column; gap: .55rem;
+}
+.rep-card h3 { font-family: var(--font-serif); }
+.rep-card .lines, .rep-card .territories { font-size: .9rem; margin: 0; }
+.rep-card .tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .25rem 0 0; list-style: none; }
+.rep-card .tags li {
+ font-size: .75rem; padding: .15rem .55rem; border-radius: 999px;
+ background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
+}
+.empty { grid-column: 1 / -1; color: var(--text-muted); padding: 2rem 0; text-align: center; }
+
+/* Rep detail */
+.rep-detail .pills { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
+.rep-detail .pills li {
+ background: var(--bg-alt); color: var(--text); border: 1px solid var(--border);
+ padding: .35rem .75rem; border-radius: 999px; font-size: .9rem;
+}
+.rep-detail .tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; list-style: none; }
+.rep-detail .tags li {
+ background: var(--surface); color: var(--text-muted); border: 1px solid var(--border);
+ padding: .25rem .65rem; border-radius: 999px; font-size: .85rem;
+}
+
+/* About / claim prose */
+.prose { padding-left: 1.25rem; }
+.prose li { margin: .35rem 0; }
+.claim-callout {
+ background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
+ padding: 1.25rem 1.5rem; margin: 1.5rem 0;
+}
+
+/* Footer */
+.site-footer {
+ background: var(--bg-alt);
+ border-top: 1px solid var(--border);
+ margin-top: 3rem;
+ padding: 2.5rem 0 1.25rem;
+ font-size: .92rem;
+}
+.site-footer .wrap {
+ display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
+}
+@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
+.site-footer .footer-col strong { display: block; margin-bottom: .35rem; font-family: var(--font-serif); font-size: 1.05rem; }
+.site-footer address { font-style: normal; color: var(--text-muted); }
+.site-footer .legal {
+ margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
+ display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
+ font-size: .82rem; color: var(--text-muted);
+}
diff --git a/public/css/theme.css b/public/css/theme.css
new file mode 100644
index 0000000..ae17b48
--- /dev/null
+++ b/public/css/theme.css
@@ -0,0 +1,38 @@
+/* Theme tokens — light + dark, switched via [data-theme] on <html>. */
+
+:root {
+ --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
+ --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
+ --max-w: 1180px;
+ --radius: 6px;
+ --gap: 1.25rem;
+ --cols-min: 300px;
+}
+
+html[data-theme='light'] {
+ --bg: #fbfaf7;
+ --bg-alt: #f1efe9;
+ --surface: #ffffff;
+ --border: #e3dfd5;
+ --text: #1c1b18;
+ --text-muted:#5d574c;
+ --link: #6a4514;
+ --link-hover:#a06b22;
+ --accent: #8b6336;
+ --accent-fg: #ffffff;
+ --shadow: 0 1px 2px rgba(40,30,15,0.06), 0 6px 18px rgba(40,30,15,0.05);
+}
+
+html[data-theme='dark'] {
+ --bg: #0f0e0c;
+ --bg-alt: #16140f;
+ --surface: #1b1814;
+ --border: #2c281f;
+ --text: #efe8d8;
+ --text-muted:#9c9684;
+ --link: #d4a874;
+ --link-hover:#f0c894;
+ --accent: #c89b62;
+ --accent-fg: #16140f;
+ --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.35);
+}
diff --git a/public/favicon.svg b/public/favicon.svg
new file mode 100644
index 0000000..9c8976d
--- /dev/null
+++ b/public/favicon.svg
@@ -0,0 +1,5 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
+ <circle cx="32" cy="32" r="30" fill="#8b6336"/>
+ <text x="32" y="40" text-anchor="middle"
+ font-family="Georgia, serif" font-size="28" font-weight="600" fill="#ffffff">DR</text>
+</svg>
diff --git a/public/js/grid-controls.js b/public/js/grid-controls.js
new file mode 100644
index 0000000..c3eafd0
--- /dev/null
+++ b/public/js/grid-controls.js
@@ -0,0 +1,31 @@
+// Density slider + sort select. Sort hits the server via querystring (matches lib/sort.js).
+// Density adjusts CSS var --cols-min on the grid; both values persist in localStorage.
+(function () {
+ var KEY_SORT = 'drp-sort';
+ var KEY_DENS = 'drp-density';
+
+ var grid = document.querySelector('[data-rep-grid]');
+ var sortEl = document.querySelector('[data-sort]');
+ var densEl = document.querySelector('[data-density]');
+
+ if (densEl && grid) {
+ try {
+ var saved = localStorage.getItem(KEY_DENS);
+ if (saved) { densEl.value = saved; }
+ } catch (e) {}
+ grid.style.setProperty('--cols-min', densEl.value + 'px');
+ densEl.addEventListener('input', function () {
+ grid.style.setProperty('--cols-min', densEl.value + 'px');
+ try { localStorage.setItem(KEY_DENS, densEl.value); } catch (e) {}
+ });
+ }
+
+ if (sortEl) {
+ sortEl.addEventListener('change', function () {
+ try { localStorage.setItem(KEY_SORT, sortEl.value); } catch (e) {}
+ var url = new URL(window.location.href);
+ url.searchParams.set('sort', sortEl.value);
+ window.location.href = url.toString();
+ });
+ }
+})();
diff --git a/public/js/theme-toggle.js b/public/js/theme-toggle.js
new file mode 100644
index 0000000..b1a15e9
--- /dev/null
+++ b/public/js/theme-toggle.js
@@ -0,0 +1,11 @@
+(function () {
+ var KEY = 'drp-theme';
+ var btn = document.getElementById('theme-toggle');
+ if (!btn) return;
+ btn.addEventListener('click', function () {
+ var cur = document.documentElement.getAttribute('data-theme') === 'dark' ? 'dark' : 'light';
+ var next = cur === 'dark' ? 'light' : 'dark';
+ document.documentElement.setAttribute('data-theme', next);
+ try { localStorage.setItem(KEY, next); } catch (e) {}
+ });
+})();
diff --git a/public/robots.txt b/public/robots.txt
new file mode 100644
index 0000000..4627144
--- /dev/null
+++ b/public/robots.txt
@@ -0,0 +1,3 @@
+User-agent: *
+Allow: /
+Sitemap: https://designerrepresentatives.com/sitemap.xml
diff --git a/routes/public.js b/routes/public.js
new file mode 100644
index 0000000..7878292
--- /dev/null
+++ b/routes/public.js
@@ -0,0 +1,108 @@
+const express = require('express');
+const router = express.Router();
+
+const { pool } = require('../lib/db');
+const { sortReps, SORTS } = require('../lib/sort');
+
+const SITE_TITLE = 'Designer Representatives';
+const META_DESC = 'Designer Representatives — the canonical directory of independent sales reps serving interior designers, showrooms, contract specifiers, and the trade. Filter by territory, line, and vertical.';
+
+router.use((req, res, next) => {
+ res.locals.site_title = SITE_TITLE;
+ res.locals.meta_desc = META_DESC;
+ res.locals.canonical = `https://designerrepresentatives.com${req.path}`;
+ res.locals.path = req.path;
+ next();
+});
+
+async function fetchReps(filter) {
+ const where = ['is_published = TRUE'];
+ const args = [];
+ if (filter && filter.territory) {
+ args.push(filter.territory.toUpperCase());
+ where.push(`$${args.length} = ANY(territories)`);
+ }
+ if (filter && filter.vertical) {
+ args.push(filter.vertical);
+ where.push(`$${args.length} = ANY(vertical)`);
+ }
+ if (filter && filter.q) {
+ args.push(`%${filter.q.toLowerCase()}%`);
+ where.push(
+ `(LOWER(name) LIKE $${args.length} OR LOWER(agency) LIKE $${args.length} OR LOWER(city) LIKE $${args.length})`
+ );
+ }
+ const { rows } = await pool.query(
+ `SELECT id, slug, name, agency, city, territories, lines, vertical, contact_url
+ FROM designer_reps
+ WHERE ${where.join(' AND ')}
+ ORDER BY id DESC
+ LIMIT 500`,
+ args
+ );
+ return rows;
+}
+
+router.get('/', async (req, res, next) => {
+ try {
+ const reps = await fetchReps({});
+ const sortKey = SORTS[req.query.sort] ? req.query.sort : 'newest';
+ res.render('public/home', {
+ title: 'Designer Representatives — Sales Reps for Designers, Showrooms, and Contract Specifiers',
+ reps: sortReps(reps, sortKey),
+ total: reps.length,
+ filter: {},
+ sortKey,
+ });
+ } catch (e) { next(e); }
+});
+
+router.get('/reps', async (req, res, next) => {
+ try {
+ const filter = {
+ territory: req.query.territory,
+ vertical: req.query.vertical,
+ q: req.query.q,
+ };
+ const reps = await fetchReps(filter);
+ const sortKey = SORTS[req.query.sort] ? req.query.sort : 'newest';
+ res.render('public/reps', {
+ title: 'Browse Sales Reps — Designer Representatives',
+ reps: sortReps(reps, sortKey),
+ total: reps.length,
+ filter,
+ sortKey,
+ });
+ } catch (e) { next(e); }
+});
+
+router.get('/reps/:slug', async (req, res, next) => {
+ try {
+ const { rows } = await pool.query(
+ `SELECT * FROM designer_reps WHERE slug = $1 AND is_published = TRUE LIMIT 1`,
+ [req.params.slug]
+ );
+ if (!rows.length) return res.status(404).render('public/404', { title: 'Not found' });
+ const rep = rows[0];
+ res.render('public/rep', {
+ title: `${rep.agency} — ${rep.name} | Designer Representatives`,
+ rep,
+ });
+ } catch (e) { next(e); }
+});
+
+router.get('/about', (req, res) => {
+ res.render('public/about', {
+ title: 'About — Designer Representatives',
+ });
+});
+
+router.get('/claim', (req, res) => {
+ res.render('public/claim', {
+ title: 'Claim or list your rep agency — Designer Representatives',
+ });
+});
+
+router.get('/healthz', (req, res) => res.type('text').send('ok'));
+
+module.exports = router;
diff --git a/server.js b/server.js
new file mode 100644
index 0000000..a2b9e69
--- /dev/null
+++ b/server.js
@@ -0,0 +1,54 @@
+require('dotenv').config();
+
+const express = require('express');
+const path = require('path');
+const morgan = require('morgan');
+
+const publicRoutes = require('./routes/public');
+
+const app = express();
+const PORT = parseInt(process.env.PORT || '9924', 10);
+const PUBLIC_URL = process.env.PUBLIC_URL || `http://localhost:${PORT}`;
+const IS_PROD = process.env.NODE_ENV === 'production';
+
+app.set('trust proxy', 1);
+app.set('view engine', 'ejs');
+app.set('views', path.join(__dirname, 'views'));
+app.disable('x-powered-by');
+
+app.use(morgan(IS_PROD ? 'combined' : 'dev'));
+app.use(express.json({ limit: '256kb' }));
+app.use(express.urlencoded({ extended: true, limit: '256kb' }));
+
+app.use(express.static(path.join(__dirname, 'public'), {
+ maxAge: '1h',
+ setHeaders(res, p) {
+ if (p.endsWith('.html')) res.setHeader('Cache-Control', 'no-store, must-revalidate');
+ },
+}));
+
+// Make GA + public URL available to every view
+app.use((req, res, next) => {
+ res.locals.GA_ID = process.env.GA_ID || 'G-MVZFTCQY3X';
+ res.locals.PUBLIC_URL = PUBLIC_URL;
+ next();
+});
+
+app.use('/', publicRoutes);
+
+app.use((req, res) => {
+ res.status(404).render('public/404', { title: 'Not found — Designer Representatives' });
+});
+
+// eslint-disable-next-line no-unused-vars
+app.use((err, req, res, next) => {
+ console.error('[error]', err && err.stack ? err.stack : err);
+ res.status(500).render('public/error', {
+ title: 'Server error — Designer Representatives',
+ message: IS_PROD ? 'Something went wrong.' : (err && err.message) || 'Unknown error',
+ });
+});
+
+app.listen(PORT, () => {
+ console.log(`designerrepresentatives listening on :${PORT} (${IS_PROD ? 'prod' : 'dev'})`);
+});
diff --git a/views/partials/footer.ejs b/views/partials/footer.ejs
new file mode 100644
index 0000000..fc9db1c
--- /dev/null
+++ b/views/partials/footer.ejs
@@ -0,0 +1,39 @@
+<footer class="site-footer">
+ <div class="wrap">
+ <div class="footer-col">
+ <strong>Designer Representatives</strong>
+ <p class="muted">
+ The canonical directory of independent sales reps for designers,
+ showrooms, and contract specifiers.
+ </p>
+ </div>
+ <div class="footer-col">
+ <strong>Contact</strong>
+ <p>
+ <a href="mailto:info@designerrepresentatives.com">info@designerrepresentatives.com</a><br>
+ <a href="tel:+18883734564">888-373-4564</a>
+ </p>
+ </div>
+ <div class="footer-col">
+ <strong>Mailing</strong>
+ <address>
+ Designer Wallcoverings<br>
+ 15442 Ventura Bl #102<br>
+ Sherman Oaks, CA 91403
+ </address>
+ </div>
+ <div class="footer-col">
+ <strong>Listings</strong>
+ <p>
+ <a href="/claim">List your rep agency</a><br>
+ <a href="/about">About this directory</a>
+ </p>
+ </div>
+ </div>
+ <div class="wrap legal">
+ <span>© <%= new Date().getFullYear() %> Designer Representatives</span>
+ <span class="muted">Listings are for informational purposes only. Not affiliated with the brands or showrooms named.</span>
+ </div>
+</footer>
+</body>
+</html>
diff --git a/views/partials/grid-controls.ejs b/views/partials/grid-controls.ejs
new file mode 100644
index 0000000..cdcdcec
--- /dev/null
+++ b/views/partials/grid-controls.ejs
@@ -0,0 +1,21 @@
+<div class="grid-controls" data-grid-controls>
+ <div class="grid-controls-left">
+ <span class="grid-count" data-grid-count><%= total %></span> <span class="muted">reps</span>
+ </div>
+ <div class="grid-controls-right">
+ <label class="control">
+ <span>Sort</span>
+ <select id="sort-select" data-sort>
+ <option value="newest" <%= sortKey === 'newest' ? 'selected' : '' %>>Newest</option>
+ <option value="city" <%= sortKey === 'city' ? 'selected' : '' %>>City</option>
+ <option value="agency_az"<%= sortKey === 'agency_az'? 'selected' : '' %>>Agency A→Z</option>
+ <option value="name_az" <%= sortKey === 'name_az' ? 'selected' : '' %>>Name A→Z</option>
+ <option value="vertical" <%= sortKey === 'vertical' ? 'selected' : '' %>>Vertical</option>
+ </select>
+ </label>
+ <label class="control">
+ <span>Density</span>
+ <input id="density-slider" type="range" min="200" max="420" step="20" value="300" data-density>
+ </label>
+ </div>
+</div>
diff --git a/views/partials/head.ejs b/views/partials/head.ejs
new file mode 100644
index 0000000..965b77d
--- /dev/null
+++ b/views/partials/head.ejs
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title><%= typeof title !== 'undefined' ? title : site_title %></title>
+ <meta name="description" content="<%= typeof meta_desc_override !== 'undefined' ? meta_desc_override : meta_desc %>">
+ <link rel="canonical" href="<%= canonical %>">
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="<%= canonical %>">
+ <meta property="og:site_name" content="<%= site_title %>">
+ <meta property="og:title" content="<%= typeof title !== 'undefined' ? title : site_title %>">
+ <meta property="og:description" content="<%= typeof meta_desc_override !== 'undefined' ? meta_desc_override : meta_desc %>">
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="theme-color" content="#0e0e0e">
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg">
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
+ <link rel="stylesheet" href="/css/theme.css">
+ <link rel="stylesheet" href="/css/site.css">
+ <!-- GA4 gtag (auto) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=<%= GA_ID %>"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', '<%= GA_ID %>');
+ </script>
+ <!-- /GA4 gtag -->
+ <script>
+ (function () {
+ try {
+ var t = localStorage.getItem('drp-theme');
+ if (!t) t = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
+ document.documentElement.setAttribute('data-theme', t);
+ } catch (e) {}
+ })();
+ </script>
+ <script src="/js/theme-toggle.js" defer></script>
+</head>
+<body>
diff --git a/views/partials/header.ejs b/views/partials/header.ejs
new file mode 100644
index 0000000..8b12db0
--- /dev/null
+++ b/views/partials/header.ejs
@@ -0,0 +1,17 @@
+<header class="site-header">
+ <div class="wrap">
+ <a class="brand" href="/">
+ <span class="brand-mark">DR</span>
+ <span class="brand-name">Designer Representatives</span>
+ </a>
+ <nav class="nav">
+ <a href="/reps">Browse Reps</a>
+ <a href="/about">About</a>
+ <a href="/claim">List Your Agency</a>
+ </nav>
+ <button id="theme-toggle" class="theme-toggle" type="button" aria-label="Toggle dark / light theme">
+ <span class="theme-toggle-sun">☀</span>
+ <span class="theme-toggle-moon">☾</span>
+ </button>
+ </div>
+</header>
diff --git a/views/public/404.ejs b/views/public/404.ejs
new file mode 100644
index 0000000..02380bd
--- /dev/null
+++ b/views/public/404.ejs
@@ -0,0 +1,11 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+<main class="error-page">
+ <section class="section">
+ <div class="wrap narrow">
+ <h1>Not found</h1>
+ <p>The page you tried to reach is not in the directory. Try the <a href="/reps">full reps list</a> or <a href="/">the homepage</a>.</p>
+ </div>
+ </section>
+</main>
+<%- include('../partials/footer') %>
diff --git a/views/public/about.ejs b/views/public/about.ejs
new file mode 100644
index 0000000..1f64956
--- /dev/null
+++ b/views/public/about.ejs
@@ -0,0 +1,48 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+
+<main class="about-page">
+ <section class="section">
+ <div class="wrap narrow">
+ <h1>About Designer Representatives</h1>
+ <p class="lede">
+ We index the independent sales agencies that bring textile, wallcovering,
+ and contract lines to designers, showrooms, and specifiers.
+ </p>
+
+ <h2>Why a directory of reps, not brands?</h2>
+ <p>
+ When a designer specs a line, the rep is who actually services the
+ project — sample logistics, lead-time questions, claims, in-showroom
+ presentations, dealer pricing. Brand websites rarely surface the rep
+ for a given territory. We do.
+ </p>
+
+ <h2>How listings work</h2>
+ <ul class="prose">
+ <li>Listings are <strong>free</strong>. We do not charge for placement and we do not run paid ads above organic results.</li>
+ <li>Initial listings are seeded from publicly available agency websites.</li>
+ <li>Agency owners can <a href="/claim">claim</a> their profile to update lines, territories, contact, and bio.</li>
+ <li>We do not sell rep contact data.</li>
+ </ul>
+
+ <h2>Scope</h2>
+ <p>
+ We cover U.S. independent rep agencies serving:
+ residential interior design, hospitality, contract / commercial, healthcare,
+ education, retail, office, hotel brand, F&B, and luxury / boutique
+ verticals. International rep agencies are added on request.
+ </p>
+
+ <h2>Who runs this</h2>
+ <p>
+ Designer Representatives is an editorial sister property of
+ <a href="https://designerwallcoverings.com" rel="noopener">Designer Wallcoverings</a>,
+ a Sherman Oaks–based wallcovering and textile dealer. We do not represent
+ a single line; we map the rep landscape.
+ </p>
+ </div>
+ </section>
+</main>
+
+<%- include('../partials/footer') %>
diff --git a/views/public/claim.ejs b/views/public/claim.ejs
new file mode 100644
index 0000000..03ff474
--- /dev/null
+++ b/views/public/claim.ejs
@@ -0,0 +1,37 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+
+<main class="claim-page">
+ <section class="section">
+ <div class="wrap narrow">
+ <h1>List or claim your rep agency</h1>
+ <p class="lede">
+ If your agency belongs in the directory or you'd like to claim an
+ existing listing, email us. We do not gate listings or charge for
+ placement.
+ </p>
+
+ <div class="claim-callout">
+ <p>
+ <strong>Email:</strong>
+ <a href="mailto:info@designerrepresentatives.com?subject=Listing%20request%20%E2%80%94%20%5Bagency%20name%5D">info@designerrepresentatives.com</a>
+ </p>
+ <p>Include in your email:</p>
+ <ul class="prose">
+ <li>Agency name and principal contact</li>
+ <li>City & territories covered (state codes are fine)</li>
+ <li>Lines you currently represent</li>
+ <li>Verticals (residential / hospitality / contract / healthcare / etc.)</li>
+ <li>Best public contact URL or phone</li>
+ <li>If you're claiming an existing listing, the URL of that listing</li>
+ </ul>
+ </div>
+
+ <p class="muted small">
+ We typically publish updates within 1–2 business days. Listings remain free.
+ </p>
+ </div>
+ </section>
+</main>
+
+<%- include('../partials/footer') %>
diff --git a/views/public/error.ejs b/views/public/error.ejs
new file mode 100644
index 0000000..2e847ac
--- /dev/null
+++ b/views/public/error.ejs
@@ -0,0 +1,12 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+<main class="error-page">
+ <section class="section">
+ <div class="wrap narrow">
+ <h1>Server error</h1>
+ <p><%= typeof message !== 'undefined' ? message : 'Something went wrong.' %></p>
+ <p><a href="/">Return home</a></p>
+ </div>
+ </section>
+</main>
+<%- include('../partials/footer') %>
diff --git a/views/public/home.ejs b/views/public/home.ejs
new file mode 100644
index 0000000..0cd4999
--- /dev/null
+++ b/views/public/home.ejs
@@ -0,0 +1,74 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+
+<main class="home">
+ <section class="hero">
+ <div class="wrap">
+ <p class="kicker">Independent sales reps · designer trade · showrooms · contract</p>
+ <h1>Find the rep behind the line.</h1>
+ <p class="lede">
+ Designer Representatives is the canonical directory of independent
+ sales agencies that bring textile, wallcovering, and contract lines
+ to interior designers, showrooms, hospitality groups, and specifiers.
+ </p>
+ <div class="hero-cta">
+ <a class="btn primary" href="/reps">Browse the directory</a>
+ <a class="btn ghost" href="/claim">List your agency</a>
+ </div>
+ </div>
+ </section>
+
+ <section class="section">
+ <div class="wrap">
+ <div class="section-head">
+ <h2>Recently added</h2>
+ <a class="muted" href="/reps">View all reps →</a>
+ </div>
+
+ <%- include('../partials/grid-controls', { total, sortKey }) %>
+
+ <div class="rep-grid" data-rep-grid>
+ <% reps.slice(0, 24).forEach(function (r) { %>
+ <article class="rep-card">
+ <header>
+ <h3><a href="/reps/<%= r.slug %>"><%= r.agency %></a></h3>
+ <p class="muted"><%= r.name %><% if (r.city) { %> · <%= r.city %><% } %></p>
+ </header>
+ <% if (r.lines && r.lines.length) { %>
+ <p class="lines"><strong>Lines:</strong> <%= r.lines.join(', ') %></p>
+ <% } %>
+ <% if (r.territories && r.territories.length) { %>
+ <p class="territories"><strong>Territory:</strong> <%= r.territories.join(' · ') %></p>
+ <% } %>
+ <% if (r.vertical && r.vertical.length) { %>
+ <ul class="tags">
+ <% r.vertical.forEach(function (v) { %><li><%= v %></li><% }) %>
+ </ul>
+ <% } %>
+ </article>
+ <% }); %>
+ </div>
+ </div>
+ </section>
+
+ <section class="section alt">
+ <div class="wrap two-col">
+ <div>
+ <h2>How designers use this directory</h2>
+ <ol class="prose">
+ <li><strong>Find the rep, not the brand.</strong> When you spec a line, the independent rep is who actually services your project — sample logistics, lead-time, claims, in-showroom presentations.</li>
+ <li><strong>Filter by territory + vertical.</strong> A residential rep in CA will not have the same showrooms as a healthcare rep in TX.</li>
+ <li><strong>Reach out directly.</strong> Each listing links to the agency's own contact page. We do not gate intros.</li>
+ </ol>
+ </div>
+ <div>
+ <h2>For rep agencies</h2>
+ <p>If your agency is listed and you want to claim or update your profile — or you'd like to be added — use the <a href="/claim">listing form</a>. Listings are free.</p>
+ <p class="muted">We do not sell rep contact data. We do not run paid placement.</p>
+ </div>
+ </div>
+ </section>
+</main>
+
+<%- include('../partials/footer') %>
+<script src="/js/grid-controls.js" defer></script>
diff --git a/views/public/rep.ejs b/views/public/rep.ejs
new file mode 100644
index 0000000..9eb1494
--- /dev/null
+++ b/views/public/rep.ejs
@@ -0,0 +1,54 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+
+<main class="rep-detail">
+ <section class="section">
+ <div class="wrap narrow">
+ <p class="muted"><a href="/reps">← Back to all reps</a></p>
+ <h1><%= rep.agency %></h1>
+ <p class="lede"><%= rep.name %><% if (rep.city) { %> · <%= rep.city %><% } %></p>
+
+ <% if (rep.lines && rep.lines.length) { %>
+ <h2>Lines represented</h2>
+ <ul class="pills">
+ <% rep.lines.forEach(function (l) { %><li><%= l %></li><% }) %>
+ </ul>
+ <% } %>
+
+ <% if (rep.territories && rep.territories.length) { %>
+ <h2>Territory</h2>
+ <p><%= rep.territories.join(' · ') %></p>
+ <% } %>
+
+ <% if (rep.vertical && rep.vertical.length) { %>
+ <h2>Verticals</h2>
+ <ul class="tags">
+ <% rep.vertical.forEach(function (v) { %><li><%= v %></li><% }) %>
+ </ul>
+ <% } %>
+
+ <% if (rep.bio) { %>
+ <h2>About</h2>
+ <p><%= rep.bio %></p>
+ <% } %>
+
+ <h2>Contact</h2>
+ <p>
+ <% if (rep.contact_url) { %>
+ <a class="btn primary" href="<%= rep.contact_url %>" rel="nofollow noopener" target="_blank">Reach out via the agency website →</a>
+ <% } else if (rep.email) { %>
+ <a class="btn primary" href="mailto:<%= rep.email %>">Email <%= rep.agency %> →</a>
+ <% } else { %>
+ <em class="muted">Direct contact not yet listed. <a href="/claim">Claim this listing</a> to add it.</em>
+ <% } %>
+ </p>
+
+ <p class="muted small">
+ Is this your agency? <a href="/claim">Claim or update this listing</a>.
+ Designer Representatives is independent of the lines and showrooms named on this page.
+ </p>
+ </div>
+ </section>
+</main>
+
+<%- include('../partials/footer') %>
diff --git a/views/public/reps.ejs b/views/public/reps.ejs
new file mode 100644
index 0000000..cd13101
--- /dev/null
+++ b/views/public/reps.ejs
@@ -0,0 +1,63 @@
+<%- include('../partials/head', { title }) %>
+<%- include('../partials/header') %>
+
+<main class="reps-page">
+ <section class="section">
+ <div class="wrap">
+ <h1>Browse Sales Reps</h1>
+ <p class="muted">Filter by territory, vertical, or search by agency / city / name.</p>
+
+ <form class="filter-form" method="get" action="/reps">
+ <label class="control">
+ <span>Search</span>
+ <input type="search" name="q" placeholder="agency, name, or city" value="<%= filter.q || '' %>">
+ </label>
+ <label class="control">
+ <span>Territory</span>
+ <input type="text" name="territory" placeholder="e.g. CA" maxlength="2" value="<%= filter.territory || '' %>">
+ </label>
+ <label class="control">
+ <span>Vertical</span>
+ <select name="vertical">
+ <option value="">All</option>
+ <% ['Residential','Hospitality','Contract','Commercial','Healthcare','Education','Hotel Brand','Boutique','Luxury','Resort','Retail','Office','F&B'].forEach(function (v) { %>
+ <option value="<%= v %>" <%= filter.vertical === v ? 'selected' : '' %>><%= v %></option>
+ <% }) %>
+ </select>
+ </label>
+ <button class="btn primary" type="submit">Filter</button>
+ <a class="btn ghost" href="/reps">Reset</a>
+ </form>
+
+ <%- include('../partials/grid-controls', { total, sortKey }) %>
+
+ <div class="rep-grid" data-rep-grid>
+ <% reps.forEach(function (r) { %>
+ <article class="rep-card">
+ <header>
+ <h3><a href="/reps/<%= r.slug %>"><%= r.agency %></a></h3>
+ <p class="muted"><%= r.name %><% if (r.city) { %> · <%= r.city %><% } %></p>
+ </header>
+ <% if (r.lines && r.lines.length) { %>
+ <p class="lines"><strong>Lines:</strong> <%= r.lines.join(', ') %></p>
+ <% } %>
+ <% if (r.territories && r.territories.length) { %>
+ <p class="territories"><strong>Territory:</strong> <%= r.territories.join(' · ') %></p>
+ <% } %>
+ <% if (r.vertical && r.vertical.length) { %>
+ <ul class="tags">
+ <% r.vertical.forEach(function (v) { %><li><%= v %></li><% }) %>
+ </ul>
+ <% } %>
+ </article>
+ <% }); %>
+ <% if (!reps.length) { %>
+ <p class="empty">No reps match those filters yet. Try resetting or <a href="/claim">add yours</a>.</p>
+ <% } %>
+ </div>
+ </div>
+ </section>
+</main>
+
+<%- include('../partials/footer') %>
+<script src="/js/grid-controls.js" defer></script>
(oldest)
·
back to Designerrepresentatives
·
polish home: editorial hero headline + anatomy 3-card sectio c2597c9 →