# Astro with Preact Framework

import DocButton from '~/components/webkit/DocButton.vue';
import SectionBasicContent from '~/components/SectionBasicContent/SectionBasicContent.vue';
import Container from '~/components/webkit/Container.vue';

<SectionBasicContent
  description="The Astro with Preact Framework template deploys a new application based on Astro working with Preact, a lightweight alternative to React that offers the same modern API with a smaller bundle size. This template combines Astro's static site generation capabilities with Preact's efficient component system."
  buttons={[
    { label: "Deploy template", link: "https://console.azion.com/create/astro/astro-with-framework-preact", outlined: false, icon: "ai ai-azion", iconPos: "left" },
    { label: "View demo", link: "https://r5c3whaltr.map.azionedge.net/", severity: "secondary" }
  ]}
>
  <Fragment slot="content">
    <div style="flex: 1; min-width: 300px;">
      | Item | Details |
      |:----------|:------|
      | Repository | [Azion Samples](https://github.com/aziontech/azion-samples/tree/dev/templates/astro/astro-framework-preact) |
      | Framework | [Astro](/en/documentation/products/devtools/azion-edge-runtime/frameworks-compatibility/astro/) |
      | Use Case | General |
    </div>
    <div style="display: flex; justify-content: center; align-items: center; flex: 1;">
      <img src="/assets/docs/images/uploads/template-showcase/astro/astro-preact.png" width="400" alt="Astro with Preact" style="min-width: 100%; max-width: 100%; height: auto;" />
    </div>
  </Fragment>
</SectionBasicContent>

## About this template

This template is built with [Astro](/en/documentation/products/devtools/azion-edge-runtime/frameworks-compatibility/astro/) and comes with the Preact integration preconfigured. Preact offers the familiar React component model and hooks API in a much smaller package, which pairs naturally with Astro's islands for adding interactivity without heavy bundles. Deployed on Azion, it's served via a distributed architecture for fast, globally distributed delivery.

## Key features

- Preact integration ready to use with no extra setup
- React-compatible API and hooks with a significantly smaller footprint
- Interactive Preact islands that hydrate only where they're needed
- Edge-optimized delivery through Azion for low-latency access worldwide