SiteSwarm Marketing (apps/marketing)
SiteSwarm Marketing (apps/marketing)
Section titled “SiteSwarm Marketing (apps/marketing)”The flagship agency and platform website for SiteSwarm (siteswarm.dev).
apps/marketing serves as the public-facing storefront and reference implementation of SiteSwarm’s autonomous agency model. It showcases high-conviction edge architecture, radical pricing transparency, interactive ROI calculators, and zero-maintenance delivery on Cloudflare Workers.
⚡ Architecture & Deployment
Section titled “⚡ Architecture & Deployment”The application is built with Astro 5 configured for pure static site generation (SSG) with dynamic edge API endpoints:
- Static SSG (
output: "static"): Pre-rendered HTML/CSS assets delivered globally via Cloudflare Anycast edge network with sub-15ms TTFB. - Cloudflare Workers Adapter: Powered by
@astrojs/cloudflarewithimageService: "passthrough"for zero-overhead static asset delivery. - Stateless Edge Execution (0 Session KV): Operates in pure stateless mode (
storage: { mode: "static-only" }) with zero session KV or persistent database locks. - Multi-Environment Routing: Defined in
wrangler.jsonc:- Production:
siteswarm.dev,marketing.siteswarm.dev - Staging:
marketing-staging.jacobmiller22.com - Preview: Ephemeral Cloudflare Workers preview deployments
- Production:
🧩 Capabilities Consumed
Section titled “🧩 Capabilities Consumed”apps/marketing consumes headless horizontal platform packages from the SiteSwarm workspace, enforcing strict separation between business logic and bespoke presentation:
@siteswarm/lead-capture:- Handles client inquiry intake via
/api/submit-inquiry.ts. - Enforces Cloudflare Turnstile bot verification.
- Dispatches immediate email notifications without storing PII on edge storage (
storeSubmissions: false).
- Handles client inquiry intake via
@siteswarm/health:- Provides edge liveness probe endpoint at
/api/health.tsfor synthetic monitoring and uptime verification.
- Provides edge liveness probe endpoint at
@siteswarm/seo:- Manages dynamic Open Graph images, canonical URLs, XML sitemaps (
/sitemap.xml.ts), and Schema.orgLocalBusinessJSON-LD structured data insrc/layouts/Layout.astro.
- Manages dynamic Open Graph images, canonical URLs, XML sitemaps (
@siteswarm/governance:- Validates client metadata, brand tokens, and capability bindings at compile time via
swarm.config.ts.
- Validates client metadata, brand tokens, and capability bindings at compile time via
🎨 Visual Identity & Taste Guidelines
Section titled “🎨 Visual Identity & Taste Guidelines”All layout, copy, and UI styling strictly adhere to VIBE.md:
- Aesthetic Posture: High-Conviction Autonomous Agency & Edge Platform.
- Palette: Deep Obsidian canvas (
#0F172A), Slate surfaces (#1E293B), Pearl typography (#F8FAFC), and Honey Gold / Electric Amber accents (#F59E0B/#D97706). - Typographic Discipline:
Plus Jakarta Sansfor bold headlines,Interfor prose, andJetBrains Monofor latency benchmarks and edge commands. - Badge Tolerance: Maximum 1 subtle badge per feature card; 0 stacked badges or neon pills.
- Anti-Slop Protocol: Zero vague consulting buzzwords, generic stock art, or hyperbolic claims; only verifiable edge performance and transparent retainers.
For detailed guidelines, see VIBE.md.
📂 Key Pages & Components
Section titled “📂 Key Pages & Components”src/pages/index.astro: Main landing page composing the hero masthead, feature pillars, interactive ROI calculator, retainer pricing tiers, and contact form.src/components/HeroMasthead.astro: High-conviction value proposition and call-to-actions.src/components/ValuePropositionGrid.astro: Concrete edge performance proofs (sub-15ms TTFB, zero security patching, Anycast global delivery).src/components/RoiCalculator/: Interactive client ROI slider component calculating annual savings over legacy CMS maintenance.src/components/PricingCards/: Transparent flat-rate agency retainer tiers.src/components/ContactForm/: Turnstile-protected lead capture form.src/pages/api/submit-inquiry.ts: Edge lead intake endpoint.src/pages/api/health.ts: Synthetic edge health check endpoint.
🚀 Development & Commands
Section titled “🚀 Development & Commands”Running Locally
Section titled “Running Locally”Execute commands from inside apps/marketing/:
# Start local Astro development serverpnpm dev
# Run Astro & TypeScript type checkpnpm check
# Build production static output & Workers bundlepnpm build
# Run Playwright end-to-end integration testspnpm test:e2eRunning from Workspace Root
Section titled “Running from Workspace Root”# Start development serverpnpm --filter @siteswarm/app-marketing dev
# Type checkpnpm --filter @siteswarm/app-marketing run check
# Production buildpnpm --filter @siteswarm/app-marketing build
# End-to-end testingpnpm --filter @siteswarm/app-marketing test:e2e