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

@skycatch-api/skylink-node

v0.2.1

Published

Nodejs library for accessing Skycatch's REST API

Readme

skylink-node

TypeScript / Node.js client for the Skycatch Data Hub REST API. The published package is compiled JavaScript with declaration files; the HTTP layer is generated from schema.json via @hey-api/openapi-ts.

Install

pnpm add @skycatch-api/skylink-node
# or: npm install @skycatch-api/skylink-node

Usage

Create a client with your API base URL and bearer token. Both are required.

import SkyLink from "@skycatch-api/skylink-node"

const api = SkyLink({
  API_URL: process.env.SKYLINK_API_URL!,
  API_TOKEN: process.env.SKYLINK_API_TOKEN!
})

const org = await api.getOrganization({
  organizationId: process.env.SKYLINK_API_ORGANIZATION_ID!
})

console.log(org?.organization?.name)

Parameters

Path and query arguments use camelCase (for example organizationId, siteId, datasetId, processingJobId, analyticId).

Response shape

Each method resolves to the API’s inner data payload (the object inside the HTTP JSON envelope). For example, getOrganization resolves to an object with an organization field, and list endpoints expose items on that payload—not a second nested data wrapper.

const sites = await api.getSites({ organizationId })
for (const site of sites?.items ?? []) {
  console.log(site.id, site.name)
}

CommonJS

const SkyLink = require("@skycatch-api/skylink-node").default

const api = SkyLink({ API_URL: "...", API_TOKEN: "..." })
api.getOrganization({ organizationId: "..." }).then((res) => {
  console.log(res?.organization?.name)
})

API surface

The default export is a factory SkyLink(config) that returns an object with methods such as:

  • getOrganizations, getOrganization
  • getSites, getSite
  • getDatasets, getDataset, createDataset
  • getProcessingJobs, getProcessingJob, getProcessingOutputs
  • getAnalytics, getAnalytic
  • getFileManagerCredentialsBySite

Types for payloads and responses are re-exported from the package entry (for example GetOrganizationResponse, SiteParams, CreateDatasetPayload).

Development

| Command | Description | |--------|-------------| | pnpm install | Install dependencies | | pnpm run build | Compile src/ to dist/ | | pnpm run lint | Typecheck (tsc --noEmit) | | pnpm run test | Run tests (see below) | | pnpm run generate:client | Regenerate src/sdk from schema.json |

After generate:client, check src/sdk/client.gen.ts: if the createClientConfig import points at ./src/skd-config.ts, change it to @/skd-config so the project resolves correctly.

Integration tests

Tests load test/.env. Copy test/.env-sample to test/.env and set:

  • SKYLINK_API_URL
  • SKYLINK_API_TOKEN
  • SKYLINK_API_ORGANIZATION_ID

Then run pnpm run test from the repository root.

Links