New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@connector-kit/providers

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connector-kit/providers

Provider utilities and templates for the ConnectorKit ecosystem. This package provides tools for creating and managing protocol integrations.

latest
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

@connector-kit/providers

Provider utilities and templates for the ConnectorKit ecosystem. This package provides tools for creating and managing protocol integrations.

import { createProvider } from '@connector-kit/providers'

Current Providers

  • Jupiter (@connector-kit/jupiter) - Swap provider for Jupiter aggregator
    • Configuration: JupiterConfig
    • Types: JupiterQuoteResponse, JupiterSwapResponse
    • Utilities: getJupiterTokens()

Usage

Creating a Provider

import { createProvider } from '@connector-kit/providers'

const customProvider = createProvider({
  name: 'my-protocol',
  swap: {
    quote: async (params) => { /* implementation */ },
    buildTransaction: async (quote) => { /* implementation */ },
    isTokenSupported: (mint) => { /* implementation */ }
  }
})

Using with SDK

import { ArcProvider } from '@connector-kit/sdk'
import { createJupiter } from '@connector-kit/jupiter'

<ArcProvider 
  network="mainnet-beta"
  providers={[createJupiter()]}
>
  <YourApp />
</ArcProvider>

Provider Registry

import { createProviderRegistry } from '@connector-kit/providers'

const registry = createProviderRegistry({
  jupiter: createJupiter({
    apiUrl: 'https://quote-api.jup.ag/v6',
    slippageBps: 50
  })
  // Add more providers as they become available
})

Creating New Providers

See src/templates/provider-template.md for a complete guide on creating new providers.

Provider Interface

interface SwapProvider {
  name: string
  quote: (params: SwapParams) => Promise<SwapQuote>
  buildTransaction: (quote: SwapQuote) => Promise<PrebuiltTransaction>
  isTokenSupported: (mint: string) => boolean
}

Architecture

This package serves as the foundation for protocol integrations:

  • Provides base interfaces and types
  • Includes provider creation utilities
  • Offers templates for new integrations
  • Maintains type safety across all providers

Available Provider Packages

  • @connector-kit/jupiter - Jupiter DEX integration
  • More providers coming soon...

Development Roadmap

  • Add Marinade Provider - Liquid staking integration
  • Add Kamino Provider - Yield farming integration
  • Add Orca Provider - AMM trading integration
  • Enhanced Provider Registry - Runtime provider discovery
  • Provider Configuration Validation - Schema validation for configs

FAQs

Package last updated on 25 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts