Spatial Cartography & Map Engine
πΊοΈ Nautical Dark Cartography
COREHigh-performance decoupled Leaflet map engine rendering a stylized colonial harbor basemap with custom bounds, smooth deceleration zooming, and geocoded pins for 400-year historical sites.
L.map('map', { zoomControl: false, minZoom: 13 })
π Specialized Pin Taxonomy
COREA 10-tier dynamic pin asset pipeline rendering gold sponsors, historic landmarks, cemetery markers, restrooms, civic halls, and busker stages with retina DPI scaling and custom anchor offsets.
L.icon({ iconUrl: 'assets/pin-gold.png', iconSize: [36, 44] })
π― "Find Me" GPS Triangulation
Real-time HTML5 Geolocation Watcher with user proximity accuracy bounds, pulsating radar animation, and automatic pan-to-viewport for tourists walking the Salem Heritage Trail.
navigator.geolocation.getCurrentPosition(success, error, opts)
π± Slide-Over Drawer Sheet
COREMobile-first responsive drawer component providing fluid thumb-friendly inspection of landmark history, audio narratives, sponsor badges, and directions without leaving the spatial map canvas.
document.getElementById('location-drawer').classList.add('open')
Time Capsule & 2026 Snapshot
π¬ Memory Submission Pipeline
CORE
Public REST endpoint accepting citizen memories, geo-coordinates, and stories for Salem's 400th
anniversary. Submissions are queued with pending status for editorial review.
POST /wp-json/s400/v1/submit-memory
π‘οΈ Spam Honeypot & Media Ingestion
Silent trap field (engine_security_check) rejecting bot vectors alongside automatic
WordPress media ingestion (media_handle_upload) for high-resolution 2026 photo uploads.
media_handle_upload('image', $post_id);
π° 2026 Economic Snapshot Meta
COREStructured meta schema recording landmark offerings in the quadricentennial year (product name, price, description) allowing future generations to inspect 2026 economic life in Salem.
register_rest_field('h7g_legacy_node', 'snapshot_2026', ...)
π "Step into the Past" Narratives
Archival multi-century timeline engine linking 1626 Naumkeag founding, 1692 hysteria, and 1819 maritime
trade into first-person historical storytelling cards stored in history_json.
json_decode(get_post_meta($post->ID, 'history_json', true))
Salem Busker Hub & Performers
π Busker Custom Post Type
CORE
Dedicated CPT (s400_busker) and isolated WordPress user role giving street magicians,
living statues, and musicians full profile control while sandboxing administrative backend access.
register_post_type('s400_busker', $args);
π Brute-Force Rate-Limited Auth
CORE
Self-service REST login endpoint (/s400/v1/busker-login) with transient IP lockout: 5
failed attempts trigger a 15-minute 429 cooldown, issuing 64-character bearer tokens on success.
set_transient($transient_key, $fails + 1, 15 * MINUTE_IN_SECONDS)
π² Standalone Busker Hub PWA
Independent client web app running under /exchange/busker-hub/ enabling performers to edit
stage names, update bios, link social channels, and upload photo galleries directly from mobile.
POST /wp-json/s400/v1/my-busker-profiles/(?P<id>\d+)
πΈ Dynamic Tip QR & Link Matrix
COREDirect performer compensation architecture generating scan-ready QR code attachments and deep links for Venmo and CashApp, allowing tourists on the Essex Street Mall to tip instantly.
get_post_meta($id, 'busker_venmo_link', true)
π Social Share Interceptor
Custom server interceptor for /busker/{slug} generating dynamic OpenGraph & Twitter Card
headers from performer character data, resolving smooth previews across social networks.
add_action('init', array($this, 'busker_share_redirect'), 10)
Witch City Cemetery & Memorials
πͺ¦ Historical Grave Index DB
CORECurated JSON cemetery registry serving 32+ prominent graves and witch trial victims across Charter Street (1637), the Witch Trials Memorial (1992), and Broad Street Cemetery (1655).
GET /wp-json/witchcity/v1/graves
π―οΈ Virtual Memorial Offerings
COREInteractive digital tribute API permitting visitors to place candles, black roses, copper coins, or heartfelt notes (capped to 150 chars) on tombstones with atomic count increments.
POST /wp-json/witchcity/v1/graves/token
βοΈ Tribute Moderation & IP Banning
Full WordPress administrative moderation page (cemetery-tokens) providing one-click
deletion of inappropriate notes and instant IP banning with 403 Forbidden enforcement.
add_menu_page('Cemetery Tokens', 'Cemetery Tokens', 'manage_options', ...)
ποΈ 1692 Memorial Tribute Benches
High-fidelity digital preservation of all 20 victims of the 1692 hysteria with execution dates, biographical narratives, and their famous final words carved into the stone UI.
array('id' => 'WTM-002', 'name' => 'Giles Corey', 'lifespan' => 'Executed 1692')
Salem Weather & Shelter Engine
π¦οΈ Real-Time Meteorological Sync
CORENon-blocking async weather client polling conditions over Salem Harbor with 8-second abort controllers, categorizing weather into 9 distinct atmospheric behavioral states.
fetchWeather() // Non-blocking async atmospheric engine
β Automated Shelter Advisories
COREContextual alert banner automatically triggered by rain, storms, or sub-freezing temperatures directing visitors to indoor destinations (Peabody Essex Museum, House of the Seven Gables).
if (['rain', 'storm', 'snow'].includes(wx)) renderRainAdvisory();
π§ͺ URL Testing Overrides & Filter
Built-in QA testing hooks allowing developers to test any weather condition via URL query parameter
(?weather=rain), automatically injecting the "Indoor Shelter" map filter pill.
const overrideWx = new URLSearchParams(window.location.search).get('weather');
Headless WordPress Core & GraphQL
βοΈ Salem 400 Master Engine
CORE
Central orchestrator class (Salem_400_Engine) autoloading modular dependencies: CPTs, REST
endpoints, WPGraphQL types, image compressors, CORS handlers, and analytics tables.
new Salem_400_Engine(); // Core Engine Orchestrator
π Strict Headless 301 Firewall
Anti-scraping frontend protection redirecting all web traffic to the static showcase site while
whitelisting REST API routes (/wp-json/), GraphQL, and WP-Admin.
wp_redirect('https://witchcitywebsites.com/salem400', 301);
πΈοΈ WPGraphQL Schema Extensions
CORE
Native GraphQL schema definitions creating Snapshot2026 and resolving linked
LegacySupporter sponsor relationships for modern JAMstack frontend architectures.
register_graphql_object_type('Snapshot2026', $args)
β³ Legacy Era Chronological Engine
Custom hierarchical taxonomy (legacy_era) categorizing heritage nodes into historic epochs
(1626 Settlement, 1692 Trials, Golden Age of Sail, 2026 Quadricentennial).
register_taxonomy('legacy_era', array('h7g_legacy_node'), $args);
SaaS Dashboard & Infrastructure
πΌ Showcase Sync SaaS Dashboard
CORE
Custom administrative interface (s400-showcase-dash) allowing curators to pick which
businesses appear on the public showcase, instantly publishing to /showcase-sponsors.
GET /wp-json/s400/v1/showcase-sponsors
π Spatial Engagement Analytics
CORE
Dedicated telemetry subsystem logging landmark clicks and merchant conversions into a custom MySQL table
(wp_s400_analytics) with a real-time admin leaderboards.
POST /wp-json/s400/v1/track // { location_id, title }
β‘ Transient REST Cache Engine
High-speed WordPress transient caching layer (s400_main_map_data) serving cached spatial
payloads in sub-50ms with automatic cache purging hooked into save_post_h7g_legacy_node.
get_transient('s400_main_map_data')
πΌοΈ Automated WebP Compression
Automatic image optimization pipeline hooked into wp_generate_attachment_metadata
generating WebP formats with full alpha transparency preservation and automated deletion cleanup.
imagewebp($image, $webp_file, 80);