Skip to content

Packages

Upcoming · Not on npm yet. Published names are @fondaco/*; in the repository they are @si/* workspaces.

The SDKs will publish to npm under the @fondaco scope. Until the first release they exist only as workspaces in the repository, named @si/*, version 0.1.0, marked private. When they publish, the @si/* names stay as deprecated aliases for one release (docs/naming.md).

Published as In the repository What it is Reference
@fondaco/wallet-sdk @si/wallet-sdk, packages/wallet-sdk What a wallet or app uses to swap: quote → accept → balance or make an offer → track, with the client's checks of every response; limit offers. Browsers and Node, fetch and WebSocket only TypeDoc, README
@fondaco/solver-sdk @si/solver-sdk, packages/solver-sdk What a solver installs: the relay client, signed quotes and ladders, the job runner, webhook pricing, maker legs, DUST sponsorship, inventory, the exit policy. Node TypeDoc, README
@fondaco/connector @si/connector, packages/connector A thin library over the Midnight dApp connector API 4.0.1: detection, connect, per-wallet profiles, error mapping README
@fondaco/protocol @si/protocol, packages/protocol Wire formats: MIP-0005 offer files, the MIP-0006 namespace client, the RFQ envelope and the relay messages that carry it, amounts README
@fondaco/ledger-kit @si/ledger-kit, packages/ledger-kit The ledger-9 WASM, offer inspection (including checkSolverLeg, the leg check a wallet passes as checkLeg), shielded and DUST wallets. Node README

From a checkout of the repository:

npm ci && npm run build

Each package builds to packages/<name>/dist/. Code inside the repository imports them by their @si/* names (npm links the workspaces); code outside can import the built files by path, as the repository's own scripts do:

import { SwapClient } from '../packages/wallet-sdk/dist/src/index.js';

The references on this site are generated from the packages' sources at build time, so they describe the code on the branch the site was built from. When the packages publish, the docs build will be pinned to each SDK release tag, with a version switcher (docs/website.md §7); until then there is one version.