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

@whaly/connector-sdk

v0.3.2

Published

A TypeScript SDK for building data connectors with support for file processing (Excel/CSV), cloud storage, SFTP, and BigQuery.

Readme

@whaly/connector-sdk

A TypeScript SDK for building data connectors with support for file processing (Excel/CSV), cloud storage, SFTP, and BigQuery.

Installation

npm install @whaly/connector-sdk

Overview

The SDK provides a pipeline architecture: Tap (data source) → Stream (data extraction) → Target (data destination).

It supports two main connector types:

  • API connectors — sync data from REST APIs using RESTStream with built-in pagination, retries, and auth
  • File connectors — ingest Excel/CSV files from GCS, SFTP, or local disk using FileStream

Key Components

| Component | Description | |---|---| | RESTStream | Stream for REST API endpoints with pagination and auth | | FileStream / FileTap | Stream and Tap implementations for file-based data sources | | CloudStorageService | Google Cloud Storage client with marker-file tracking | | SftpClient | SFTP client for remote file access | | BigQueryTarget | BigQuery target implementation | | GCSStateProvider | State management backed by GCS |

Quick Start

import {
  CloudStorageService,
  createExcelStreamConfig,
  processFileStreams,
  FilePatterns,
  VariableExtractors,
  ReplicationMethod,
} from "@whaly/connector-sdk";

// Define how to read your Excel file
const config = {
  type: "single-sheet-extraction" as const,
  extension: "xlsx",
  tableName: "products",
  sheetName: "Sheet1",
  numberOfRowsToSkip: 1,
  replicationMethod: ReplicationMethod.FULL_TABLE,
  fileNameValidator: FilePatterns.startsWith("product"),
  fileNameVariablesExtractor: VariableExtractors.filename(),
  columns: {
    product_id:   { type: "STRING" as const, column: "A", primaryKey: true },
    product_name: { type: "STRING" as const, column: "B" },
    price:        { type: "FLOAT"  as const, column: "C" },
  },
};

// Download from GCS, process, and send to target
const storage = new CloudStorageService("my-bucket", "incoming/", {
  supportedExtensions: [".xlsx"],
});

const files = await storage.getUnprocessedFiles();

for (const filePath of files) {
  const fileName = filePath.split("/").pop()!;
  const localPath = await storage.downloadFile(filePath, fileName);

  const streamConfig = createExcelStreamConfig(config, fileName, localPath);
  await processFileStreams(
    [{ config: streamConfig, filePath: localPath }],
    { bookmarks: {} },
    target,
  );

  await storage.createMarkerFile(filePath);
}

Documentation

| Document | Description | |---|---| | API Reference | Building API connectors (RESTStream, Tap, Auth), core types, and full reference | | File Processing Guide | Excel & CSV import, services (GCS, SFTP, ZIP), full examples | | Changelog | Release history | | Migration Guide | Upgrade instructions between versions |

License

Apache-2.0