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

@skyscout/gaia-client

v2.0.2

Published

Fully-typed TypeScript client for the ESA Gaia Archive stellar astrometry and photometry catalog

Readme

@skyscout/gaia-client

npm version License CI

A lightweight, fully-typed TypeScript client for the European Space Agency (ESA) Gaia Archive (gaiadr3.gaia_source). Abstracts away IVOA Table Access Protocol (TAP) mechanics, Astronomical Data Query Language (ADQL) syntax, and raw catalog column names into clean TypeScript methods. Part of the SkyScout astrophysics ecosystem.


About the ESA Gaia Archive

The ESA Gaia mission has charted a three-dimensional map of nearly two billion stars across the Milky Way and beyond, providing high-precision astrometry (positions, parallaxes ϖ, proper motions, radial velocities) and three-band spectrophotometry (G, G_BP, G_RP).

Official ESA Gaia & IVOA Resources


Features

  • 🎯 High-Level, Zero-ADQL API: Query stars by sky cone (coneSearch), distance in parsecs (searchByDistance), structured physical filters (searchStars), or sourceId (getStarById) without writing raw ADQL or learning TAP column names.
  • 🔓 Zero API Keys Required: Queries the public ESA Gaia Archive synchronous TAP endpoint (https://gea.esac.esa.int/tap-server/tap/sync) directly over standard fetch.
  • 🛡️ Lossless 64-bit sourceId Precision: Preserves 19-digit Gaia DR3 source_id identifiers (e.g. 5853498713190525696) as exact strings without IEEE-754 float64 truncation (2^53 - 1).
  • 🌟 Automatic Physical Enrichment: Automatically maps raw TAP rows into clean camelCase GaiaStar objects with computed distance (distancePc, distanceLy), absolute magnitude (absoluteMagG), relative solar luminosity (logLuminositySolar), effective temperature (teffK), and Morgan–Keenan spectral class (O–M) via @skyscout/core.

Installation

npm install @skyscout/gaia-client @skyscout/core

Quick Start

import { GaiaClient } from '@skyscout/gaia-client';

const client = new GaiaClient();

// 1. Cone Search: Find stars around the Pleiades (RA=56.75, Dec=24.12)
// between 120 and 155 parsecs without writing ADQL
const clusterStars = await client.coneSearch({
  ra: 56.75,
  dec: 24.12,
  radiusDeg: 2.0,       // or use radiusArcmin / radiusArcsec
  minDistancePc: 120,   // automatically converted to parallax bounds
  maxDistancePc: 155,
  minParallaxSnr: 10,
  maxMagG: 16.5,
  sortBy: 'brightest',
  limit: 500,
});

// 2. Volume Search: Find the nearest stars within 20 parsecs of the Sun
const nearbyStars = await client.searchByDistance({
  maxDistancePc: 20,
  minParallaxSnr: 20,
  sortBy: 'nearest',
  limit: 200,
});

// 3. Lookup a single star by its 64-bit Gaia DR3 source_id
const alcyone = await client.getStarById('64995134679307264');
console.log(alcyone?.distancePc, alcyone?.absoluteMagG, alcyone?.spectralClass);

// 4. Escape Hatch: Execute raw ADQL when custom joins or tables are needed
const rawRows = await client.queryAdql(`
  SELECT TOP 10 source_id, ra, dec, parallax, phot_g_mean_mag
  FROM gaiadr3.gaia_source
  WHERE parallax > 100
`);

License

BSD-3-Clause