0% found this document useful (0 votes)
74 views3 pages

Getting Started with Astro Framework

Astro is an all-in-one web framework for building fast, content-focused websites. It provides features like component islands for faster sites, server-first API design to move hydration off users' devices, and works without JavaScript by default. The document then explains how to try Astro in the browser, create a new project locally, learn key concepts, extend Astro with themes and plugins, and get involved in the community.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views3 pages

Getting Started with Astro Framework

Astro is an all-in-one web framework for building fast, content-focused websites. It provides features like component islands for faster sites, server-first API design to move hydration off users' devices, and works without JavaScript by default. The document then explains how to try Astro in the browser, create a new project locally, learn key concepts, extend Astro with themes and plugins, and get involved in the community.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
  • Getting Started with Astro
  • Learning Astro
  • Contributing to Astro

---

title: Getting Started


description: A basic intro to Astro.
i18nReady: true
---
import Button from '~/components/[Link]'
import TranslatorList from '~/components/[Link]'
import ContributorList from '~/components/[Link]'
import PackageManagerTabs from '~/components/tabs/[Link]'

:::tip[Astro version 3 is here!]


**What’s new in Astro v3?** [Find out in the announcement blog
post]([Link]
**Ready to upgrade?** [Follow our upgrade guide](/en/guides/upgrade-to/v3/).
:::

<h2>What is Astro?</h2>

Astro is an **all-in-one** **web framework** for building **fast,** **content-


focused** websites.

## Key Features

- **Component Islands:** A new web architecture for building faster websites.


- **Server-first API design:** Move expensive hydration off of your users' devices.
- **Zero JS, by default:** No JavaScript runtime overhead to slow you down.
- **Edge-ready:** Deploy anywhere, even a global edge runtime like Deno or
Cloudflare.
- **Customizable:** Tailwind, MDX, and 100+ other integrations to choose from.
- **UI-agnostic:** Supports React, Preact, Svelte, Vue, Solid, Lit and more.

Check out our detailed [Why Astro](/en/concepts/why-astro/) breakdown to learn more


about what makes Astro special. ✨

## Try Astro in your browser

Visit [[Link]]([Link] and choose from a variety of templates to get


started. Play around with a full, working version of Astro right in your browser!

<div style="display: flex; flex-wrap: wrap; gap: 0.5rem;">


<Button href="[Link] basic
template</Button>
<Button variant="outline" href="[Link] all templates →</Button>
</div>

## Start your first project

Get a new Astro project up and running locally with our helpful `create astro` CLI
wizard!

<PackageManagerTabs>
<Fragment slot="npm">
```shell
# create a new project with npm
npm create astro@latest
```
</Fragment>
<Fragment slot="pnpm">
```shell
# create a new project with pnpm
pnpm create astro@latest
```
</Fragment>
<Fragment slot="yarn">
```shell
# create a new project with yarn
yarn create astro
```
</Fragment>
</PackageManagerTabs>

Our [Installation Guide](/en/install/auto/) has full, step-by-step instructions for


installing Astro using our CLI wizard, creating a new project from an existing
Astro GitHub repository, and for installing Astro manually.

## Learn Astro

See examples of some of the key concepts and patterns of an Astro site!

📚 [Add your first page](/en/core-concepts/astro-pages/) to your site.

📚 Read more about Astro’s [project structure](/en/core-concepts/project-


structure/).

📚 Learn about Astro's [file-based routing](/en/core-concepts/routing/).

*... find our full API documentation under the **Reference** tab.*

## Extend Astro

🧰 Start your next project with a [prebuilt theme]([Link]

🧰 Customize your site with official and community [plugins and components]
([Link]

🧰 Get inspired by visiting our [site showcase]([Link]

*... see our [guide to using integrations](/en/guides/integrations-guide/)*.

## Join our Community

Join us in the [Astro Discord]([Link] to share with and get help


from an active, friendly community!

💬 Say hi in our `#general` channel!

💬 Ask our Support Squad a question in our `#support` channel!

💬 Share what you've been working on in our `#showcase` channel!

## What's New?
[Astro Blog]([Link]

[Astro changelog]([Link]
[Link])

<TranslatorList githubRepo="withastro/docs">
{/* Turn this HTML heading into a Markdown h2 — ## — when translating this page.
*/}
<h2>Translate</h2>

These docs translations are brought to you by all these amazing people. [Help us
with translations!]([Link]
guides/[Link])
</TranslatorList>

## Contribute

These docs are brought to you by all these helpful people. [Join us on GitHub!]
([Link]

<ContributorList githubRepo="withastro/docs" />

Common questions

Powered by AI

Astro supports community engagement through active channels like Discord, where developers can share insights, seek support, and showcase their projects. It also fosters collaboration via its GitHub repository, inviting contributions to its documentation and translation efforts, thus building a robust, communal knowledge base .

Astro's server-first API design contributes to framework efficiency by performing expensive operations server-side, which reduces client load and enhances application responsiveness. This design prioritizes server-side rendering, delivering optimized and pre-processed content to users, which boosts performance and conserves device battery and data usage. It effectively separates the backend processing from the client, streamlining the experience .

Astro recommends initiating a new project by using the `create astro` CLI wizard, accessible through package managers like npm, pnpm, or yarn. The process involves running the command corresponding to the package manager, such as `npm create astro@latest`, to set up a basic project structure quickly .

Astro’s file-based routing benefits project organization by aligning the file and directory structures directly with the routing scheme. This intuitive mapping simplifies navigation through the codebase, reduces overhead in route management, and ensures that developers can easily establish and maintain routes as pages, enhancing development efficiency and project clarity .

Deploying Astro applications on edge networks offers benefits such as reduced latency and enhanced performance by serving content closer to the user. It allows for global distribution and scalability, accommodating high traffic with minimal delay. However, challenges include managing configuration across distributed locations and potential complexities in debugging serverless functions, requiring developers to have specialized knowledge about edge computing .

Astro ensures flexibility through its UI-agnostic nature, supporting a wide range of frameworks such as React, Svelte, and Vue, among others. It also provides over 100 integrations including Tailwind and MDX, allowing developers to customize their applications with familiar tools and libraries. This adaptability facilitates a smooth integration process into existing workflows, catering to diverse development needs .

Astro’s prebuilt themes provide a head start in development by offering ready-made design patterns and configurations, reducing the time needed to set up a project from scratch. They enable developers to focus more on content and functionality rather than design intricacies, accelerating the development process and ensuring consistent styling and structure across different projects .

Astro’s architecture, centered around Component Islands, deviates from traditional frameworks by rendering components only when they are needed, significantly reducing JavaScript payloads. This results in faster loading times and improved performance. The server-first approach further offloads processing to the server, enhancing the user experience, especially on constrained devices. These features offer developers enhanced speed, simpler codebases, and efficient resource usage .

Astro’s 'zero JS by default' policy minimizes JavaScript overhead, leading to faster initial page loads and less resource consumption on the client side. By drastically reducing the amount of JavaScript sent to the browser, this policy enhances performance and ensures a more responsive user experience, particularly beneficial for mobile users or those with slower network connections .

Astro's core features include Component Islands, which facilitate faster websites by only rendering JavaScript when necessary, and a server-first API design that shifts expensive hydration away from users’ devices, improving performance. Astro also defaults to zero JavaScript runtime overhead, reducing page load times and enabling edge deployment across global platforms like Deno or Cloudflare. Its customizable nature supports multiple UI frameworks such as React, Vue, and Svelte, promoting flexibility and user choice .

---
title: Getting Started
description: A basic intro to Astro.
i18nReady: true
---
import Button from '~/components/Button.a
```shell
  # create a new project with pnpm
  pnpm create astro@latest
  ```
  </Fragment>
  <Fragment slot="yarn">
  ```sh
[Astro Blog](https://astro.build/blog/)
[Astro changelog](https://github.com/withastro/astro/blob/main/packages/astro/
CHANGE

You might also like