Skip to content

internet-court/internet-court-skill / vendored/near/near-dapp

near-dapp

Verified

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.

FileKindSize
LICENSEother329 B
SKILL.mdskill md2.7 KB
references/create-near-app.mdmarkdown1.7 KB
references/near-connect-hooks.mdmarkdown5.6 KB
references/near-connect.mdmarkdown5.3 KB

references/create-near-app.md

View on GitHub
# create-near-app

Scaffold new NEAR dApps via CLI.

## Usage

```bash
npx create-near-app@latest
```

Interactive prompts guide through project setup. Or pass arguments directly:

```bash
npx create-near-app <project-name> \
  --frontend next-app|next-page|vite-react|none \
  --contract rs|ts|none \
  --install
```

All arguments required except `--install`. Use `--install` to auto-install dependencies.

## Options

### Frontend Frameworks

| Option | Description |
|---|---|
| `vite-react` | Vite + React SPA |
| `next-app` | Next.js App Router |
| `next-page` | Next.js Pages Router |
| `none` | Contract only, no frontend |

### Contract Languages

| Option | Description |
|---|---|
| `rs` | Rust smart contract |
| `ts` | TypeScript smart contract (JS SDK) |
| `none` | Frontend only, no contract |

### Templates

When creating a contract, available templates:
- `auction` — basic auction contract
- `auction-adv` — advanced auction contract

## Project Structure

After scaffolding with frontend + contract:

```
my-app/
├── contract/           # Smart contract source
│   ├── src/
│   └── Cargo.toml      # (Rust) or package.json (TS)
├── frontend/           # Web application
│   ├── src/
│   ├── package.json
│   └── ...
├── integration-tests/  # Sandbox tests
└── README.md
```

## Prerequisites

- Node.js 18+ (for frontend)
- Rust toolchain (for `rs` contracts)

## After Scaffolding

Follow the generated `README.md` in the project. Typical flow:

```bash
cd my-app
npm install        # if --install not used
npm run dev        # start frontend dev server
npm run build      # build contract
npm run test       # run sandbox tests
npm run deploy     # deploy contract to testnet
```
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 323kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall