
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@omnedia/ngx-galaxy
Advanced tools
A simple component library to create mesmerizing galaxy particle background effect.
This library is part of the NGXUI ecosystem.
View all available components at https://ngxui.com
@omnedia/ngx-galaxy is an Angular library that renders an interactive animated galaxy background using WebGL. It supports mouse interaction, repulsion effects, twinkling stars, and multiple customization options. You can layer content above the galaxy using ng-content.
ng-content overlay.npm install @omnedia/ngx-galaxy ogl
Import the NgxGalaxyComponent in your Angular component or page:
import {NgxGalaxyComponent} from '@omnedia/ngx-galaxy';
@Component({
selector: 'app-home',
standalone: true,
imports: [NgxGalaxyComponent],
templateUrl: './home.component.html'
})
export class HomeComponent {
}
In your template:
<om-galaxy [focal]="[0.5, 0.5]" [mouseInteraction]="true">
<h1>Welcome to the Galaxy</h1>
</om-galaxy>
<canvas> element using WebGL.<ng-content> slot allows you to overlay any HTML/UI elements on top of the galaxy.@Input() bindings.
<om-galaxy
[focal]="[0.5, 0.5]"
[rotation]="[1.0, 0.0]"
[starSpeed]="0.5"
[density]="1"
[hueShift]="140"
[disableAnimation]="false"
[speed]="1.0"
[mouseInteraction]="true"
[glowIntensity]="0.3"
[saturation]="0.0"
[mouseRepulsion]="true"
[twinkleIntensity]="0.3"
[rotationSpeed]="0.1"
[repulsionStrength]="2"
[autoCenterRepulsion]="0"
[transparent]="true"
styleClass="custom-class"
>
<ng-content></ng-content>
</om-galaxy>
focal — [number, number] focal point in normalized coordinates. Default: [0.5, 0.5]rotation — [number, number] manual rotation matrix values. Default: [1.0, 0.0]starSpeed — Star layer movement speed. Default: 0.5density — Star density multiplier. Default: 1hueShift — Global hue rotation in degrees. Default: 140disableAnimation — Stops animation if true. Default: falsespeed — Overall animation speed multiplier. Default: 1.0mouseInteraction — Enables mouse interaction. Default: trueglowIntensity — Brightness of star flares. Default: 0.3saturation — Color saturation multiplier. Default: 0.0mouseRepulsion — Repels stars from mouse position. Default: truetwinkleIntensity — Amount of star brightness flicker. Default: 0.3rotationSpeed — Automatic scene rotation speed. Default: 0.1repulsionStrength — Strength of mouse repulsion. Default: 2autoCenterRepulsion — Repulsion from the galaxy center. Default: 0transparent — Renders background with alpha transparency. Default: truestyleClass — Custom CSS class for the outer container.
<om-galaxy [hueShift]="200" [density]="1.5" [twinkleIntensity]="0.5">
<div class="headline">
<h2>Explore the Stars</h2>
</div>
</om-galaxy>
SCSS:
om-galaxy .headline {
text-align: center;
color: white;
margin-top: 4rem;
}
The default structure:
<div class="om-galaxy">
<div class="om-galaxy-background"></div>
<div class="content-inside">
<ng-content></ng-content>
</div>
</div>
.om-galaxy-background has pointer-events: none so it never blocks interaction with your content.
Contributions are welcome via PR or issue submission.
MIT License
FAQs
A simple component library to create mesmerizing galaxy particle background effect.
The npm package @omnedia/ngx-galaxy receives a total of 15 weekly downloads. As such, @omnedia/ngx-galaxy popularity was classified as not popular.
We found that @omnedia/ngx-galaxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.