Skip to content

Isomorphic TypeScript SDK—works in Node, edge runtimes and browsers. Handles typed API calls, realtime subscriptions and auth refresh. Ships React hooks in /react sub-package.

License

Notifications You must be signed in to change notification settings

vibing-ai/vibing-js

Repository files navigation

Vibing AI SDK

The official JavaScript SDK for building AI-powered apps, plugins, and agents for the Vibing AI platform. Create engaging conversational experiences with just a few lines of code.

Key Features

  • App Creation: Build and deploy full-featured AI applications
  • Plugin Development: Extend functionality with custom plugins
  • Agent Creation: Design intelligent conversational agents
  • Surface Integration: Add cards, panels, and modals to your AI interfaces
  • Memory Management: Persistent state and context for conversations
  • Permission System: Secure access control for your AI applications
  • Event System: Robust event handling for real-time communication
  • TypeScript Support: Full type safety and autocompletion

Installation

# Using npm
npm install @vibing-ai/sdk

# Using yarn
yarn add @vibing-ai/sdk

# Using pnpm
pnpm add @vibing-ai/sdk

Note: If the package is not yet published to npm, you can install it directly from the GitHub repository using:

npm install vibing-ai/js-sdk

Quick Start

import { createApp } from '@vibing-ai/sdk';

// Create a simple app
const app = createApp({
  name: 'My First Vibing App',
  description: 'A simple app built with Vibing AI SDK',
  version: '1.0.0',
});

// Add a message handler
app.onMessage(async (message, context) => {
  if (message.content.includes('hello')) {
    return {
      content: 'Hello there! How can I help you today?',
    };
  }
  
  return {
    content: 'I received your message. How can I assist you?',
  };
});

// Start the app
app.start();

Documentation

For comprehensive documentation, visit:

Examples

Here are some examples to get you started:

Compatibility

  • Node.js: 14.x and higher
  • Browsers: Chrome, Firefox, Safari, Edge (latest 2 versions)
  • @vibing-ai/block-kit: 1.0.0 and higher
  • @vibing-ai/cli: 1.0.0 and higher

Support

Contributing

We welcome contributions! Please see our Contributing Guide for details on how to get started.

License

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

About

Isomorphic TypeScript SDK—works in Node, edge runtimes and browsers. Handles typed API calls, realtime subscriptions and auth refresh. Ships React hooks in /react sub-package.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published