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

@spaceboy-ai/sdk

v0.1.0

Published

Spaceboy SDK for TypeScript and JavaScript: create projects, run building agents, and ship deploys from your own applications.

Readme

@spaceboy-ai/sdk

The Spaceboy SDK for TypeScript and JavaScript: create projects, run building agents, and ship deploys from your own applications. Every method wraps the same GraphQL API that powers the Spaceboy dashboard, the CLI, and the iOS app.

  • Docs: https://spaceboy.ai/docs/developer-reference — every capability, documented across the CLI, the HTTP API, and this SDK
  • Requires: Node 20+ and an API key (create one on the API Keys page in your dashboard)

The class is still named Repobot for existing imports; prefer the Spaceboy export.

Install

npm install @spaceboy-ai/sdk

Quickstart

import { Spaceboy } from "@spaceboy-ai/sdk"

const spaceboy = new Spaceboy({
  apiKey: process.env.SPACEBOY_API_KEY,
})

// Describe an app; the agent derives a plan, builds it, and publishes it
const draft = await spaceboy.setup.start({
  description: "A storefront for handmade ceramics",
})
const finished = await spaceboy.setup.wait(draft.id)
console.log(finished.liveDeploy?.resultUrl)

// Keep building on the result
const { reply } = await spaceboy.agent.message({
  projectId: finished.projectId!,
  text: "Add a product reviews section",
})

// Ship it
const deploy = await spaceboy.deploys.request({
  projectId: finished.projectId!,
  target: "PRODUCTION",
})
console.log(deploy.resultUrl)

What's in the box

| Namespace | What it does | | --- | --- | | me(), orgs | Who you are; list and create organizations | | projects | List and create projects; starter templates | | setup | The setup wizard, headless: describe → plan → build → live URL | | agent, ask(), actions | Chat with a project's agent; ask the account agent; confirm proposed actions | | tasks, plans | Fire-and-forget tracked tasks; dependency-graph plans shipped as one release | | deploys, builds, reviews, cicd | Deploys with wait-for-URL, mobile builds, release reviews, CI health | | environments, sessions, previews | Environments and infrastructure; workspace sessions; shareable previews | | domains, theme | Custom domains with DNS records; the app's theme | | billing, integrations, runs, kernel | Plans and credits (incl. saved-card top-ups), BYO connections, agent run forensics, kernel upgrades |

Long-running operations (setup.wait, tasks.watch, deploys.request, plans.run) poll server-side state and resolve on success or throw a RepobotError — the same semantics as the CLI's --wait flags.

Errors

import { Spaceboy, RepobotError } from "@spaceboy-ai/sdk"

const spaceboy = new Spaceboy({ apiKey: process.env.SPACEBOY_API_KEY })

try {
  await spaceboy.deploys.request({ projectId, target: "PRODUCTION" })
} catch (error) {
  if (error instanceof RepobotError) {
    console.error(error.code, error.message)
    // Out-of-credits errors carry error.usage with the balance and
    // top-up bounds; spaceboy.billing.topUp() is the remediation.
  }
}

The escape hatch

The typed surface covers the operations most integrations need. Everything else in the API — the schema is introspectable — is one call away:

const data = await spaceboy.graphql(
  `query($input: AuditLogsInput!) {
    auditLogs(input: $input) { nodes { occurredAt action summary } }
  }`,
  { input: { accountId } },
)

Configuration

| Constructor option | Environment variable | Default | | --- | --- | --- | | apiKey | SPACEBOY_API_KEY (REPOBOT_API_KEY fallback) | — (required) | | account | SPACEBOY_ACCOUNT (REPOBOT_ACCOUNT fallback) | the key's home organization | | apiUrl | SPACEBOY_API_URL (REPOBOT_API_URL fallback) | https://api.spaceboy.ai/graphql |

Prefer a terminal?

The @spaceboy-ai/cli package wraps the same platform for shells, CI pipelines, and coding agents — non-interactive, --json output, meaningful exit codes.