# Galaxy Starfield Background

> Galaxy starfield background: you sit inside a sphere of 65,000 twinkling stars, each flaring into a four-point diffraction cross at its peak, over a slow drifting nebula with a dusty band across the equator. Drag to orbit like a planetarium dome, the sky auto-rotates and leans toward the pointer, and it warps in from deep space on load. Ember, prism, aurora and ice presets or your own star and nebula colours. React only, raw WebGL, no three.js.

- Author: [Kedhareswer Naidu](https://21st.dev/@kedhareswer)
- License: mit
- Tags: Animated, Background, Interactive, Shader, WebGL
- Live preview: https://21st.dev/@kedhareswer/components/galaxy-starfield

## Install

```bash
npx shadcn@latest add "https://21st.dev/r/kedhareswer/galaxy-starfield?api_key=$API_KEY_21ST"
```

Requires a 21st API key (generate one at https://21st.dev/mcp) passed as `API_KEY_21ST`. Free accounts get a limited number of installs per day; unlimited on a paid plan — see https://21st.dev/pricing.

Full component directory: https://21st.dev/llms.txt · More like this: https://21st.dev/community/components/s/animated.md
