Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · /chart

SkyMarkertype

One point of your own on the chart. Only ra and dec are needed.

Import it

import type { SkyMarker } from "@johnmorrisdotca/hoshi-stars/chart";

Definition

interface SkyMarker {
    id?: string | undefined;
    ra: number;
    dec: number;
    date?: MarkerWhen | undefined;
    label?: string | undefined;
    color?: string | undefined;
    size?: number | undefined;
    group?: string | undefined;
}

Members

NameTypeDescription
id (optional)string | undefined

What a click says it was (hoshi-marker's id); m<position in the list> when left out.

ranumber

Where, in degrees: right ascension 0 to 360 and declination -90 to 90 (J2000). A marker with a number that is not finite is not drawn.

decnumber
date (optional)MarkerWhen | undefined

When. A marker with a date is shown by the time range and joined into a track in date order; one without is always shown and is never joined.

label (optional)string | undefined

The name written beside it, placed clear of the stars and of every other name.

color (optional)string | undefined

Any CSS colour (#ff8fb1 by default).

size (optional)number | undefined

The dot's width in pixels (9 by default).

group (optional)string | undefined

What it belongs to (Observing log, Comet): a track joins one group at a time.

Examples

import type { SkyMarker } from "@johnmorrisdotca/hoshi-stars/chart";

const seen: SkyMarker = { id: "m42-night", ra: 83.82, dec: -5.39, date: "2026-11-08T21:30:00Z", label: "M42, 8x40 binoculars", group: "Observing log" };
console.log(seen.label);
// M42, 8x40 binoculars
M42, 8x40 binoculars

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.