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 · The data door: hand the package your own stars or objects as a source with its own licence and credit, and see whose data is on the screen

SourceInfotype

What a source says about itself. *

Import it

import type { SourceInfo } from "@johnmorrisdotca/hoshi-stars/door";

Definition

interface SourceInfo {
    id: string;
    name: {
        en: string;
        ja: string;
    };
    credit: {
        en: string;
        ja: string;
    };
    licence: Licence;
    url: string;
    retrieved: string;
}

Members

NameTypeDescription
idstring

Unique in a view: lower-case letters, digits and hyphens ("ucac4", "my-catalogue").

name{ en: string; ja: string; }
credit{ en: string; ja: string; }

The line shown on screen. Never empty, in both languages.

licenceLicence

The licence: its name and link are always shown with the credit.

urlstring

The source's own page.

retrievedstring

The day it was retrieved, yyyy-mm-dd, as NOTICE.md writes it.

Examples

import type { SourceInfo } from "./data-door.ts";

const info: SourceInfo = {
  id: "my-catalogue",
  name: { en: "My catalogue", ja: "私のカタログ" },
  credit: { en: "My catalogue, A. Person (2026)", ja: "私のカタログ(A. Person、2026年)" },
  licence: { name: "CC BY 4.0", url: "https://creativecommons.org/licenses/by/4.0/" },
  url: "https://example.org/my-catalogue",
  retrieved: "2026-11-10",
};

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