> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/nats-io/nats-server/llms.txt
> Use this file to discover all available pages before exploring further.

# NATS Server Documentation

> High-performance messaging server for cloud and edge native distributed systems

<div className="relative overflow-hidden bg-gradient-to-br from-[#3ab1e3] via-[#2BA6E0] to-[#579a74] dark:from-[#1a2838] dark:via-[#0f1117] dark:to-[#1a2838] py-20">
  <div className="absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjA1IiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=')] opacity-40" />

  <div className="relative max-w-6xl mx-auto px-6 lg:px-8">
    <div className="text-center">
      <h1 className="text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6">
        NATS Server Documentation
      </h1>

      <p className="text-lg sm:text-xl text-white/90 max-w-3xl mx-auto mb-8">
        Build fast, scalable, and resilient distributed systems with the high-performance messaging server trusted by cloud and edge applications worldwide.
      </p>

      <div className="flex flex-col sm:flex-row items-center justify-center gap-4 flex-wrap">
        <a href="/quickstart" className="inline-flex items-center px-8 py-3.5 rounded-lg bg-white text-[#3ab1e3] font-semibold hover:bg-gray-100 transition-colors no-underline">
          Get Started
        </a>

        <a href="/architecture/overview" className="inline-flex items-center px-8 py-3.5 rounded-lg border-2 border-white/30 bg-white/10 backdrop-blur-sm text-white font-semibold hover:bg-white/20 transition-colors no-underline">
          Explore Architecture
        </a>
      </div>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-3">Quick Start</h2>
  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">Get NATS Server up and running in minutes</p>

  <Steps>
    <Step title="Download and install">
      Install NATS Server using Docker, or download the binary for your platform.

      ```bash Docker theme={null}
      docker pull nats:latest
      docker run -p 4222:4222 -p 8222:8222 nats:latest
      ```

      See the [installation guide](/installation) for other installation methods.
    </Step>

    <Step title="Start the server">
      Launch NATS Server with default settings or provide a configuration file.

      ```bash theme={null}
      nats-server
      ```

      <Note>The server listens on port 4222 for client connections and 8222 for monitoring by default.</Note>
    </Step>

    <Step title="Verify it's running">
      Check server status using the monitoring endpoint.

      ```bash theme={null}
      curl http://localhost:8222/varz
      ```

      You'll see a JSON response with server information including version, connections, and resource usage.
    </Step>

    <Step title="Connect a client">
      Use any of the [40+ NATS client libraries](https://nats.io/download/) to connect and start messaging.

      ```go Go theme={null}
      nc, _ := nats.Connect(nats.DefaultURL)
      nc.Publish("hello", []byte("world"))
      ```

      Ready to explore more? Check out the [quickstart guide](/quickstart) for a complete tutorial.
    </Step>
  </Steps>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-3">Explore by topic</h2>
  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">Deep dive into NATS Server capabilities</p>

  <CardGroup cols={2}>
    <Card title="Deployment" icon="rocket" href="/deployment/docker">
      Deploy NATS Server with Docker, Kubernetes, or as a standalone binary
    </Card>

    <Card title="Architecture" icon="diagram-project" href="/architecture/overview">
      Understand clustering, gateways, accounts, and multi-tenancy
    </Card>

    <Card title="JetStream" icon="layer-group" href="/features/jetstream">
      Enable persistence, streaming, and exactly-once delivery semantics
    </Card>

    <Card title="MQTT Support" icon="wifi" href="/features/mqtt">
      Connect MQTT 3.1.1 and 5.0 devices to your NATS infrastructure
    </Card>

    <Card title="Security" icon="shield-halved" href="/operations/security">
      Secure your deployment with TLS, NKeys, JWT, and authorization
    </Card>

    <Card title="Monitoring" icon="chart-line" href="/features/monitoring">
      Monitor server health, performance, and observe message flows
    </Card>
  </CardGroup>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-3">Key features</h2>
  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">What makes NATS Server powerful</p>

  <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
    <div className="p-6 rounded-lg border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="flex items-start gap-4">
        <div className="flex-shrink-0 w-10 h-10 rounded-lg bg-[#3ab1e3]/10 dark:bg-[#3ab1e3]/20 flex items-center justify-center">
          <svg className="w-6 h-6 text-[#3ab1e3]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
          </svg>
        </div>

        <div>
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">High Performance</h3>

          <p className="text-sm text-gray-600 dark:text-gray-400">
            Built in Go for exceptional throughput and low latency, handling millions of messages per second
          </p>
        </div>
      </div>
    </div>

    <div className="p-6 rounded-lg border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="flex items-start gap-4">
        <div className="flex-shrink-0 w-10 h-10 rounded-lg bg-[#3ab1e3]/10 dark:bg-[#3ab1e3]/20 flex items-center justify-center">
          <svg className="w-6 h-6 text-[#3ab1e3]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
          </svg>
        </div>

        <div>
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">JetStream Persistence</h3>

          <p className="text-sm text-gray-600 dark:text-gray-400">
            Stream storage, replay, and exactly-once delivery with built-in clustering and replication
          </p>
        </div>
      </div>
    </div>

    <div className="p-6 rounded-lg border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="flex items-start gap-4">
        <div className="flex-shrink-0 w-10 h-10 rounded-lg bg-[#3ab1e3]/10 dark:bg-[#3ab1e3]/20 flex items-center justify-center">
          <svg className="w-6 h-6 text-[#3ab1e3]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
          </svg>
        </div>

        <div>
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">Decentralized Security</h3>

          <p className="text-sm text-gray-600 dark:text-gray-400">
            Zero-trust architecture with NKeys, JWT-based authentication, and multi-tenancy via accounts
          </p>
        </div>
      </div>
    </div>

    <div className="p-6 rounded-lg border border-gray-200 dark:border-[#27272a] bg-white dark:bg-[#1a1d27]">
      <div className="flex items-start gap-4">
        <div className="flex-shrink-0 w-10 h-10 rounded-lg bg-[#3ab1e3]/10 dark:bg-[#3ab1e3]/20 flex items-center justify-center">
          <svg className="w-6 h-6 text-[#3ab1e3]" fill="none" stroke="currentColor" viewBox="0 0 24 24">
            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
          </svg>
        </div>

        <div>
          <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-2">Global Distribution</h3>

          <p className="text-sm text-gray-600 dark:text-gray-400">
            Build super-clusters spanning multiple regions with gateway connections for global reach
          </p>
        </div>
      </div>
    </div>
  </div>
</div>

<div className="mt-16 mb-16 max-w-5xl mx-auto px-6">
  <h2 className="text-3xl font-bold text-gray-900 dark:text-white mb-3">Community and support</h2>
  <p className="text-base text-gray-600 dark:text-gray-400 mb-8">Get help and connect with the NATS community</p>

  <CardGroup cols={3}>
    <Card title="Slack Community" icon="slack" href="https://slack.nats.io">
      Join the active NATS community on Slack for questions and discussions
    </Card>

    <Card title="GitHub" icon="github" href="https://github.com/nats-io/nats-server">
      Report issues, contribute code, and track development progress
    </Card>

    <Card title="Google Groups" icon="comments" href="https://groups.google.com/forum/#!forum/natsio">
      Ask questions and engage with community members on Google Groups
    </Card>
  </CardGroup>
</div>

<div className="mt-20 mb-16 max-w-5xl mx-auto px-6">
  <div className="rounded-2xl bg-gradient-to-br from-[#3ab1e3] to-[#579a74] dark:from-[#1a2838] dark:to-[#0f1117] p-12 text-center border border-[#3ab1e3]/20">
    <h2 className="text-3xl font-bold text-white mb-4">Ready to get started?</h2>

    <p className="text-lg text-white/90 max-w-2xl mx-auto mb-8">
      Deploy NATS Server in minutes and start building fast, resilient distributed systems
    </p>

    <a href="/quickstart" className="inline-flex items-center px-8 py-3.5 rounded-lg bg-white text-[#3ab1e3] font-semibold hover:bg-gray-100 transition-colors no-underline">
      Start Building Now
    </a>
  </div>
</div>
