> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bricks.tools/llms.txt
> Use this file to discover all available pages before exploring further.

# BRICKS Foundation

> Cross-platform runtime for running BRICKS applications on mobile, desktop, and TV devices

export const FeatureCard = ({icon, title, description, href}) => {
  const Tag = href ? 'a' : 'div';
  return <Tag href={href} className={`block rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6 no-underline ${href ? 'group hover:border-[#4b8ae2]/40 hover:shadow-lg hover:shadow-[#4b8ae2]/5 transition-all duration-200' : ''}`}>
      <div className="flex items-center gap-3 mb-3">
        <span className="text-2xl">{icon}</span>
        <h3 className="text-base font-semibold text-gray-900 dark:text-white m-0">{title}</h3>
      </div>
      <p className="text-sm text-gray-500 dark:text-gray-400 m-0 leading-relaxed">{description}</p>
    </Tag>;
};

export const StepItem = ({number, title, description, href, linkText}) => <div className="flex gap-4">
    <div className="flex-shrink-0 w-8 h-8 rounded-full bg-[#4b8ae2] flex items-center justify-center">
      <span className="text-sm font-bold text-white">{number}</span>
    </div>
    <div className="pb-8">
      <h4 className="text-sm font-semibold text-gray-900 dark:text-white m-0">{title}</h4>
      <p className="text-sm text-gray-500 dark:text-gray-400 mt-1 mb-1">{description}</p>
      {href && <a href={href} className="text-sm font-medium text-[#4b8ae2] hover:text-[#3f7dd4] no-underline">{linkText} →</a>}
    </div>
  </div>;

<div className="max-w-5xl mx-auto px-6 py-16">
  <div className="mb-16">
    <div className="flex items-center gap-4 mb-6">
      <div>
        <h1 className="text-4xl sm:text-5xl font-bold text-gray-900 dark:text-white tracking-tight m-0">
          BRICKS Foundation
        </h1>
      </div>
    </div>

    <p className="text-xl text-gray-600 dark:text-gray-300 font-medium mb-2">
      Run your apps <span className="text-[#4b8ae2]">everywhere.</span>
    </p>

    <p className="text-lg text-gray-500 dark:text-gray-400 max-w-2xl mb-8 leading-relaxed">
      BRICKS Foundation is the cross-platform runtime that runs <a href="https://bricks.tools" className="text-[#4b8ae2] hover:text-[#3f7dd4] no-underline font-medium">BRICKS</a> applications on mobile phones, tablets, desktops, TVs, and embedded devices. Bind your device to a workspace and start displaying content in seconds.
    </p>

    <div className="flex flex-wrap gap-3">
      <a href="/foundation/installation" className="inline-flex items-center px-5 py-2.5 rounded-lg bg-[#4b8ae2] hover:bg-[#3f7dd4] text-white text-sm font-medium no-underline transition-colors">
        Get started
      </a>

      <a href="https://bricks.tools" className="inline-flex items-center px-5 py-2.5 rounded-lg border border-gray-300 dark:border-white/15 text-gray-700 dark:text-gray-300 text-sm font-medium no-underline hover:bg-gray-50 dark:hover:bg-white/5 transition-colors">
        Learn about BRICKS
      </a>
    </div>
  </div>

  <div className="mb-16">
    <h2 className="text-xs font-semibold uppercase tracking-widest text-gray-400 dark:text-gray-500 mb-6">Features</h2>

    <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
      <FeatureCard icon="📱" title="Cross-platform runtime" description="Run BRICKS applications on iOS, Android, macOS, Windows, Linux, and Raspberry Pi from a single codebase." href="/foundation/installation" />

      <FeatureCard icon="🔗" title="Device binding" description="Bind your device to a workspace with a passcode or QR code, then manage it remotely from BRICKS Controller." href="/foundation/device-binding" />

      <FeatureCard icon="🚀" title="Launch applications" description="Assign applications to devices, switch versions, and refresh or clear cache — locally or remotely." href="/foundation/launch-applications" />

      <FeatureCard icon="🐛" title="Debug panel" description="On-device overlay for inspecting data values, generator state, and canvas info in real time." href="/foundation/debug-panel" />

      <FeatureCard icon="💻" title="Local debugging" description="Connect Chrome DevTools to inspect the DOM, debug JavaScript, and profile performance over the local network." href="/foundation/local-debugging" />

      <FeatureCard icon="🔄" title="Local sync" description="Sync application data and state between devices on the same local network with minimal latency." href="/foundation/local-sync" />

      <FeatureCard icon="📡" title="Remote debugging" description="Inspect application properties remotely via BRICKS Controller for field-deployed devices." href="/foundation/remote-debug" />

      <FeatureCard icon="📊" title="Activity log monitoring" description="Record and review device events, application actions, data changes, and errors over time." href="/foundation/activity-log" />

      <FeatureCard icon="🧠" title="Buttress offloading" description="Offload LLM and speech-to-text inference to a Buttress server on the LAN when the device hardware can't keep up." href="/foundation/buttress" />
    </div>
  </div>

  <div className="mb-16">
    <h2 className="text-xs font-semibold uppercase tracking-widest text-gray-400 dark:text-gray-500 mb-6">Quick start</h2>

    <div className="rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-8">
      <StepItem number="1" title="Download the app" description="Get BRICKS Foundation for your platform — iOS, Android, macOS, Windows, Linux, or Raspberry Pi." href="/foundation/installation" linkText="Installation guide" />

      <StepItem number="2" title="Install and launch" description="Install the app and open it on your device." />

      <StepItem number="3" title="Bind your device" description="Generate a passcode on the device and enter it in BRICKS Controller to bind it to your workspace." href="/foundation/device-binding" linkText="Device binding guide" />

      <StepItem number="4" title="Run your app" description="Assign an application to the device from BRICKS Controller and it starts running automatically." href="/foundation/launch-applications" linkText="Launch applications" />
    </div>
  </div>

  <div className="mb-16">
    <h2 className="text-xs font-semibold uppercase tracking-widest text-gray-400 dark:text-gray-500 mb-6">Supported platforms</h2>

    <div className="grid grid-cols-1 sm:grid-cols-3 gap-4">
      <a href="/foundation/installation" className="group block rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6 no-underline hover:border-[#4b8ae2]/40 hover:shadow-lg hover:shadow-[#4b8ae2]/5 transition-all duration-200 text-center">
        <h3 className="text-sm font-semibold text-gray-900 dark:text-white m-0">Mobile</h3>
        <p className="text-xs text-gray-400 dark:text-gray-500 mt-1 mb-3">iOS & Android</p>

        <span className="inline-flex items-center px-3 py-1.5 rounded-lg bg-[#4b8ae2]/10 text-[#4b8ae2] text-xs font-medium group-hover:bg-[#4b8ae2] group-hover:text-white transition-colors">
          Installation guide →
        </span>
      </a>

      <a href="/foundation/installation" className="group block rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6 no-underline hover:border-[#4b8ae2]/40 hover:shadow-lg hover:shadow-[#4b8ae2]/5 transition-all duration-200 text-center">
        <h3 className="text-sm font-semibold text-gray-900 dark:text-white m-0">Desktop</h3>
        <p className="text-xs text-gray-400 dark:text-gray-500 mt-1 mb-3">macOS, Windows, Linux</p>

        <span className="inline-flex items-center px-3 py-1.5 rounded-lg bg-[#4b8ae2]/10 text-[#4b8ae2] text-xs font-medium group-hover:bg-[#4b8ae2] group-hover:text-white transition-colors">
          Installation guide →
        </span>
      </a>

      <a href="/foundation/installation" className="group block rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6 no-underline hover:border-[#4b8ae2]/40 hover:shadow-lg hover:shadow-[#4b8ae2]/5 transition-all duration-200 text-center">
        <h3 className="text-sm font-semibold text-gray-900 dark:text-white m-0">Embedded</h3>
        <p className="text-xs text-gray-400 dark:text-gray-500 mt-1 mb-3">Raspberry Pi</p>

        <span className="inline-flex items-center px-3 py-1.5 rounded-lg bg-[#4b8ae2]/10 text-[#4b8ae2] text-xs font-medium group-hover:bg-[#4b8ae2] group-hover:text-white transition-colors">
          Installation guide →
        </span>
      </a>
    </div>
  </div>

  <div>
    <h2 className="text-xs font-semibold uppercase tracking-widest text-gray-400 dark:text-gray-500 mb-6">System requirements</h2>

    <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
      <div className="rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6">
        <h3 className="text-sm font-semibold text-gray-900 dark:text-white mb-3">Mobile</h3>

        <ul className="text-sm text-gray-500 dark:text-gray-400 space-y-2 m-0 p-0 list-none">
          <li className="flex items-start gap-2"><span className="text-[#4b8ae2] mt-0.5">•</span> iOS 14 or later</li>
          <li className="flex items-start gap-2"><span className="text-[#4b8ae2] mt-0.5">•</span> Android 8.0 or later</li>
        </ul>
      </div>

      <div className="rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6">
        <h3 className="text-sm font-semibold text-gray-900 dark:text-white mb-3">Desktop</h3>

        <ul className="text-sm text-gray-500 dark:text-gray-400 space-y-2 m-0 p-0 list-none">
          <li className="flex items-start gap-2"><span className="text-[#4b8ae2] mt-0.5">•</span> macOS 11+ (ARM64, x64)</li>
          <li className="flex items-start gap-2"><span className="text-[#4b8ae2] mt-0.5">•</span> Windows 10+ (x64, ARM64)</li>
          <li className="flex items-start gap-2"><span className="text-[#4b8ae2] mt-0.5">•</span> Linux (x86\_64, ARM64)</li>
        </ul>
      </div>

      <div className="rounded-2xl border border-gray-200 dark:border-white/10 bg-white dark:bg-white/5 p-6">
        <h3 className="text-sm font-semibold text-gray-900 dark:text-white mb-3">Embedded</h3>

        <ul className="text-sm text-gray-500 dark:text-gray-400 space-y-2 m-0 p-0 list-none">
          <li className="flex items-start gap-2"><span className="text-[#4b8ae2] mt-0.5">•</span> Raspberry Pi 4 or later (64-bit OS)</li>
        </ul>
      </div>
    </div>
  </div>
</div>
