# Publish to npm

> Learn how to publish Astro components to npm

Building a new Astro component? **Publish it to [npm!](https://npmjs.com/)**

Publishing an Astro component is a great way to reuse your existing work across your projects, and to share with the wider Astro community at large. Astro components can be published directly to and installed from npm, just like any other JavaScript package.

Looking for inspiration? Check out some of our favorite [themes](https://astro.build/themes/) and [components](https://astro.build/integrations/) from the Astro community. You can also [search npm](https://www.npmjs.com/search?q=keywords:astro-component,withastro) to see the entire public catalog.

Don’t want to go it alone?

Check out [Astro Community’s component template](https://github.com/astro-community/component-template) for a community-supported, out-of-the-box template!

## Quick Start

[Section titled “Quick Start”](#quick-start)

To get started developing your component quickly, you can use a template already set up for you.

```bash