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

terra-orbit

v0.4.7

Published

An AI space harness powered with NASA APIs

Readme

TerraOrbit

Video demo

Try It

bun add terra-orbit
# or
npm i terra-orbit

Quick Start

Requires: Bun v1.x (install)

# Install
bun add terra-orbit

# Set up environment
cp .env.example .env
# Edit .env → add your NASA_API_KEY and HACK_CLUB_AI_API_KEY
# .env will work in the same dir of the session, if you want it global, add it to ~/.config/terra-orbit/config.json or node_modules/terra-orbit/.env

# Launch
bunx terra-orbit --web   # Web UI
bunx terra-orbit --tui   # Terminal UI

Features

  • 7 NASA API integrations — APOD (Astronomy Picture of the Day), NEO (Near Earth Objects), EPIC (Earth Polychromatic Imaging Camera), DONKI (Space Weather), EONET (Natural Events), TechTransfer (patents & spinoffs), and the NASA Image & Video Library
  • 6 specialized AI sub-agents — Helios (space weather), Aegis (planetary defense), Gaia (Earth observation), Chronos (imagery curation), Prometheus (tech transfer), and Argus (deep web research)
  • Terminal UI — built with OpenTUI, featuring ASCII art, syntax-highlighted output, and slash commands
  • Web UI — React 19 dark-themed chat interface with streaming responses, tool call cards, reasoning blocks, and a CRT scan-line aesthetic
  • 30+ AI tools — every NASA endpoint is exposed as a callable tool for the AI agent
  • Web search — powered by Exa for deep research when NASA APIs lack coverage
  • Multi-step reasoning — agents can chain tool calls, delegate to sub-agents, and autonomously explore space data

How It Works

flowchart LR
    You --> Agent[Terra Agent]
    Agent --> Tools[30+ Tools<br/>APOD, NEO, DONKI, ...]
    Agent --> Subs[6 Sub-Agents<br/>Helios, Aegis, Gaia, ...]
    Tools --> API[NASA APIs + Exa]
    Subs --> API
    API --> Agent
    Agent --> UI[Web UI / TUI]

Why sub-agents? Each sub-agent has a narrow toolset (e.g. Helios only knows DONKI), which cuts hallucinations on specialized tasks. The tradeoff is latency — every sub-agent call costs an extra LLM round-trip — so the agent avoids delegating trivial lookups.

Configuration

Create ~/.config/terra-orbit/config.json:

{
  "NASA_API_KEY": "your-nasa-api-key",
  "HACK_CLUB_AI_API_KEY": "your-hackclub-ai-api-key",
  "MAIN_MODEL": "your-favourite-main-model",
  "SUB_MODEL": "your-favourite-sub-model",
  "PORT": "3000"
}

Alternatively, you can use a .env file in the working directory.

| Variable | Description | |---|---| | NASA_API_KEY | NASA API key (required for NASA tools) | | HACK_CLUB_AI_API_KEY | API key for HackClub AI | | MAIN_MODEL | Main AI model | | SUB_MODEL | Sub-agent AI model | | PORT | Web server port (default: 3000) |

Get NASA_API_KEY from NASA Open APIs and HACK_CLUB_AI_API_KEY from HackClub AI.

Development

bun install
bun run build

Credits


MIT