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

@vectros-ai/sdk

v0.34.0

Published

Vectros AI Platform SDK for Node.js

Readme

Vectros SDK for TypeScript / Node.js

npm license

The official TypeScript client for the Vectros API — hybrid search, document ingestion, structured records, and grounded inference for your application.

Installation

npm install @vectros-ai/sdk

Requires Node.js 18+. Ships with TypeScript types.

Quick start

import { VectrosClient } from "@vectros-ai/sdk";

const client = new VectrosClient({
  environment: "https://api.vectros.ai",
  token: process.env.VECTROS_API_KEY!, // sk_live_... or sk_test_...
});

// Hybrid (keyword + semantic) search over your indexed content
const results = await client.search.content({
  query: "patient intake form diabetes",
});

// Ingest a document — extracted, chunked, and indexed for search + RAG
const doc = await client.documents.ingestDocument({
  body: {
    title: "Patient Intake Form — Jane Doe",
  },
});

// Write a structured record against one of your schemas
const record = await client.records.createRecord({
  body: {
    typeName: "intake_form",
    schemaId: "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
    payload: { first_name: "Jane", email: "[email protected]" },
  },
});

Authentication

The SDK sends whatever credential you pass in the Authorization: Bearer <token> header. Two credential types are accepted:

| Type | Prefix | Lifetime | Use from | |------|--------|----------|----------| | API key | sk_live_* / sk_test_* | Long-lived | Server only — full tenant access | | Scoped token | st_* | Short-lived | Server or browser — narrowed scope, auto-expiring |

Put an API key only on your server. For browser code, mint a short-lived scoped token on your backend and pass it (or a token-supplier function) to the client — never ship an API key to the browser. The token option accepts either a string or an async supplier, so refresh logic lives in one place:

const client = new VectrosClient({
  environment: "https://api.vectros.ai",
  token: async () => getFreshScopedToken(), // your backend mint call
});

See the authentication guide for the full browser token-minting pattern.

What you can do

  • Hybrid search & RAGclient.search, client.inference — vector + keyword search and grounded document Q&A over your indexed corpus.
  • Documents & foldersclient.documents, client.folders — ingest, organize, retrieve, and look documents up by field.
  • Structured recordsclient.records — create, read, update (full and partial), delete, and look records up by indexed field.
  • Schemasclient.schemas — define and evolve record/document schemas.
  • Identity & accessclient.identity, client.auth — manage clients, organizations, and users; mint and revoke scoped credentials.

Rate limits

Requests are rate limited per account on a fixed one-minute window — writes, searches, and inference count against it; reads do not. When you exceed the limit the API returns HTTP 429 with a Retry-After header (seconds until the window resets) plus X-RateLimit-Limit and X-RateLimit-Remaining. Honor Retry-After (or back off exponentially with jitter), and pace bulk work so your steady rate stays under your plan's per-minute budget. See the rate limits guide for the per-plan limits.

Documentation

Security & trust

Vectros enforces per-customer, fail-closed isolation and least-privilege scoped keys, with a tamper-evident audit and version history. Customer-facing surfaces are hardened through extensive adversarial security review. For the full trust posture, drawn plainly with its boundaries, see the compliance and trust guide.

License

Apache License 2.0.