azbang/near-connect/near-connect-quickstart
Claude Code and agent skill by azbang/near-connect
- community
Checking that the SKILL.md file is still in the repository.
Install and set up @hot-labs/near-connect for NEAR blockchain wallet connection. Covers NearConnector initialization, connect/disconnect, wallet:signIn and wallet:signOut events, feature filtering, WalletConnect configuration, and manifest auto-updating. Use when adding NEAR wallet support to a dapp, configuring WalletConnect for mobile wallets, or troubleshooting wallet visibility issues.
Install
npx vskill@latest install azbang/near-connect/near-connect-quickstartSKILL.md
NEAR Connect — Quickstart
Zero-dependency wallet connector for NEAR blockchain. Wallets run in sandboxed iframes for security and auto-update via a remote manifest — no app redeploy needed when wallets change.
Setup
Install:
For mobile wallets that require WalletConnect:
Core Patterns
Filter wallets by features
Only show wallets that support specific capabilities:
Available features: signMessage, signTransaction, signAndSendTransaction, signAndSendTransactions, signInWithoutAddKey, signInAndSignMessage, signInWithFunctionCallKey, signDelegateActions, mainnet, testnet.
Connect with signed message verification
Sign a message during sign-in to verify account ownership in one wallet interaction:
Get connected wallet and accounts
Switch network
This disconnects the current wallet and reconnects on the new network.
Customize or disable branding
Manifest and Wallet Freshness
Wallets are loaded from a remote manifest JSON. The connector fetches it on construction and caches executor code in IndexedDB. When a wallet updates its executor script, the connector fetches the new version on next use — no app redeploy needed.
To add a wallet to the ecosystem, submit a PR updating repository/manifest.json in the near-selector repo. After review, the wallet appears for all dapps automatically.
Some wallets may fall behind — their executor scripts can become stale or buggy. The connector has no built-in staleness detection. If a wallet's executor is outdated or broken, the issue is in the wallet's hosted script, not in near-connect. Contact the wallet team to update their executor URL.
Common Mistakes
CRITICAL Using near-wallet-selector API instead of near-connect
Wrong:
Correct:
near-wallet-selector is a different package with a completely different API. @hot-labs/near-connect uses a single NearConnector class, not a modular setup system.
Source: https://github.com/hot-dao/near-selector
HIGH Not awaiting manifest loading before calling connect
Wrong:
Correct:
The manifest loads asynchronously in the constructor. Calling connect() before it resolves finds no wallets and throws.
Source: src/NearConnector.ts:89-137
HIGH Omitting WalletConnect config causes wallets to silently disappear
Wrong:
Correct:
Wallets that require WalletConnect are filtered out of the manifest when no walletConnect option is provided. No error is thrown — they simply don't appear in availableWallets.
Source: src/NearConnector.ts:128-133
HIGH Using library in SSR without guarding browser APIs
Wrong:
Correct:
NearConnector uses window, document, localStorage, and IndexedDB. Constructing it during server-side render throws.
Source: src/NearConnector.ts:139-155
MEDIUM Using deprecated signIn constructor option
Wrong:
Correct:
The signIn constructor option is deprecated. It requires an on-chain transaction during initial connection, which hurts UX. Use addFunctionCallKey in connect() instead, ideally after the user has started interacting with your app.
Source: src/NearConnector.ts:46-52
MEDIUM Not listening for signOut to detect wallet disconnection
Wrong:
Correct:
A wallet can disconnect externally (user removes access in wallet app). Without listening for wallet:signOut, the app shows a connected state with stale account data.
Source: src/types/index.ts:212-218
Version
Targets @hot-labs/near-connect v0.11.3.
See also: near-connect-transactions/SKILL.md — signing transactions and messages after wallet connection
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/near-connect-quickstart/SKILL.md
Popularity
- Repository stars
- 218
- Repository forks
- 30
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 May 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/azbang/near-connect/near-connect-quickstart)