# @astrojs/preact

> Use Preact components within Astro

Latest version **6.1.1** (published 2026-10-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install @astrojs/preact
pnpm add @astrojs/preact
yarn add @astrojs/preact
bun add @astrojs/preact
```

## Health

**Score 75/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 6.1.1 |
| Published | 2026-10-21 |
| First published | 2022-03-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=22.23.4 |
| Dependencies | 6 |
| Unpacked size | 24.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 63590 |
| Author | withastro |
| Maintainers | fredkschott, matthewp |
| Keywords | astro-integration, astro-component, renderer, preact |

## Links

- npm: https://www.npmjs.com/package/@astrojs/preact
- Repository: https://github.com/withastro/astro
- Homepage: https://docs.astro.build/en/guides/integrations-guide/preact/
- Issues: https://github.com/withastro/astro/issues
- npm.io page: https://npm.io/package/@astrojs/preact

## Dependencies (6)

- [vite](https://npm.io/package/vite.md) ^8.3.4
- [devalue](https://npm.io/package/devalue.md) ^6.0.2
- [@preact/signals](https://npm.io/package/@preact/signals.md) ^2.11.3
- [@preact/preset-vite](https://npm.io/package/@preact/preset-vite.md) ^2.10.6
- [preact-render-to-string](https://npm.io/package/preact-render-to-string.md) ^6.8.0
- [@astrojs/internal-helpers](https://npm.io/package/@astrojs/internal-helpers.md) 0.13.0

## Recent versions

- 6.1.1 (latest) — 2026-10-21
- 6.0.0-beta.2 (beta) — 2026-06-18
- 6.0.0-alpha.0 (alpha) — 2026-04-30
- 0.0.0-router-noexec-20250129135648 (experimental--router-noexec) — 2025-01-29
- 0.0.0-sessions-20241128172109 (experimental--sessions) — 2024-11-28
- 0.0.0-container-20240524172326 (experimental--container) — 2024-05-24
- 0.0.0-astro-env-20240508155554 (experimental--astro-env) — 2024-05-08
- 0.0.0-actions-20240507170618 (experimental--actions) — 2024-05-07
- 0.0.0-vitals-fix-20240503214211 (experimental--vitals-fix) — 2024-05-03
- 0.0.0-10745-20240410180016 (experimental--10745) — 2024-04-10
- 0.0.0-dupicate-content-entry-improved-message-20231220220040 (experimental--dupicate-content-entry-improved-message) — 2023-12-20
- 3.0.0-rc.3 (rc) — 2023-08-29
- 0.0.0-experimental-assets-20230307131344 (next--experimental-assets) — 2023-03-07
- 0.0.0-cloudcannon-fix-20230306211609 (next--cloudcannon-fix) — 2023-03-06
- 0.0.0-imgcache-20220929145446 (next--imgcache) — 2022-09-29
- … 105 more at https://npm.io/package/@astrojs/preact/versions

## README

# @astrojs/preact ⚛️

This **[Astro integration][astro-integration]** enables server-side rendering and client-side hydration for your [Preact](https://preactjs.com/) components.

## Documentation

Read the [`@astrojs/preact` docs][docs]

## Support

- Get help in the [Astro Discord][discord]. Post questions in our `#support` forum, or visit our dedicated `#dev` channel to discuss current development and more!

- Check our [Astro Integration Documentation][astro-integration] for more on integrations.

- Submit bug reports and feature requests as [GitHub issues][issues].

## Contributing

This package is maintained by Astro's Core team. You're welcome to submit an issue or PR! These links will help you get started:

- [Contributor Manual][contributing]
- [Code of Conduct][coc]
- [Community Guide][community]

## License

MIT

Copyright (c) 2023–present [Astro][astro]

[astro]: https://astro.build/
[docs]: https://docs.astro.build/en/guides/integrations-guide/preact/
[contributing]: https://github.com/withastro/astro/blob/main/CONTRIBUTING.md
[coc]: https://github.com/withastro/.github/blob/main/CODE_OF_CONDUCT.md
[community]: https://github.com/withastro/.github/blob/main/COMMUNITY_GUIDE.md
[discord]: https://astro.build/chat/
[issues]: https://github.com/withastro/astro/issues
[astro-integration]: https://docs.astro.build/en/guides/integrations/

---
_Source: https://npm.io/package/@astrojs/preact · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
