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

@absconse/ibex-sdk

v2.0.3

Published

SDK IBEX v2.0 - Portefeuille numérique avec WebAuthn et EURe

Downloads

30

Readme

IBEX SDK

SDK React/TypeScript pour l'intégration des services IBEX

License: Apache 2.0 TypeScript React

npm version npm downloads

GitHub Stars

DocumentationDémarrage rapideExemplesSupport


Qu'est-ce que l'IBEX SDK ?

L'IBEX SDK v2.0 est une bibliothèque React/TypeScript qui fournit une interface pour intégrer les services financiers IBEX dans vos applications React.

Architecture Modulaire

Organisation par features avec namespace pour une structure claire.

await sdk.auth.signIn();
await sdk.wallet.getAddresses();
await sdk.safe.transfer({ to, amount });
await sdk.kyc.start();
await sdk.privacy.saveUserData({ ... });

API Complète

Implémentation de tous les endpoints OpenAPI avec types TypeScript.

  • ✅ Auth & WebAuthn
  • ✅ Wallets & Addresses
  • ✅ Transactions & Balances
  • ✅ Safe Operations
  • ✅ KYC & Recovery
  • ✅ Privacy & Blockchain

Changements v2.0

Architecture Modulaire

Avant (v1.x) :

// Monolithique, complexe
const { signIn, send, withdraw } = useIbex()

Maintenant (v2.0) :

// Modulaire, clair, extensible
const { signIn, send, sdk } = useIbex();

// Usage simple
await signIn();
await send(100, '0x...');

// Usage avancé via SDK
await sdk.safe.enableRecovery({ ... });
await sdk.privacy.saveUserData({ ... });
await sdk.blockchain.getTransactions({ startDate, endDate });

Fonctionnalités Principales

  • Architecture modulaire - 8 features isolées (auth, wallet, safe, transactions, kyc, recovery, privacy, blockchain)
  • Cache multi-niveaux - Memory + SessionStorage + LocalStorage avec LRU eviction
  • WebSocket optimisé - Reconnexion intelligente, heartbeat, file d'attente
  • Tree-shaking - Import seulement ce dont vous avez besoin
  • Types stricts - Générés depuis OpenAPI spec
  • JSDoc complet - Documentation inline avec exemples
  • Performance optimisée - Réduction des requêtes via cache intelligent

Installation

npm install @absconse/ibex-sdk
# ou
yarn add @absconse/ibex-sdk
# ou
pnpm add @absconse/ibex-sdk

Démarrage rapide

1. Configuration

import { IbexProvider } from '@absconse/ibex-sdk'

const config = {
  baseURL: 'https://api.ibexwallet.org',
  domain: 'votre-domaine.com',
}

function App() {
  return (
    <IbexProvider config={config}>
      <Dashboard />
    </IbexProvider>
  )
}

2. Utilisation du hook

import { useIbex } from '@absconse/ibex-sdk'

function Dashboard() {
  const {
    user,
    wallet,
    balance,
    transactions,
    operations,
    isLoading,
    error,
    isConnected,
    signIn,
    signUp,
    send,
    receive,
    startKyc,
    sdk, // SDK complet pour usage avancé
  } = useIbex()

  if (isLoading) return <div>Chargement...</div>
  if (error) return <div>Erreur: {error}</div>
  if (!user) return <button onClick={signIn}>Se connecter</button>

  return (
    <div>
      <h1>Bonjour {user.email || 'Utilisateur'}</h1>
      <p>Solde: {balance.toLocaleString('fr-FR', { style: 'currency', currency: 'EUR' })}</p>
      <p>WebSocket: {isConnected ? '🟢 Connecté' : '🔴 Déconnecté'}</p>

      {/* Actions rapides */}
      <button onClick={() => send(100, '0x...')}>Envoyer 100€</button>
      <button
        onClick={async () => {
          const address = await receive()
          console.log('Mon adresse:', address)
        }}
      >
        Recevoir
      </button>

      {/* KYC */}
      {user.kyc.status !== 'verified' && (
        <button
          onClick={async () => {
            const kycUrl = await startKyc('fr')
            window.location.href = kycUrl
          }}
        >
          Vérifier mon identité
        </button>
      )}
    </div>
  )
}

3. Usage avancé avec SDK

function AdvancedFeatures() {
  const { sdk, wallet } = useIbex()

  // Safe Operations
  const enableRecovery = async () => {
    if (!wallet) return

    await sdk.safe.enableRecovery({
      safeAddress: wallet.address,
      firstName: 'John',
      lastName: 'Doe',
      birthDate: '1990-01-01',
      birthCity: 'Paris',
      birthCountry: 'FR',
    })
  }

  // Withdrawal to IBAN
  const withdrawToBank = async () => {
    if (!wallet) return

    await sdk.safe.withdraw({
      safeAddress: wallet.address,
      iban: 'FR7612345678901234567890123',
      amount: 50,
      recipientInfo: {
        firstName: 'John',
        lastName: 'Doe',
        country: 'FR',
      },
    })
  }

  // Privacy - Save user data
  const savePreferences = async () => {
    const { user } = await sdk.wallet.getUserDetails()

    await sdk.privacy.saveUserData(user.id, {
      email: '[email protected]',
      firstName: 'John',
      lastName: 'Doe',
      language: 'fr',
      'optin.newsletter': true,
      'optin.walletAlerts': true,
      'private.apiKey': 'secret', // Préfixe 'private.' non retourné en GET
    })
  }

  // Blockchain - Get detailed transactions
  const getHistory = async () => {
    const transactions = await sdk.blockchain.getTransactions({
      startDate: '2025-01-01',
      endDate: '2025-12-31',
      limit: 100,
      page: 1,
    })

    console.log(transactions)
  }

  // Recovery status
  const checkRecovery = async () => {
    if (!wallet) return

    const status = await sdk.recovery.getStatus(wallet.address)
    console.log('Recovery enabled:', status.recoveryEnabled)
    console.log('Can execute:', status.canExecute)
  }

  return (
    <div>
      <button onClick={enableRecovery}>Activer récupération</button>
      <button onClick={withdrawToBank}>Retrait IBAN</button>
      <button onClick={savePreferences}>Sauvegarder préférences</button>
      <button onClick={getHistory}>Historique détaillé</button>
      <button onClick={checkRecovery}>Statut récupération</button>
    </div>
  )
}

API Complète

Features Disponibles

| Feature | Description | Endpoints | | ---------------- | ------------------------- | --------------------------------------------------------------------------- | | auth | Authentification WebAuthn | signUp, signIn, refresh, createIframe | | wallet | Gestion wallets | getAddresses, getChainIds, getUserDetails, getReceiveAddress | | transactions | Historique & envois | getHistory, getBalances | | safe | Opérations Safe | transfer, withdraw, createIban, signMessage, enableRecovery, cancelRecovery | | kyc | Vérification identité | start, getStatus | | recovery | Récupération wallet | getStatus | | privacy | Données privées | getUserData, saveUserData, validateEmail, confirmEmail | | blockchain | Lecture blockchain | getBalances, getTransactions |

Exemples par Feature

Auth

await sdk.auth.signUp('My iPhone')
await sdk.auth.signIn()
await sdk.auth.logout()
const iframe = await sdk.auth.createIframe('fr')

Wallet

const addresses = await sdk.wallet.getAddresses()
const chainIds = await sdk.wallet.getChainIds()
const receiveAddr = await sdk.wallet.getReceiveAddress()

Safe

await sdk.safe.transfer({ safeAddress, to, amount })
await sdk.safe.withdraw({ safeAddress, iban, amount, recipientInfo })
await sdk.safe.createIban(safeAddress)
await sdk.safe.signMessage({ safeAddress, message })
await sdk.safe.enableRecovery({
  safeAddress,
  firstName,
  lastName,
  birthDate,
  birthCity,
  birthCountry,
})

Privacy

const data = await sdk.privacy.getUserData(externalUserId)
await sdk.privacy.saveUserData(externalUserId, { email, firstName })
await sdk.privacy.validateEmail(email, externalUserId)
await sdk.privacy.confirmEmail({ email, code, externalUserId })

Performance & Cache

Cache Intelligent Multi-Niveaux

  • L1 (Memory) : Le plus rapide, volatile
  • L2 (SessionStorage) : Persistant pendant la session
  • L3 (LocalStorage) : Persistant entre sessions

Stratégies par Type

{
  user: { ttl: 60000, level: 'session' },        // 1 min
  balance: { ttl: 10000, level: 'memory' },      // 10 sec
  transactions: { ttl: 30000, level: 'memory' }, // 30 sec
  operations: { ttl: 30000, level: 'memory' },   // 30 sec
  chainIds: { ttl: 3600000, level: 'persistent' }, // 1h
  recovery: { ttl: 60000, level: 'session' },    // 1 min
  privateData: { ttl: 300000, level: 'session' }, // 5 min
  config: { ttl: 86400000, level: 'persistent' }, // 24h
}

WebSocket Temps Réel

Mises à jour automatiques pour :

  • Balances
  • Transactions
  • Opérations
  • Données utilisateur
  • Statut KYC
  • Statut IBAN
const { isConnected } = useIbex()
// isConnected indique l'état de la connexion WebSocket

Migration v1 → v2

Changements majeurs

  1. Architecture modulaire : Features namespaced
  2. Hook simplifié : Accès au SDK via sdk
  3. Types organisés : Imports depuis shared/types
  4. Cache optimisé : Multi-niveaux automatique
  5. WebSocket amélioré : Reconnexion + heartbeat

Guide de migration

Avant :

const { signIn, send } = useIbex()

Après :

const { signIn, send, sdk } = useIbex();

// Fonctions simples inchangées
await signIn();
await send(100, '0x...');

// Nouvelles fonctionnalités via SDK
await sdk.safe.enableRecovery({ ... });
await sdk.privacy.saveUserData({ ... });

Documentation

| Guide | Description | | ---------------------------------------------------------------------------------------------------- | ------------------------------------ | | Guide de démarrage | Installation et première utilisation | | Hook useIbex | Documentation détaillée du hook | | Types TypeScript | Référence complète des types | | Authentification | Guide WebAuthn et passkeys | | Configuration | Options de configuration | | Exemples | Exemples pratiques | | FAQ | Questions fréquentes | | API Reference | Documentation technique complète |

Exemples d'Utilisation

Consultez notre documentation complète avec des exemples détaillés pour chaque fonctionnalité :


Support

| Canal | Lien | | ----------------- | ------------------------------------------------------------------------------ | | Documentation | docs/ | | Issues GitHub | Signaler un bug | | Discussions | Poser une question |


Changelog

Voir CHANGELOG.md pour l'historique des versions.


Prêt à commencer ?

Suivez notre guide de démarrage pour intégrer l'IBEX SDK dans votre application en quelques minutes !


Propulsé par Dylan Enjolvin
Sous licence Apache 2.0