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

@astrologer/react-chart

v1.0.1

Published

A comprehensive **Astrology Visualization Framework** for React.

Readme

@astrologer/react-chart

A comprehensive Astrology Visualization Framework for React.

More than just a component library, this framework provides a composable architecture for building any type of astrological chart—from standard Natal/Transit wheels to completely custom visualizations—powered by the precision of @astrologer/astro-core.

The Framework Philosophy

  1. Context-Driven: An <AstroChart /> container manages the coordinate system, scaling, and data flow.
  2. Composable Primitives: Building blocks like ZodiacWheel, PlanetRing, and AspectLines automatically adapt to the chart's context.
  3. Data-Agnostic Visuals: Decoupled from calculation logic; render data from any source (server-side, client-side, or static JSON) as long as it matches the schema.

Features

  • Component-Driven: Build your own chart layouts using atomic components.
  • Pre-built Charts: Includes ready-to-use Natal, Transit, and Synastry charts.
  • Themable: Easy CSS-based styling with built-in support for light/dark modes and custom themes (e.g., Astrodienst/Co-Star style).
  • Responsive: Fully SVG-based, scaling perfectly from mobile to desktop.
  • Lightweight: Does not bundle astronomical calculation logic; accepts pure data objects.

Installation

pnpm install @astrologer/react-chart @astrologer/astro-core

Quick Start

import { NatalChart } from '@astrologer/react-chart';
import '@astrologer/react-chart/dist/index.css';

// Data typically comes from @astrologer/astro-core
const MyChart = ({ chartData }) => (
  <NatalChart 
    data={chartData} 
    width={600} 
    height={600} 
  />
);

Custom Chart Composition

You can compose a custom chart layout using the internal components:

import { 
  AstroChart, 
  ZodiacWheel, 
  PlanetRing, 
  AspectLines, 
  HouseLines 
} from '@astrologer/react-chart';

const CustomChart = ({ data }) => (
  <AstroChart data={data} width={600} height={600}>
    <ZodiacWheel />
    <HouseLines />
    <PlanetRing />
    <AspectLines />
  </AstroChart>
);

Advanced Usage: Server-Side Rendering (SSR)

Since this library handles only the visual layer, you can calculate chart data on your server (Node.js) using @astrologer/astro-core and pass the JSON to the client for rendering. This keeps your client-side bundle small and fast.

Themes

The library uses CSS variables for all colors and stroke widths. You can override them globally or use the built-in themes:

import { AstrodienstChart } from '@astrologer/react-chart';
// Imports the specific theme CSS automatically

License

GNU Affero General Public License v3.0