[object Object]

← back to AsSeenInMovies

feat(asseeninmovies/tick0): scaffold + schema + AI placeholder + plan

92aef2254ca3cb70327f25bc8496424853af1c62 · 2026-05-12 06:50:49 -0700 · SteveStudio2

Files touched

Diff

commit 92aef2254ca3cb70327f25bc8496424853af1c62
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Tue May 12 06:50:49 2026 -0700

    feat(asseeninmovies/tick0): scaffold + schema + AI placeholder + plan
---
 .env.example                |  15 +
 .gitignore                  |   6 +
 data/schema.sql             | 154 +++++++
 docs/PLAN.md                |  88 ++++
 package-lock.json           | 987 ++++++++++++++++++++++++++++++++++++++++++++
 package.json                |  20 +
 public/img/made-with-ai.svg |  58 +++
 server.js                   | 208 ++++++++++
 8 files changed, 1536 insertions(+)

diff --git a/.env.example b/.env.example
new file mode 100644
index 0000000..a362d68
--- /dev/null
+++ b/.env.example
@@ -0,0 +1,15 @@
+PORT=9742
+DATABASE_URL=postgresql:///dw_unified?host=/tmp&user=stevestudio2
+
+# Public-data sources — register a free key per source; never commit real keys.
+# TMDB: https://www.themoviedb.org/settings/api  (v3 key, 50 req/sec, attribution required)
+TMDB_API_KEY=
+# OMDb: https://www.omdbapi.com/apikey.aspx  (free tier 1000/day, public Wikipedia/IMDb facts)
+OMDB_API_KEY=
+# Wikidata: no key needed — SPARQL endpoint at https://query.wikidata.org/sparql
+# MovieLens: dataset download (no API key, file-based)
+
+# Premium upgrade tier — Stripe lives in secrets-manager.
+# Big Red has the same Stripe wiring; this project consumes via env at runtime.
+STRIPE_SECRET_KEY=
+STRIPE_WEBHOOK_SECRET=
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e8685bd
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+node_modules/
+.env
+tmp.log
+data/raw/
+*.log
+.DS_Store
diff --git a/data/schema.sql b/data/schema.sql
new file mode 100644
index 0000000..1b0e377
--- /dev/null
+++ b/data/schema.sql
@@ -0,0 +1,154 @@
+-- AsSeenInMovies — DB schema (lives in dw_unified alongside thesetdecorator data
+-- so cross-references between set-decorators, films, and SPOTTED products
+-- stay cheap. Tables are namespaced asim_* to keep them clearly separable.)
+--
+-- IMPORTANT: only PUBLIC data goes in here. Steve's standing rule:
+--   - facts (titles, dates, names, runtimes, credits) — public domain, ingest freely
+--   - poster/headshot IMAGES — never copied from IMDb. Sources we accept:
+--       'made-with-ai'         (our generated placeholder)
+--       'wikidata-commons'     (Wikimedia, CC-BY-SA or CC0)
+--       'tmdb-attribution'     (TMDB, with required "powered by TMDB" attribution)
+--       'production-still-pd'  (truly public-domain, pre-1929)
+--       'set-decorator-claim'  (uploaded by claimed decorator per their license)
+--       'studio-press-kit'     (when explicitly press-kit / EPK)
+
+CREATE TABLE IF NOT EXISTS asim_movies (
+  id              BIGSERIAL PRIMARY KEY,
+  tmdb_id         BIGINT UNIQUE,
+  imdb_id         TEXT,
+  wikidata_id     TEXT,
+  title           TEXT NOT NULL,
+  original_title  TEXT,
+  release_year    INT,
+  release_date    DATE,
+  overview        TEXT,
+  tagline         TEXT,
+  runtime_min     INT,
+  genres          TEXT[],
+  original_language CHAR(2),
+  homepage        TEXT,
+  status          TEXT,                -- 'Released', 'Post Production', 'Rumored', etc.
+  budget          BIGINT,
+  revenue         BIGINT,
+  vote_average    REAL,
+  vote_count      INT,
+  popularity      REAL,
+  collection_id   BIGINT,
+  collection_name TEXT,
+  poster_source   TEXT DEFAULT 'made-with-ai',
+  poster_url      TEXT,
+  backdrop_source TEXT DEFAULT 'made-with-ai',
+  backdrop_url    TEXT,
+  created_at      TIMESTAMPTZ DEFAULT NOW(),
+  updated_at      TIMESTAMPTZ DEFAULT NOW()
+);
+CREATE INDEX IF NOT EXISTS idx_asim_movies_tmdb   ON asim_movies(tmdb_id);
+CREATE INDEX IF NOT EXISTS idx_asim_movies_imdb   ON asim_movies(imdb_id);
+CREATE INDEX IF NOT EXISTS idx_asim_movies_year   ON asim_movies(release_year);
+CREATE INDEX IF NOT EXISTS idx_asim_movies_title  ON asim_movies USING gin (to_tsvector('english', title));
+
+CREATE TABLE IF NOT EXISTS asim_people (
+  id              BIGSERIAL PRIMARY KEY,
+  tmdb_id         BIGINT UNIQUE,
+  imdb_id         TEXT UNIQUE,
+  wikidata_id     TEXT,
+  sag_aftra_id    TEXT,                -- if we can confirm via SAG directory
+  dga_id          TEXT,                -- if we can confirm via DGA directory
+  full_name       TEXT NOT NULL,
+  also_known_as   TEXT[],
+  birth_year      INT,
+  birth_date      DATE,
+  death_year      INT,
+  death_date      DATE,
+  birth_place     TEXT,
+  primary_profession TEXT[],
+  union_memberships TEXT[],            -- 'sag-aftra' | 'dga' | 'wga' | 'pga' | 'iatse-44' | 'iatse-600' | etc.
+  agent_name      TEXT,
+  agent_company   TEXT,
+  publicist_name  TEXT,
+  bio             TEXT,
+  headshot_source TEXT DEFAULT 'made-with-ai',
+  headshot_url    TEXT,
+  -- Premium upgrade tier (paid claim by the actor / actress / crew member):
+  claimed_by_email   TEXT,
+  claimed_at         TIMESTAMPTZ,
+  claim_verification TEXT,             -- 'manual' | 'stripe-customer-portal' | 'union-letterhead' | etc.
+  premium_tier       TEXT,             -- 'basic' | 'verified' | 'flagship'
+  premium_expires_at TIMESTAMPTZ,
+  premium_extras     JSONB,            -- {reels:[], current_projects:[], contact_form_enabled, custom_bio, etc.}
+  created_at         TIMESTAMPTZ DEFAULT NOW(),
+  updated_at         TIMESTAMPTZ DEFAULT NOW()
+);
+CREATE INDEX IF NOT EXISTS idx_asim_people_tmdb     ON asim_people(tmdb_id);
+CREATE INDEX IF NOT EXISTS idx_asim_people_imdb     ON asim_people(imdb_id);
+CREATE INDEX IF NOT EXISTS idx_asim_people_name     ON asim_people USING gin (to_tsvector('english', full_name));
+CREATE INDEX IF NOT EXISTS idx_asim_people_prof     ON asim_people USING gin (primary_profession);
+CREATE INDEX IF NOT EXISTS idx_asim_people_union    ON asim_people USING gin (union_memberships);
+
+CREATE TABLE IF NOT EXISTS asim_credits (
+  id               BIGSERIAL PRIMARY KEY,
+  person_id        BIGINT NOT NULL REFERENCES asim_people(id) ON DELETE CASCADE,
+  movie_id         BIGINT NOT NULL REFERENCES asim_movies(id) ON DELETE CASCADE,
+  role             TEXT NOT NULL,    -- canonical role bucket: actor/director/writer/producer/cinematographer/editor/composer/production_designer/set_decorator/costume_designer/sound_designer/vfx_supervisor/etc.
+  character_name   TEXT,
+  order_idx        INT,
+  job_title        TEXT,             -- specific job title from source (e.g., 'Lead Set Decorator')
+  department       TEXT,             -- 'Acting' | 'Directing' | 'Writing' | 'Camera' | 'Editing' | 'Sound' | 'Art' | 'Costume & Make-Up' | etc.
+  episode_count    INT,              -- for TV
+  source           TEXT NOT NULL,    -- 'tmdb' | 'wikidata' | 'iatse-44-roster' | 'sag-aftra-public' | 'thesetdecorator-roster' | etc.
+  source_record_id TEXT,
+  created_at       TIMESTAMPTZ DEFAULT NOW(),
+  UNIQUE (person_id, movie_id, role, character_name, job_title)
+);
+CREATE INDEX IF NOT EXISTS idx_asim_credits_person  ON asim_credits(person_id);
+CREATE INDEX IF NOT EXISTS idx_asim_credits_movie   ON asim_credits(movie_id);
+CREATE INDEX IF NOT EXISTS idx_asim_credits_role    ON asim_credits(role);
+
+-- The SPOTTED feature — products visible in scenes. Ties into
+-- thesetdecorator catalog, dw_unified.shopify_products, and any other
+-- retailer the production / decorator wants to surface.
+CREATE TABLE IF NOT EXISTS asim_spotted (
+  id                  BIGSERIAL PRIMARY KEY,
+  movie_id            BIGINT NOT NULL REFERENCES asim_movies(id) ON DELETE CASCADE,
+  product_name        TEXT NOT NULL,
+  product_category    TEXT,            -- 'wallpaper' | 'lamp' | 'sofa' | 'wardrobe' | 'prop' | 'wallcovering' | 'art' | 'tableware' | 'rug' | 'lighting' | 'plant' | etc.
+  brand               TEXT,
+  vendor              TEXT,
+  scene_description   TEXT,
+  scene_timecode      TEXT,            -- 'HH:MM:SS' approximate
+  -- Outbound retailer links:
+  shop_url            TEXT,            -- the canonical shop link
+  thesetdecorator_id  TEXT,            -- cross-ref into thesetdecorator catalog
+  dw_sku              TEXT,            -- cross-ref into dw_unified (designer wallcoverings + sister brands)
+  affiliate_partner   TEXT,            -- 'thesetdecorator' | 'amazon-associates' | 'designer-wallcoverings' | etc.
+  -- Image policy:
+  image_source        TEXT DEFAULT 'made-with-ai',
+  image_url           TEXT,
+  -- Provenance:
+  submitted_by_email  TEXT,
+  submitted_by_role   TEXT,            -- 'set_decorator' | 'fan' | 'production_stylist' | 'editor'
+  verified_by         TEXT,            -- internal staff or claimed decorator who confirmed
+  verified_at         TIMESTAMPTZ,
+  votes_up            INT DEFAULT 0,
+  votes_down          INT DEFAULT 0,
+  is_premium_pick     BOOLEAN DEFAULT false,  -- featured in landing carousels (premium upgrade)
+  created_at          TIMESTAMPTZ DEFAULT NOW(),
+  updated_at          TIMESTAMPTZ DEFAULT NOW()
+);
+CREATE INDEX IF NOT EXISTS idx_asim_spotted_movie     ON asim_spotted(movie_id);
+CREATE INDEX IF NOT EXISTS idx_asim_spotted_category  ON asim_spotted(product_category);
+CREATE INDEX IF NOT EXISTS idx_asim_spotted_verified  ON asim_spotted(verified_at);
+CREATE INDEX IF NOT EXISTS idx_asim_spotted_dw_sku    ON asim_spotted(dw_sku);
+
+-- Cross-reference to existing thesetdecorator data. decorator_roster_jsonl is
+-- already 61k rows; this view lets us join without duplicating storage.
+-- Loader populates asim_people from the roster; this table holds the link.
+CREATE TABLE IF NOT EXISTS asim_people_sources (
+  id              BIGSERIAL PRIMARY KEY,
+  person_id       BIGINT NOT NULL REFERENCES asim_people(id) ON DELETE CASCADE,
+  source          TEXT NOT NULL,       -- 'thesetdecorator-roster' | 'sag-aftra-public' | 'iatse-44-roster' | etc.
+  source_record_id TEXT NOT NULL,      -- the foreign key in the source system (e.g. 'nm0002325' for IMDb)
+  source_url      TEXT,
+  ingested_at     TIMESTAMPTZ DEFAULT NOW(),
+  UNIQUE (source, source_record_id)
+);
diff --git a/docs/PLAN.md b/docs/PLAN.md
new file mode 100644
index 0000000..5db7146
--- /dev/null
+++ b/docs/PLAN.md
@@ -0,0 +1,88 @@
+# AsSeenInMovies — build plan
+
+## Why
+A clean, public-data-only IMDb-class reference for film + TV — facts only,
+no IMDb visual assets. Hooks into:
+- **thesetdecorator** (61,379-row set-decorator roster, 858 film-pieces, SDSA hub) — shared person + credit data
+- **dw_unified.shopify_products** — wallpaper / wallcovering / fabric placements
+- **asseeninmovies.com** (this) — SPOTTED feature (products visible in scenes) + premium claim-able profiles
+
+## Hard rules (Steve standing rules)
+1. **NEVER use visual assets sourced from IMDb.** Posters/headshots come from TMDB (with required attribution), Wikimedia Commons (CC), public-domain stills, or our `/img/made-with-ai.svg` placeholder.
+2. **Public data only.** Facts (titles, dates, names, credits) are public; images aren't.
+3. **No DNS / destructive ops / outbound email** during the YOLO loop.
+4. **Local LLMs only** for any text generation (Ollama qwen3:14b).
+5. **Reversible per tick.**
+
+## Public data sources
+
+### Movies + people (facts)
+| Source | Auth | License | Notes |
+|---|---|---|---|
+| TMDB API v3 | Free key | CC-by-attribution | 50 req/sec, posters available with required "powered by TMDB" attribution. Best primary source. |
+| Wikidata SPARQL | None | CC0 | Cross-references TMDB ↔ IMDb ↔ Wikipedia ↔ Wikicommons images. |
+| OMDb API | Free key (1000/day) | Free public | Surfaces public Wikipedia/IMDb-derived facts, no IMDb images. |
+| MovieLens 25M | Download | Research-friendly | Ratings + tag genomes for 25k+ movies. |
+| Library of Congress film | Download | Public domain | Pre-1929 films, fully PD. |
+| OpenSubtitles API | Free key | Mixed | Subtitle/dialogue search. |
+
+### Film + TV union directories
+| Union | Surface | Reach |
+|---|---|---|
+| SAG-AFTRA | sagaftra.org/find-actors | ~160k actors, partial public profile |
+| DGA | dga.org | ~19k directors + unit dirs / AD's / production mgrs |
+| WGA West / East | wgawest.org / wgaeast.org | ~25k writers (West) + ~5k (East) |
+| PGA | producersguild.org | ~8k producers |
+| AICP | aicp.com | commercials production companies |
+| IATSE Local 44 | iatselocal44.org | set decorators / propmakers / leadpersons |
+| IATSE Local 600 | cameraguild.com | cinematographers / camera ops |
+| IATSE Local 700 | editorsguild.com | picture + sound editors |
+| IATSE Local 800 (ADG) | adg.org | production designers / art directors |
+| IATSE Local 871 | iatselocal871.org | script supervisors, costumers |
+| IATSE Local 891 | iatse.com | many regional locals |
+| ACTRA | actra.ca | Canadian actors |
+| BAFTA / BFI | bfi.org.uk | British film archive |
+| SDSA | setdecorators.org | already imported by thesetdecorator |
+
+### SPOTTED / product-placement sources
+| Source | License |
+|---|---|
+| thesetdecorator film-pieces-seed.json | already ours |
+| Heritage Auctions / Profiles in History | public auction lots |
+| Studio EPK press kits | press-use OK |
+| r/MovieDetails / r/WhatsThisFurnitureFromAITHO | user-submitted, attribution req'd |
+| Set-decorator claim submissions | volunteered |
+| DW SKU cross-references | internal |
+
+## Tick plan
+
+- **Tick 0 (DONE)** — scaffold project, schema, server, /img/made-with-ai.svg, plan doc.
+- **Tick 1** — TMDB ingest: top 1000 movies by popularity → asim_movies, with cross-ref to imdb_id + wikidata_id. Skip poster downloads — store TMDB URL + attribution metadata.
+- **Tick 2** — Import thesetdecorator/data/decorator-roster.jsonl (61k rows) → asim_people via asim_people_sources. Tag union_memberships=['iatse-44']. Credits row per movie in their roster.
+- **Tick 3** — Wikidata SPARQL enrichment: for each asim_movie, fetch wikidata_id, then film-poster-url-from-commons + cast wikidata Q-IDs. Cache locally.
+- **Tick 4** — TMDB cast/crew ingest for the top 1000 movies — populates asim_credits across actors/directors/writers/composers/production-designers/set-decorators.
+- **Tick 5** — Public-data SAG-AFTRA actor scrape (rate-limited, structured fields only). Stamp sag_aftra_id + union_memberships=['sag-aftra'].
+- **Tick 6** — DGA + WGA public directory imports for directors/writers.
+- **Tick 7** — SPOTTED schema bootstrap: import thesetdecorator/data/film-pieces-seed.json (858 rows) into asim_spotted. Match scene→movie via TMDB title search.
+- **Tick 8** — `/movie/:id` HTML page (poster grid, credits sorted by department, SPOTTED row).
+- **Tick 9** — `/person/:id` HTML page (filmography table, premium badge if claimed).
+- **Tick 10** — Premium upgrade tier: Stripe checkout → claim flow → email verification → premium_extras JSONB form (reels URL, current projects, contact form toggle).
+- **Tick 11** — SPOTTED submission flow (public form, requires turnstile / email verification).
+- **Tick 12** — TMDB top 10k extension. Wikidata enrichment for the next 10k.
+
+## Cross-project hooks
+- **thesetdecorator** → shared `asim_people` rows by imdb_id; `asim_people_sources` stores the cross-ref. Both projects read each other's data via SQL views (next tick).
+- **dw_unified** → `asim_spotted.dw_sku` joins to `shopify_products` for wallpaper/fabric placements.
+- **Big Red** → `asim_*` tables can be queried from Big Red's admin mode for fact-checking ("who decorated the Knives Out set?").
+
+## Ports + processes
+- `:9742` — asseeninmovies (Mac2, this project)
+- `:9716` — thesetdecorator (Mac2, existing)
+- production: bound to `asseeninmovies.com` once tunnel/Kamatera deploy is wired.
+
+## Files
+- `server.js` — Express, PG, search/movie/person/spotted endpoints
+- `data/schema.sql` — asim_movies, asim_people, asim_credits, asim_spotted, asim_people_sources
+- `public/img/made-with-ai.svg` — universal poster/headshot placeholder
+- `scrapers/*` — public-data ingest scripts (created per-tick)
+- `docs/PLAN.md` — this file
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..3fde1c9
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,987 @@
+{
+  "name": "asseeninmovies",
+  "version": "0.1.0",
+  "lockfileVersion": 3,
+  "requires": true,
+  "packages": {
+    "": {
+      "name": "asseeninmovies",
+      "version": "0.1.0",
+      "dependencies": {
+        "dotenv": "^16.6.1",
+        "express": "^4.22.2",
+        "pg": "^8.20.0"
+      }
+    },
+    "node_modules/accepts": {
+      "version": "1.3.8",
+      "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz",
+      "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==",
+      "license": "MIT",
+      "dependencies": {
+        "mime-types": "~2.1.34",
+        "negotiator": "0.6.3"
+      },
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/array-flatten": {
+      "version": "1.1.1",
+      "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz",
+      "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==",
+      "license": "MIT"
+    },
+    "node_modules/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/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/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.2",
+      "resolved": "https://registry.npmjs.org/express/-/express-4.22.2.tgz",
+      "integrity": "sha512-IuL+Elrou2ZvCFHs18/CIzy2Nzvo25nZ1/D2eIZlz7c+QUayAcYoiM2BthCjs+EBHVpjYjcuLDAiCWgeIX3X1Q==",
+      "license": "MIT",
+      "dependencies": {
+        "accepts": "~1.3.8",
+        "array-flatten": "1.1.1",
+        "body-parser": "~1.20.5",
+        "content-disposition": "~0.5.4",
+        "content-type": "~1.0.4",
+        "cookie": "~0.7.1",
+        "cookie-signature": "~1.0.6",
+        "debug": "2.6.9",
+        "depd": "2.0.0",
+        "encodeurl": "~2.0.0",
+        "escape-html": "~1.0.3",
+        "etag": "~1.8.1",
+        "finalhandler": "~1.3.1",
+        "fresh": "~0.5.2",
+        "http-errors": "~2.0.0",
+        "merge-descriptors": "1.0.3",
+        "methods": "~1.1.2",
+        "on-finished": "~2.4.1",
+        "parseurl": "~1.3.3",
+        "path-to-regexp": "~0.1.12",
+        "proxy-addr": "~2.0.7",
+        "qs": "~6.15.1",
+        "range-parser": "~1.2.1",
+        "safe-buffer": "5.2.1",
+        "send": "~0.19.0",
+        "serve-static": "~1.16.2",
+        "setprototypeof": "1.2.0",
+        "statuses": "~2.0.1",
+        "type-is": "~1.6.18",
+        "utils-merge": "1.0.1",
+        "vary": "~1.1.2"
+      },
+      "engines": {
+        "node": ">= 0.10.0"
+      },
+      "funding": {
+        "type": "opencollective",
+        "url": "https://opencollective.com/express"
+      }
+    },
+    "node_modules/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/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.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/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.15.1",
+      "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz",
+      "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==",
+      "license": "BSD-3-Clause",
+      "dependencies": {
+        "side-channel": "^1.1.0"
+      },
+      "engines": {
+        "node": ">=0.6"
+      },
+      "funding": {
+        "url": "https://github.com/sponsors/ljharb"
+      }
+    },
+    "node_modules/range-parser": {
+      "version": "1.2.1",
+      "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz",
+      "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==",
+      "license": "MIT",
+      "engines": {
+        "node": ">= 0.6"
+      }
+    },
+    "node_modules/raw-body": {
+      "version": "2.5.3",
+      "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.3.tgz",
+      "integrity": "sha512-s4VSOf6yN0rvbRZGxs8Om5CWj6seneMwK3oDb4lWDH0UPhWcxwOWw5+qk24bxq87szX1ydrwylIOp2uG1ojUpA==",
+      "license": "MIT",
+      "dependencies": {
+        "bytes": "~3.1.2",
+        "http-errors": "~2.0.1",
+        "iconv-lite": "~0.4.24",
+        "unpipe": "~1.0.0"
+      },
+      "engines": {
+        "node": ">= 0.8"
+      }
+    },
+    "node_modules/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..8ac524a
--- /dev/null
+++ b/package.json
@@ -0,0 +1,20 @@
+{
+  "name": "asseeninmovies",
+  "version": "0.1.0",
+  "private": true,
+  "description": "AsSeenInMovies — public-data film + TV reference with SPOTTED product placements and premium claim-able profiles. Ties into thesetdecorator + DW catalog.",
+  "main": "server.js",
+  "scripts": {
+    "start": "node server.js",
+    "dev": "PORT=9742 node server.js",
+    "ingest:tmdb": "node scrapers/tmdb-ingest.js",
+    "ingest:wikidata": "node scrapers/wikidata-enrich.js",
+    "ingest:thesetdecorator": "node scrapers/import-thesetdecorator-roster.js",
+    "ingest:sag-aftra": "node scrapers/sag-aftra-public.js"
+  },
+  "dependencies": {
+    "dotenv": "^16.6.1",
+    "express": "^4.22.2",
+    "pg": "^8.20.0"
+  }
+}
diff --git a/public/img/made-with-ai.svg b/public/img/made-with-ai.svg
new file mode 100644
index 0000000..c852f5d
--- /dev/null
+++ b/public/img/made-with-ai.svg
@@ -0,0 +1,58 @@
+<!-- AsSeenInMovies — universal placeholder image.
+     Used wherever a portrait/poster/still would normally appear but we have
+     no rights-clean source. Steve's standing rule: NEVER use IMDb visual
+     assets. This SVG ships as the canonical fallback. -->
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 600 800" preserveAspectRatio="xMidYMid slice" aria-label="Image not available — made with AI">
+  <defs>
+    <linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
+      <stop offset="0%"  stop-color="#1a1714"/>
+      <stop offset="55%" stop-color="#2a2520"/>
+      <stop offset="100%" stop-color="#0d0c0a"/>
+    </linearGradient>
+    <radialGradient id="glow" cx="50%" cy="38%" r="55%">
+      <stop offset="0%"  stop-color="#c9a14b" stop-opacity="0.22"/>
+      <stop offset="60%" stop-color="#c9a14b" stop-opacity="0.06"/>
+      <stop offset="100%" stop-color="#c9a14b" stop-opacity="0"/>
+    </radialGradient>
+    <pattern id="grid" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse">
+      <path d="M40 0 L0 0 0 40" fill="none" stroke="#c9a14b" stroke-opacity="0.05" stroke-width="0.6"/>
+    </pattern>
+  </defs>
+
+  <!-- Base + texture -->
+  <rect width="600" height="800" fill="url(#bg)"/>
+  <rect width="600" height="800" fill="url(#grid)"/>
+  <rect width="600" height="800" fill="url(#glow)"/>
+
+  <!-- Diagonal watermark bands -->
+  <g transform="translate(300 400) rotate(-22)" opacity="0.30">
+    <text x="0" y="-180" font-family="ui-monospace,Menlo,Monaco,monospace" font-size="42" font-weight="800" fill="#c9a14b" text-anchor="middle" letter-spacing="14">MADE&#160;WITH&#160;AI</text>
+    <text x="0" y="-90"  font-family="ui-monospace,Menlo,Monaco,monospace" font-size="42" font-weight="800" fill="#c9a14b" text-anchor="middle" letter-spacing="14" opacity="0.50">MADE&#160;WITH&#160;AI</text>
+    <text x="0" y="0"    font-family="ui-monospace,Menlo,Monaco,monospace" font-size="42" font-weight="800" fill="#c9a14b" text-anchor="middle" letter-spacing="14" opacity="0.85">MADE&#160;WITH&#160;AI</text>
+    <text x="0" y="90"   font-family="ui-monospace,Menlo,Monaco,monospace" font-size="42" font-weight="800" fill="#c9a14b" text-anchor="middle" letter-spacing="14" opacity="0.50">MADE&#160;WITH&#160;AI</text>
+    <text x="0" y="180"  font-family="ui-monospace,Menlo,Monaco,monospace" font-size="42" font-weight="800" fill="#c9a14b" text-anchor="middle" letter-spacing="14" opacity="0.30">MADE&#160;WITH&#160;AI</text>
+  </g>
+
+  <!-- Center mark — AI generator glyph (abstract camera aperture + neuron) -->
+  <g transform="translate(300 400)" fill="none" stroke="#f0ebe3" stroke-width="2.5">
+    <circle r="62" stroke-opacity="0.85"/>
+    <circle r="38" stroke-opacity="0.55"/>
+    <circle r="14" stroke-opacity="0.95" fill="#c9a14b" fill-opacity="0.18"/>
+    <!-- aperture blades -->
+    <g stroke-opacity="0.45">
+      <line x1="0" y1="-62" x2="0" y2="-38"/>
+      <line x1="0" y1="62"  x2="0" y2="38"/>
+      <line x1="-62" y1="0" x2="-38" y2="0"/>
+      <line x1="62" y1="0"  x2="38" y2="0"/>
+      <line x1="-44" y1="-44" x2="-27" y2="-27"/>
+      <line x1="44" y1="-44"  x2="27" y2="-27"/>
+      <line x1="-44" y1="44"  x2="-27" y2="27"/>
+      <line x1="44" y1="44"   x2="27" y2="27"/>
+    </g>
+  </g>
+
+  <!-- Top mark + bottom caption -->
+  <text x="300" y="60" font-family="Cormorant Garamond, Georgia, serif" font-style="italic" font-weight="300" font-size="22" fill="#f0ebe3" text-anchor="middle" opacity="0.75" letter-spacing="3">AsSeenInMovies</text>
+  <text x="300" y="730" font-family="-apple-system,BlinkMacSystemFont,Inter,sans-serif" font-size="11" font-weight="700" fill="#c9a14b" text-anchor="middle" letter-spacing="6" opacity="0.85">PLACEHOLDER · MADE WITH AI</text>
+  <text x="300" y="755" font-family="-apple-system,BlinkMacSystemFont,Inter,sans-serif" font-size="9.5" fill="#f0ebe3" text-anchor="middle" opacity="0.45" letter-spacing="2">No rights-cleared image available for this title.</text>
+</svg>
diff --git a/server.js b/server.js
new file mode 100644
index 0000000..66ac76e
--- /dev/null
+++ b/server.js
@@ -0,0 +1,208 @@
+'use strict';
+
+// AsSeenInMovies — IMDb-class movie + people DB tied to thesetdecorator's
+// 61k-row set-decorator roster and dw_unified's product catalog. Adds a
+// SPOTTED feature for products visible in scenes, premium upgrade tier
+// for claimed actor/actress/crew profiles, and an AI-generated placeholder
+// image for every poster/headshot we don't have rights-cleared.
+//
+// Steve's standing rules baked in:
+//   - NEVER serve visual assets sourced from IMDb. Posters/headshots come
+//     from TMDB (with attribution), Wikimedia Commons (CC), public-domain
+//     production stills, or our /img/made-with-ai.svg fallback.
+//   - Public data only. Facts are public; images aren't.
+//   - Local LLMs only for any text generation work (no API costs).
+
+require('dotenv').config();
+const express = require('express');
+const path = require('path');
+const fs = require('fs');
+const { Pool } = require('pg');
+
+const PORT = parseInt(process.env.PORT || '9742', 10);
+const DB_URL = process.env.DATABASE_URL || 'postgresql:///dw_unified?host=/tmp&user=stevestudio2';
+
+const app = express();
+app.use(express.json({ limit: '2mb' }));
+app.disable('x-powered-by');
+
+const pool = new Pool({ connectionString: DB_URL, max: 6, idleTimeoutMillis: 20_000 });
+pool.on('error', (e) => console.error('[pg]', e.message));
+
+// Apply schema on startup if asim_movies doesn't exist yet — idempotent.
+async function ensureSchema() {
+  try {
+    const r = await pool.query(`SELECT to_regclass('public.asim_movies') AS t`);
+    if (!r.rows[0]?.t) {
+      const sql = fs.readFileSync(path.join(__dirname, 'data', 'schema.sql'), 'utf8');
+      await pool.query(sql);
+      console.log('[schema] applied asim_* tables');
+    }
+  } catch (e) {
+    console.error('[schema]', e.message);
+  }
+}
+
+app.use(express.static(path.join(__dirname, 'public'), { maxAge: '1h' }));
+
+app.get('/api/health', async (_req, res) => {
+  try {
+    const r = await pool.query('SELECT 1 AS ok');
+    const counts = await pool.query(`
+      SELECT
+        (SELECT count(*) FROM asim_movies)  AS movies,
+        (SELECT count(*) FROM asim_people)  AS people,
+        (SELECT count(*) FROM asim_credits) AS credits,
+        (SELECT count(*) FROM asim_spotted) AS spotted
+    `).catch(() => ({ rows: [{ movies: 0, people: 0, credits: 0, spotted: 0 }] }));
+    res.json({ ok: r.rows[0].ok === 1, counts: counts.rows[0] });
+  } catch (e) {
+    res.status(500).json({ ok: false, error: e.message });
+  }
+});
+
+// Search across movies + people (basic ILIKE for tick 0 — Postgres FTS in a later tick)
+app.get('/api/search', async (req, res) => {
+  const q = String(req.query.q || '').trim();
+  if (!q || q.length < 2) return res.json({ movies: [], people: [] });
+  const like = '%' + q + '%';
+  try {
+    const [m, p] = await Promise.all([
+      pool.query(`SELECT id, tmdb_id, title, release_year, poster_url, poster_source
+                    FROM asim_movies WHERE title ILIKE $1 ORDER BY popularity DESC NULLS LAST LIMIT 10`, [like]),
+      pool.query(`SELECT id, tmdb_id, full_name, primary_profession, headshot_url, headshot_source
+                    FROM asim_people WHERE full_name ILIKE $1 ORDER BY full_name LIMIT 10`, [like]),
+    ]);
+    res.json({ movies: m.rows, people: p.rows });
+  } catch (e) {
+    res.status(500).json({ error: e.message });
+  }
+});
+
+// Movie detail
+app.get('/api/movie/:id', async (req, res) => {
+  const id = parseInt(req.params.id, 10);
+  if (!Number.isFinite(id) || id < 1) return res.status(400).json({ error: 'bad id' });
+  try {
+    const m = await pool.query(`SELECT * FROM asim_movies WHERE id=$1 LIMIT 1`, [id]);
+    if (!m.rows[0]) return res.status(404).json({ error: 'not found' });
+    const credits = await pool.query(`
+      SELECT c.role, c.character_name, c.order_idx, c.job_title, c.department,
+             p.id AS person_id, p.full_name, p.headshot_url, p.headshot_source, p.premium_tier
+        FROM asim_credits c JOIN asim_people p ON p.id = c.person_id
+       WHERE c.movie_id=$1 ORDER BY c.order_idx NULLS LAST, p.full_name`, [id]);
+    const spotted = await pool.query(`
+      SELECT * FROM asim_spotted WHERE movie_id=$1 ORDER BY verified_at DESC NULLS LAST, created_at DESC`, [id]);
+    res.json({ movie: m.rows[0], credits: credits.rows, spotted: spotted.rows });
+  } catch (e) {
+    res.status(500).json({ error: e.message });
+  }
+});
+
+// Person detail (basic public profile + premium extras if claimed)
+app.get('/api/person/:id', async (req, res) => {
+  const id = parseInt(req.params.id, 10);
+  if (!Number.isFinite(id) || id < 1) return res.status(400).json({ error: 'bad id' });
+  try {
+    const p = await pool.query(`SELECT * FROM asim_people WHERE id=$1 LIMIT 1`, [id]);
+    if (!p.rows[0]) return res.status(404).json({ error: 'not found' });
+    const credits = await pool.query(`
+      SELECT c.role, c.character_name, c.job_title, c.department,
+             m.id AS movie_id, m.title, m.release_year, m.poster_url, m.poster_source
+        FROM asim_credits c JOIN asim_movies m ON m.id = c.movie_id
+       WHERE c.person_id=$1 ORDER BY m.release_year DESC NULLS LAST`, [id]);
+    // Strip premium_extras from public response unless claimed + active
+    const person = p.rows[0];
+    if (!person.claimed_at || (person.premium_expires_at && new Date(person.premium_expires_at) < new Date())) {
+      person.premium_extras = null;
+    }
+    res.json({ person, credits: credits.rows });
+  } catch (e) {
+    res.status(500).json({ error: e.message });
+  }
+});
+
+// SPOTTED feed — most recent verified placements across all films
+app.get('/api/spotted', async (req, res) => {
+  const limit = Math.min(parseInt(req.query.limit, 10) || 60, 200);
+  const cat = req.query.category;
+  try {
+    const params = [];
+    let where = 'WHERE verified_at IS NOT NULL';
+    if (cat) { params.push(cat); where += ` AND product_category = $${params.length}`; }
+    params.push(limit);
+    const r = await pool.query(`
+      SELECT s.*, m.title AS movie_title, m.release_year, m.poster_url
+        FROM asim_spotted s JOIN asim_movies m ON m.id = s.movie_id
+        ${where}
+        ORDER BY verified_at DESC LIMIT $${params.length}`, params);
+    res.json({ items: r.rows });
+  } catch (e) {
+    res.status(500).json({ error: e.message });
+  }
+});
+
+// Home — placeholder until tick 1 ships TMDB ingest + real UI.
+app.get('/', (_req, res) => {
+  res.type('html').send(`<!doctype html>
+<html lang="en"><head>
+<meta charset="utf-8"><title>AsSeenInMovies</title>
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<style>
+  :root { --bg:#0d0c0a; --ink:#f0ebe3; --gold:#c9a14b; --muted:#7a706a; --line:#2a2620; }
+  *,*::before,*::after { box-sizing: border-box; }
+  body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.6 'Inter','SF Pro Text',-apple-system,sans-serif; min-height:100vh; }
+  header { padding:60px 32px 28px; text-align:center; border-bottom:1px solid var(--line); }
+  h1 { margin:0 0 8px; font-family:'Cormorant Garamond',Georgia,serif; font-weight:300; font-size:clamp(36px,5vw,64px); letter-spacing:0.04em; }
+  h1 .as { color:var(--gold); font-style:italic; font-weight:400; }
+  .tag { color:var(--muted); font-size:13px; letter-spacing:0.22em; text-transform:uppercase; }
+  main { max-width:1000px; margin:0 auto; padding:48px 24px 80px; display:grid; grid-template-columns:1fr 1fr; gap:32px; }
+  @media (max-width:720px){ main { grid-template-columns:1fr; } }
+  .card { padding:22px; border:1px solid var(--line); border-radius:10px; background:rgba(201,161,75,0.03); }
+  .card h2 { margin:0 0 10px; font-size:14px; letter-spacing:0.18em; text-transform:uppercase; color:var(--gold); }
+  .card p { margin:0 0 8px; color:var(--ink); }
+  .card small { color:var(--muted); display:block; margin-top:8px; font-size:12px; }
+  .placeholder-img { display:block; width:160px; height:213px; margin:0 auto 18px; border-radius:8px; box-shadow:0 8px 32px rgba(0,0,0,0.55); }
+  code { font-family:ui-monospace,Menlo,monospace; font-size:12px; color:var(--gold); }
+  a { color:var(--gold); text-decoration:none; }
+  a:hover { text-decoration:underline; }
+  footer { border-top:1px solid var(--line); text-align:center; padding:22px; color:var(--muted); font-size:12px; letter-spacing:0.06em; }
+</style>
+</head>
+<body>
+<header>
+  <img src="/img/made-with-ai.svg" class="placeholder-img" alt="" aria-hidden="true">
+  <h1><span class="as">As</span>Seen<span class="as">In</span>Movies</h1>
+  <p class="tag">a film + tv reference, built on public data</p>
+</header>
+<main>
+  <div class="card">
+    <h2>What this is</h2>
+    <p>An open IMDb-class reference for films and television — movie facts, cast and crew, credits — built from <em>only</em> public data sources (TMDB, Wikidata, OMDb, MovieLens, public union directories).</p>
+    <p>Tied into <a href="https://thesetdecorator.com">thesetdecorator.com</a> for the set-decorator roster and into the DW catalog for the SPOTTED feature.</p>
+    <small>No visual assets are sourced from IMDb. Posters and headshots that aren't rights-cleared use a "made with AI" placeholder.</small>
+  </div>
+  <div class="card">
+    <h2>SPOTTED</h2>
+    <p>Find the actual products you see on screen — wallpaper, lamps, props, wardrobe — with direct links to where you can buy them. Tagged by set decorators, verified by claim-holders.</p>
+    <small>See <code>/api/spotted</code> for the live feed.</small>
+  </div>
+  <div class="card">
+    <h2>Premium profiles</h2>
+    <p>Every actor, actress, and crew member has a basic public page built from public credits. Verified union members and their representation can upgrade to a flagship profile — reels, current projects, contact form, custom bio.</p>
+    <small>Upgrade flow + Stripe wiring lands in a later tick.</small>
+  </div>
+  <div class="card">
+    <h2>Status</h2>
+    <p>Tick 0 scaffold — schema, server, search/movie/person/SPOTTED endpoints. Tick 1 begins TMDB ingest. Schedule + plan in <code>/docs/PLAN.md</code>.</p>
+    <small>API: <code>/api/health</code>, <code>/api/search?q=</code>, <code>/api/movie/:id</code>, <code>/api/person/:id</code>, <code>/api/spotted</code></small>
+  </div>
+</main>
+<footer>AsSeenInMovies · public-data only · &copy; Designer Wallcoverings</footer>
+</body></html>`);
+});
+
+app.listen(PORT, '127.0.0.1', async () => {
+  await ensureSchema();
+  console.log(`asseeninmovies → http://127.0.0.1:${PORT}`);
+});

(oldest)  ·  back to AsSeenInMovies  ·  tick1: TMDB Phase A complete — 6.46M stubs across 7 sources, 01bf78d →