withastro/astro

GitHub: withastro/astro

Astro 是一款面向内容驱动型网站的现代 Web 框架,通过岛屿架构实现零 JS 默认输出,兼顾优秀的开发者体验与极致的页面性能。

Stars: 57270 | Forks: 3187

![构建你想要的网络](.github/assets/banner.jpg 'Build the web you want')


Astro 是一款面向现代 Web 的网站构建工具 —
强大的开发者体验与轻量级的输出完美结合。

[![main](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/a8c55abfad112015.svg)](https://github.com/withastro/astro/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/withastro/astro/blob/main/LICENSE) [![npm version](https://badge.fury.io/js/astro.svg)](https://badge.fury.io/js/astro)
## 安装 安装最新版本 Astro 的**推荐**方式是运行以下命令: ``` npm create astro@latest ``` 你也可以通过运行以下命令来**手动**安装 Astro: ``` npm install astro ``` 需要帮助?请从我们的[入门指南](https://docs.astro.build/en/getting-started/)开始。 想要快速示例?直接在浏览器中[打开一个入门项目](https://astro.new/)。 ## 文档 访问我们的[官方文档](https://docs.astro.build/)。 ## 支持 遇到问题?在官方 [Astro Discord](https://astro.build/chat) 获取帮助。 ## 目录 | Package | Release Notes | | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [astro](packages/astro) | [![astro version](https://img.shields.io/npm/v/astro.svg?label=%20)](packages/astro/CHANGELOG.md) | | [create-astro](packages/create-astro) | [![create-astro version](https://img.shields.io/npm/v/create-astro.svg?label=%20)](packages/create-astro/CHANGELOG.md) | | [@astrojs/react](packages/integrations/react) | [![@astrojs/react version](https://img.shields.io/npm/v/@astrojs/react.svg?label=%20)](packages/integrations/react/CHANGELOG.md) | | [@astrojs/preact](packages/integrations/preact) | [![@astrojs/preact version](https://img.shields.io/npm/v/@astrojs/preact.svg?label=%20)](packages/integrations/preact/CHANGELOG.md) | | [@astrojs/solid-js](packages/integrations/solid) | [![@astrojs/solid version](https://img.shields.io/npm/v/@astrojs/solid-js.svg?label=%20)](packages/integrations/solid/CHANGELOG.md) | | [@astrojs/svelte](packages/integrations/svelte) | [![@astrojs/svelte version](https://img.shields.io/npm/v/@astrojs/svelte.svg?label=%20)](packages/integrations/svelte/CHANGELOG.md) | | [@astrojs/vue](packages/integrations/vue) | [![@astrojs/vue version](https://img.shields.io/npm/v/@astrojs/vue.svg?label=%20)](packages/integrations/vue/CHANGELOG.md) | | [@astrojs/node](packages/integrations/node) | [![@astrojs/node version](https://img.shields.io/npm/v/@astrojs/node.svg?label=%20)](packages/integrations/node/CHANGELOG.md) | | [@astrojs/vercel](packages/integrations/vercel) | [![@astrojs/vercel version](https://img.shields.io/npm/v/@astrojs/vercel.svg?label=%20)](packages/integrations/vercel/CHANGELOG.md) | | [@astrojs/cloudflare](packages/integrations/cloudflare) | [![@astrojs/cloudflare version](https://img.shields.io/npm/v/@astrojs/cloudflare.svg?label=%20)](packages/integrations/cloudflare/CHANGELOG.md) | | [@astrojs/partytown](packages/integrations/partytown) | [![@astrojs/partytown version](https://img.shields.io/npm/v/@astrojs/partytown.svg?label=%20)](packages/integrations/partytown/CHANGELOG.md) | | [@astrojs/sitemap](packages/integrations/sitemap) | [![@astrojs/sitemap version](https://img.shields.io/npm/v/@astrojs/sitemap.svg?label=%20)](packages/integrations/sitemap/CHANGELOG.md) | | [@astrojs/alpinejs](packages/integrations/alpinejs) | [![@astrojs/alpinejs version](https://img.shields.io/npm/v/@astrojs/alpinejs.svg?label=%20)](packages/integrations/alpinejs/CHANGELOG.md) | | [@astrojs/mdx](packages/integrations/mdx) | [![@astrojs/mdx version](https://img.shields.io/npm/v/@astrojs/mdx.svg?label=%20)](packages/integrations/mdx/CHANGELOG.md) | | [@astrojs/db](packages/db) | [![@astrojs/db version](https://img.shields.io/npm/v/@astrojs/db.svg?label=%20)](packages/db/CHANGELOG.md) | | [@astrojs/rss](packages/astro-rss) | [![@astrojs/rss version](https://img.shields.io/npm/v/@astrojs/rss.svg?label=%20)](packages/astro-rss/CHANGELOG.md) | | [@astrojs/netlify](packages/integrations/netlify) | [![@astrojs/netlify version](https://img.shields.io/npm/v/@astrojs/netlify.svg?label=%20)](packages/integrations/netlify/CHANGELOG.md) | | [@astrojs/check](packages/language-tools/astro-check) | [![astro-check version](https://img.shields.io/npm/v/@astrojs/check.svg?label=%20)](packages/language-tools/astro-check/CHANGELOG.md) | | [@astrojs/language-server](packages/language-tools/language-server) | [![@astrojs/language-server version](https://img.shields.io/npm/v/@astrojs/language-server.svg?label=%20)](packages/language-tools/language-server/CHANGELOG.md) | | [@astrojs/ts-plugin](packages/language-tools/ts-plugin) | [![@astrojs/ts-plugin version](https://img.shields.io/npm/v/@astrojs/ts-plugin.svg?label=%20)](packages/language-tools/ts-plugin/CHANGELOG.md) | | [astro-vscode](packages/language-tools/vscode) | [![astro-vscode version](https://img.shields.io/npm/v/astro-vscode.svg?label=%20)](packages/language-tools/vscode/CHANGELOG.md) | [![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/6178/badge)](https://bestpractices.coreinfrastructure.org/projects/6178) 部分官方项目在此仓库之外维护: | Project | Repository | | ---------------------------------------------------------- | ------------------------------------------------------------- | | [@astrojs/compiler](https://github.com/withastro/compiler) | [withastro/compiler](https://github.com/withastro/compiler) | | [Starlight](https://github.com/withastro/starlight) | [withastro/starlight](https://github.com/withastro/starlight) | ## 链接 - [许可协议 (MIT)](LICENSE) - [行为准则](https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md) - [开放治理与投票](https://github.com/withastro/.github/blob/main/GOVERNANCE.md) - [项目资助](https://github.com/withastro/.github/blob/main/FUNDING.md) - [网站](https://astro.build/) ## 赞助商 Astro 是免费的开源软件,得益于这些优秀的赞助商才得以实现。 [❤️ 赞助 Astro! ❤️](https://github.com/withastro/.github/blob/main/FUNDING.md)

Sponsor logos including the current Astro Sponsors, Gold Sponsors, and Exclusive Partner Sponsors: Netlify, Sentry, and Project IDX.

标签:Astro, CMS安全, Islands架构, JavaScript, Markdown, MITM代理, MIT许可, NPM包, OSV-Scalibr, React, SBOM分析, SEO优化, SOC Prime, SSG, SSR, Svelte, Syscalls, TypeScript, Vue, Web开发框架, 内容驱动网站, 博客搭建, 安全插件, 官网建设, 开发工具, 性能优化, 数据可视化, 文件系统扫描, 文档生成, 检测绕过, 现代Web, 自动化攻击, 自动化攻击, 零JS, 静态站点生成