
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-starmap
Advanced tools
A React component library for rendering interactive galactic constellation visualizations with pan, zoom, and time-based filtering
A React component library for rendering interactive galactic constellation visualizations with pan, zoom, and time-based filtering capabilities.
npm install react-starmap
import { Starmap, Galaxy } from 'react-starmap';
const galaxy: Galaxy = {
constellations: [
{
label: "Orion",
stars: 7,
anniversary: new Date("2023-01-15"),
},
{
label: "Big Dipper",
stars: 7,
anniversary: new Date("2023-06-20"),
},
{
stars: 5, // Label is optional
anniversary: new Date("2024-03-10"),
},
],
};
function App() {
return (
<Starmap
galaxy={galaxy}
width={800}
height={600}
enableTimeScrubber={true}
/>
);
}
import { Starmap, Galaxy } from 'react-starmap';
import { useState } from 'react';
function App() {
const [enableTimeScrubber, setEnableTimeScrubber] = useState(false);
return (
<div>
<label>
<input
type="checkbox"
checked={enableTimeScrubber}
onChange={(e) => setEnableTimeScrubber(e.target.checked)}
/>
Enable Time Scrubber
</label>
<Starmap
galaxy={galaxy}
width={1000}
height={700}
enableTimeScrubber={enableTimeScrubber}
minZoom={0.5}
maxZoom={3}
/>
</div>
);
}
Starmap Component Props| Prop | Type | Default | Description |
|---|---|---|---|
galaxy | Galaxy | required | Galaxy data containing constellations |
width | number | 800 | Width of the starmap canvas in pixels |
height | number | 600 | Height of the starmap canvas in pixels |
enableTimeScrubber | boolean | false | Enable time-based filtering with date range slider |
minZoom | number | 0.5 | Minimum zoom level |
maxZoom | number | 3 | Maximum zoom level |
Galaxyinterface Galaxy {
constellations: Constellation[];
}
Constellationinterface Constellation {
label?: string; // Optional text label displayed under constellation
stars: number; // Number of stars (determines N-gon shape)
anniversary: Date; // Date for time-based filtering
}
The time scrubber feature allows filtering constellations based on their anniversary dates:
enableTimeScrubber propEach constellation is rendered as:
MIT
FAQs
A React component library for rendering interactive galactic constellation visualizations with pan, zoom, and time-based filtering
We found that react-starmap 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.