Index of every page on this site: llms.txt
All skills
availproject avatar

/nexus-sdk-integration

@8f83d92
Run it yourself

End-to-end integration guidance for Avail Nexus SDK in any JS/TS frontend project (React/Next/Vite/etc). These Nexus SDK skills supersede all legacy avail-widgets-* skills. Use when asked to integrate, initialize, or wire Nexus SDK flows (bridge, transfer, execute, swap), hooks, events, balances, supported chains/tokens, or formatter utilities.

Use this Skill: https://skilld.dev/gh/availproject/widgets/nexus-sdk-integration

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈92 tokens for metadata: the name and description. ≈520 when used: this file.

Description uses 4.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈370 characters, or 4.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Nexus SDK Integration (Parent Skill)

These Nexus SDK skills supersede all legacy avail-widgets-* skills. The legacy standalone elements (FastBridge, FastTransfer, SwapWidget, Deposit, BridgeDeposit, UnifiedBalance, ViewHistory) have been deprecated and removed. Nexus Widget is the single unified UI component for all swap, send, and deposit flows.

Default: Use NPM install

The recommended install method is:

npm install @avail-project/widgets viem wagmi @tanstack/react-query

Imports use from "@avail-project/widgets".

The shadcn install method (npx shadcn@latest add availproject/widgets/nexus) is available for power users who want full source control. Ask the user which they prefer if not specified — default to NPM.

Ask for required inputs (if missing)

  • Ask for target runtime (React/Next/Vite/Vanilla JS).
  • Ask for network (mainnet or testnet).
  • Ask for wallet connection details (library/provider source).
  • Ask which flows are needed (bridge, transfer, execute, swap).
  • Ask which install method they prefer: npm (default) or shadcn (source control).

Orchestrate subskills in this order

  1. nexus-sdk-setup
  2. nexus-sdk-hooks-events
  3. nexus-sdk-bridge-flows
  4. nexus-sdk-swap-flows
  5. nexus-sdk-balances-metadata-utils

Follow this integration checklist (high level)

  • Install @avail-project/widgets via npm (or @avail-project/nexus-core for SDK-only usage).
  • Obtain an EIP-1193 provider from wallet connection.
  • Initialize SDK once and store instance.
  • Attach hooks for intents, allowances, and swap intents (or rely on auto-approve).
  • Wire onEvent listeners for progress updates.
  • Implement required flows (bridge, transfer, execute, swap).
  • Fetch balances and supported chains/tokens for UI.
  • Use formatter utilities for display.
  • Handle errors and cleanup on disconnect.

For deposit/bridge mode configuration

Refer users to the Avail Configurator to generate the exact depositConfig object for deposit and bridge modes.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning8mo3 checks · Risk SAFE
  • Gen Agent Trust Hub9mo

    This skill is a high-level integration orchestrator for the Avail Nexus SDK. It contains no executable code, malicious instructions, or obfuscation. It follows best practices for guiding users through a legitimate SDK setup process.

  • Socket8mo

    No alerts

  • Snyk9mo

    Risk: MEDIUM · No issues

Signed by skilld at 8f83d92. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 4 months ago

README badge

README badge for availproject/widgets/nexus-sdk-integration