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

@gilak/skills-globe

v1.0.0

Published

A reusable 3D skills globe component with interactive legend

Readme

@gilak/skills-globe

A reusable 3D skills globe component with interactive legend for React applications.

Features

  • 🎯 Interactive 3D globe with skill points
  • 📱 Responsive design with breakpoint-based configurations
  • 🎨 Customizable styling with CSS modules
  • 🔄 Shared state management between globe and legend
  • ♿ Accessibility features
  • 🎭 Smooth animations and transitions

Installation

npm install @gilak/skills-globe

Peer Dependencies

This package requires the following peer dependencies:

  • react (^18.0.0 || ^19.0.0)
  • react-dom (^18.0.0 || ^19.0.0)
  • @react-three/fiber (^8.0.0)
  • @react-three/drei (^9.0.0)
  • three (^0.160.0)
  • react-i18next (^14.0.0)
  • i18next (^23.0.0)

Usage

Basic Usage

import { SkillsGlobe } from "@gilak/skills-globe";
import React from "react";

const skills = [
  {
    id: "typescript",
    scale: 10,
    color: "#3178C6",
  },
  {
    id: "react",
    scale: 9,
    color: "#61DAFB",
  },
  // ... more skills
];

function App() {
  const handleSkillSelect = (skillId: string) => {
    console.log(`Selected skill: ${skillId}`);
  };

  return <SkillsGlobe skills={skills} onSkillSelect={handleSkillSelect} />;
}

Advanced Usage with Custom Styling

import {
  SkillsGlobe,
  SkillsProvider,
  useSkillsContext,
} from "@gilak/skills-globe";
import React from "react";

const CustomSkillsGlobe = () => {
  return (
    <SkillsProvider skills={skills}>
      <div className="custom-container">
        <SkillsGlobe
          skills={skills}
          onSkillSelect={handleSkillSelect}
          className="custom-globe"
          style={{ height: "500px" }}
        />
      </div>
    </SkillsProvider>
  );
};

Individual Components

You can also use the components individually:

import { Globe, Legend, SkillsProvider } from "@gilak/skills-globe";
import React from "react";

function CustomLayout() {
  return (
    <SkillsProvider skills={skills}>
      <div className="layout">
        <div className="globe-section">
          <Globe skills={skills} onSkillSelect={handleSkillSelect} />
        </div>
        <div className="legend-section">
          <Legend skills={skills} onSkillSelect={handleSkillSelect} />
        </div>
      </div>
    </SkillsProvider>
  );
}

API Reference

SkillsGlobe

The main component that combines the 3D globe and legend with shared state.

Props

  • skills: Skill[] - Array of skill objects
  • onSkillSelect?: (skillId: string) => void - Callback when a skill is selected
  • className?: string - Additional CSS class
  • style?: React.CSSProperties - Additional inline styles

Skill Interface

interface Skill {
  id: string;
  scale: number; // 1-10 scale
  color: string;
  icon?: string;
}

Hooks

  • useSkillsContext() - Access the skills context
  • useResponsiveCanvas() - Get responsive canvas configuration
  • useResponsiveGlobe() - Get responsive globe configuration
  • useGlobeFocus() - Manage globe focus state

Constants

  • CANVAS_CONFIG - Canvas and camera configuration
  • GLOBE_CONFIG - Globe geometry and animation configuration
  • SKILL_POINT_CONFIG - Skill point size and animation configuration

Styling

The package uses CSS modules and CSS variables for styling. You can customize the appearance by overriding CSS variables:

:root {
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --color-primary-md: #007bff;
  --color-light-lg: #ffffff;
  --color-dark-md: #333333;
  --color-fade-sm: rgba(0, 0, 0, 0.1);
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --border-radius-sm: 0.25rem;
  --transition-md: 0.3s ease;
  --focus-outline-width: 2px;
  --focus-outline-style: solid;
  --focus-outline-color: #007bff;
  --focus-outline-offset: 2px;
}

License

MIT