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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@vectorize-io/vectorize-connect

v0.4.1

Published

A simple package for Google Drive authorization and file selection

Readme

Vectorize Connect SDK

TypeScript/JavaScript SDK for building multi-user connectors that integrate cloud storage platforms such as Google Drive with the Vectorize platform.

What is this?

The Vectorize Connect SDK enables you to:

  • Build applications where multiple users can connect their cloud storage accounts
  • Let users select specific files to be processed by Vectorize RAG pipelines
  • Manage user authentication and file permissions
  • Handle OAuth flows without building the authentication infrastructure yourself

This SDK is designed for developers who want to integrate multiple users' documents into their AI-powered applications using Vectorize's infrastructure.

SDK Installation

NPM

npm install @vectorize-io/vectorize-connect

Yarn

yarn add @vectorize-io/vectorize-connect

pnpm

pnpm add @vectorize-io/vectorize-connect

Quick Start

1. Install the SDK

npm install @vectorize-io/vectorize-connect

2. Set up your environment

import { createGDriveConnector } from '@vectorize-io/vectorize-connect';

const vectorizeConfig = {
  organizationId: 'your-org-id',
  authorization: 'your-api-key'
};

3. Create a connector and add users

// Create a connector
const connector = await createGDriveConnector({
  connectorName: 'My Google Drive Connector',
  config: vectorizeConfig
});

// Add users via OAuth
const authUrl = await getGDriveAuthURL({
  connectorId: connector.id,
  redirectUri: 'https://your-app.com/callback',
  config: vectorizeConfig
});

Documentation

For comprehensive guides and examples:

SDK-Specific Documentation

Implementation Examples

Supported Platforms

Google Drive

Dropbox

Notion

Two Approaches: Vectorize-Managed vs White-Label

Vectorize-Managed OAuth (Recommended for Getting Started)

  • Uses Vectorize's pre-configured OAuth apps
  • No OAuth app setup required
  • Fastest way to get started
  • Available on Starter plan and above

White-Label OAuth (For Production Apps)

  • Use your own OAuth applications
  • Full control over branding and authentication flow
  • Required for production applications with custom branding
  • Available on Pro plan and above

Core Features

OAuth Authentication

  • Handle complex OAuth flows for Google Drive, Dropbox, and Notion
  • Support for both Vectorize-managed and white-label OAuth approaches
  • Automatic token management and refresh

File Selection

  • Interactive file picker UI components
  • Granular file and folder selection
  • Support for file type filtering

User Management

  • Add multiple users to a single connector
  • Update user file selections
  • Remove users and their associated data

Connector Management

  • Create and configure connectors programmatically
  • Monitor connector status
  • Handle connector lifecycle

Example: Building a Team Knowledge Base

import { 
  createGDriveConnector, 
  getGDriveAuthURL, 
  selectGDriveFiles 
} from '@vectorize-io/vectorize-connect';

// 1. Create a connector for your team
const connector = await createGDriveConnector({
  connectorName: 'Team Knowledge Base',
  config: {
    organizationId: process.env.VECTORIZE_ORG_ID,
    authorization: process.env.VECTORIZE_API_KEY
  }
});

// 2. Each team member authorizes access
app.get('/connect-drive', async (req, res) => {
  const authUrl = await getGDriveAuthURL({
    connectorId: connector.id,
    redirectUri: 'https://your-app.com/oauth/callback',
    config: vectorizeConfig
  });
  res.redirect(authUrl);
});

// 3. Let users select which files to include
app.post('/select-files', async (req, res) => {
  await selectGDriveFiles({
    connectorId: connector.id,
    selectedFiles: req.body.files,
    config: vectorizeConfig
  });
});

Requirements

  • Node.js 16+ or modern browsers
  • TypeScript 4.7+ (optional, for TypeScript projects)
  • A Vectorize account with API credentials

Resources

Getting Help

Related Documentation

License

This project is licensed under the MIT License - see the LICENSE file for details.