npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

github-solar-system

v0.1.0

Published

Reusable GitHub repository solar system data builder and React renderer

Readme

github-solar-system

github-solar-system is a React package for turning GitHub repository data into a solar-system style visualization.

It provides:

  • core types for GitHub-style solar-system data
  • a builder that turns plain data into a SolarSystem model
  • a React renderer for displaying the system
  • packaged CSS for the default visuals, labels, moons, and biome styles

What It Does

The package maps GitHub repository data into:

  • a user "sun"
  • important repositories as main planets
  • additional repositories as outer dead planets or dots
  • branches as moons

The default renderer includes:

  • orbit rings
  • biome-based planet styling
  • animated moons and planet layers
  • clickable planets linking to GitHub

Installation

npm install github-solar-system

Peer dependencies:

  • react
  • react-dom

Public API

Core entry:

import {
  createSolarSystemData,
  type BranchData,
  type RepoData,
  type UserData,
  type SolarSystemData
} from "github-solar-system";

React entry:

import { RenderSolarSystem } from "github-solar-system/react";
import "github-solar-system/styles.css";

Usage

1. Render from plain data

Use this when you already have repo and branch data from your own backend or API layer.

import {
  createSolarSystemData,
  type SolarSystemData
} from "github-solar-system";

const data: SolarSystemData = {
  user: {
    name: "octocat",
    avatarUrl: "https://github.com/images/error/octocat_happy.gif"
  },
  repos: [
    {
      name: "my-repo",
      date: "2026-03-20T12:00:00Z",
      commitCount: 48,
      branchCount: 6,
      languages: ["TypeScript", "CSS"],
      branches: [
        { name: "main", date: "2026-03-20T12:00:00Z", commitCount: 30 },
        { name: "feature-ui", date: "2026-03-18T09:00:00Z", commitCount: 10 }
      ]
    }
  ]
};

const system = createSolarSystemData(data);

Then render it:

import { RenderSolarSystem } from "github-solar-system/react";
import "github-solar-system/styles.css";

export function App() {
  return <RenderSolarSystem system={system} />;
}

Data Types

BranchData

type BranchData = {
  name: string;
  date: string;
  commitCount: number;
};

RepoData

type RepoData = {
  name: string;
  date: string;
  commitCount: number;
  branchCount: number;
  languages: string[];
  branches: BranchData[];
};

UserData

type UserData = {
  name: string;
  avatarUrl?: string;
};

SolarSystemData

type SolarSystemData = {
  user: UserData;
  repos: RepoData[];
};

CSS

Import the packaged stylesheet once in your app:

import "github-solar-system/styles.css";

That stylesheet pulls in:

  • solar system layout
  • planets
  • moons
  • labels
  • sun styling
  • biome CSS

Important Note About GitHub Data

This package expects you to provide repo data yourself.

In practice, the safest setup is to:

  • fetch GitHub data server-side or behind your own proxy
  • normalize it into SolarSystemData
  • pass it through createSolarSystemData(...)

That keeps tokens and network behavior under your control.

Current Scope

This package currently focuses on:

  • building a solar-system model from GitHub-style data
  • rendering that model with the included React components and CSS

It does not currently expose:

  • low-level planet renderer internals as public API
  • a fully configurable theme system
  • a framework-agnostic renderer

Example Import Summary

import {
  createSolarSystemData
} from "github-solar-system";

import { RenderSolarSystem } from "github-solar-system/react";
import "github-solar-system/styles.css";