Agent skill · software engineering · aiskillstore
near-dapp
Build NEAR Protocol dApps. Use for: (1) creating new NEAR dApps with `create-near-app` (Vite+React, Next.js), (2) adding NEAR wallet connection to existing apps with `@hot-labs/near-connect` and `near-connect-hooks`, (3) building frontend UI for NEAR smart contracts, (4) integrating wallet sign-in/sign-out, contract calls, and transaction signing into web applications.
Why this skill is useful
Provides specific commands and patterns for integrating NEAR wallet functionality into React applications, which the AI wouldn't reliably generate on its own.
What it needs
Requires @hot-labs/near-connect, near-api-js, near-connect-hooks installed locally. About 1k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
NEAR dApp Decision Router Determine which path to follow: Path A: New Project User wants to create a new NEAR dApp from scratch. 1. Read references/create-near-app.md 2. Run scaffolding: Or with arguments: Framework options: vite-react next-app next-page Contract options: rs (Rust) ts (TypeScript) 3. If user needs wallet connection in the scaffolded app, also follow Path B. Path B: Existing Project User wants to add NEAR wallet connection to an existing React app. 1. Read references/near-connect-hooks.md — React hooks API and patterns 2. If user needs low-level wallet API or non-React integration, also read references/near-connect.md Quick setup: Path C: Non-React or Vanilla JS Use @hot-labs/near-connect directly without React hooks. 1. Read references/near-connect.md Key Patterns Read contract state (no wallet): viewFunction({ contractId, method, args }) Write to contract (wallet required): callFunction({ contractId, method, args, deposit }) Transfer NEAR: transfer({ receiverId, amount }) NEAR ↔ yoctoNEAR: Use nearToYocto() / yoctoToNear() from near-api-js 1 NEAR = "1000000000000000000000000" yoctoNEAR Default gas: "30000000000000" (30 TGas)
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/near-dapp