Skip to content

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.


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/cloudflare with imageService: "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

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).
  • @siteswarm/health:
    • Provides edge liveness probe endpoint at /api/health.ts for synthetic monitoring and uptime verification.
  • @siteswarm/seo:
    • Manages dynamic Open Graph images, canonical URLs, XML sitemaps (/sitemap.xml.ts), and Schema.org LocalBusiness JSON-LD structured data in src/layouts/Layout.astro.
  • @siteswarm/governance:
    • Validates client metadata, brand tokens, and capability bindings at compile time via swarm.config.ts.

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 Sans for bold headlines, Inter for prose, and JetBrains Mono for 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.


  • 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.

Execute commands from inside apps/marketing/:

Terminal window
# Start local Astro development server
pnpm dev
# Run Astro & TypeScript type check
pnpm check
# Build production static output & Workers bundle
pnpm build
# Run Playwright end-to-end integration tests
pnpm test:e2e
Terminal window
# Start development server
pnpm --filter @siteswarm/app-marketing dev
# Type check
pnpm --filter @siteswarm/app-marketing run check
# Production build
pnpm --filter @siteswarm/app-marketing build
# End-to-end testing
pnpm --filter @siteswarm/app-marketing test:e2e