Vibestreet
MarketplaceDocsPricing
Sign in
Vibestreet

The AI skill marketplace for developers building with LLMs.

© 2026 Vibestreet. All rights reserved.

Product

  • Marketplace
  • Pricing
  • Changelog
  • Status

Developers

  • Documentation
  • API Reference
  • SDK Guide
  • Quickstart

Security

  • Security Overview
  • Disclosure Policy
  • Privacy Policy
  • Terms of Service
·Terms of Service·Privacy Policy·Consent Settings
ISO 27001 Certified·GDPR Compliant·EU AI Act Ready·SOC 2 (Type I planned)
security@vibestreet.dev

Documentation

Getting Started
Quickstart
API Reference
SDK Guide
InstallationInitialize ClientPlatform Adapters
Security

SDK Guide

The official Vibestreet JavaScript/TypeScript SDK provides a type-safe client for the REST API, along with utilities for building platform adapters.

Installation

bash
npm install @vibestreet/sdk
bash
yarn add @vibestreet/sdk

Note

The SDK requires Node.js 18+ or a modern browser environment. It ships with full TypeScript definitions — no separate @types package needed.

Initialize the Client

Create a client instance with your API key or JWT token:

client.tstypescript
import { VibestreetClient } from '@vibestreet/sdk';

const client = new VibestreetClient({
  apiKey: process.env.VIBESTREET_API_KEY,
  // or: token: 'eyJhbGciOiJSUzI1NiJ9...',
  baseUrl: 'https://api.vibestreet.dev/v1', // optional, default
});

Search Skills

typescript
const results = await client.skills.search({
  query: 'legal reviewer',
  tier: ['verified', 'premium'],
  category: 'legal',
  platform: 'emergE',
  limit: 20,
  offset: 0,
});

console.log(results.skills);   // Skill[]
console.log(results.total);    // number

Install a Skill

typescript
const install = await client.skills.install({
  slug: 'legal-reviewer',
  author: 'vibestreet',
  version: '2.1.0',   // optional — defaults to latest
  platform: 'cursor',
});

console.log(install.installId);    // string
console.log(install.configPatch);  // platform config fragment

Consume Tokens

typescript
// Check balance before running a skill
const balance = await client.tokens.getBalance();
console.log(balance.available);   // e.g. 450000

// Deduct tokens after inference
await client.tokens.consume({
  skillSlug: 'legal-reviewer',
  tokensUsed: 2400,
  modelId: 'gpt-4o',
  metadata: { documentId: 'doc_abc123' },
});

Platform Adapters

Platform adapters bridge the Vibestreet SDK with a specific AI IDE or agent runtime. They implement the PlatformAdapter interface from adapter-sdk.ts:

my-cursor-adapter.tstypescript
import type { PlatformAdapter, SkillContext, CapabilityGrant } from '@vibestreet/sdk';

export class MyCursorAdapter implements PlatformAdapter {
  readonly platformId = 'cursor';
  readonly sandboxLevel = 'full' as const;

  async resolveCapabilities(
    skillSlug: string,
    requested: string[]
  ): Promise<CapabilityGrant[]> {
    // Approve or deny each requested capability
    return requested.map((cap) => ({
      capability: cap,
      granted: this.isAllowed(cap),
      reason: this.isAllowed(cap) ? undefined : 'Capability not permitted in this context',
    }));
  }

  async executeSkill(context: SkillContext): Promise<void> {
    // Invoke the skill within your platform's sandbox
    await yourPlatformSandbox.run(context.skill, context.input);
  }

  private isAllowed(capability: string): boolean {
    const blocklist = ['network:*'];
    return !blocklist.some((b) => capability.startsWith(b.replace('*', '')));
  }
}

Adapter Registration

Register your adapter at startup: client.adapters.register(new MyCursorAdapter()). Skills will automatically use the matching adapter for the active platform.
API ReferenceSecurity