A browser-embeddable wallet connector that bridges NEAR dApps to near-cli-rs. Instead of signing transactions in the browser, it generates CLI commands for users to run in their terminal and then verifies the resulting transactions on-chain.
demo.mp4
- The dApp loads
dist/near-cli.jsinside an iframe via near-connect - When a transaction is requested, the widget renders the corresponding
near-cli-rs - The user copies the command, runs it in their terminal, and pastes back the transaction hash
- The widget verifies the transaction on-chain via RPC and returns the result to the dApp
npm install
npm run build| Script | Description |
|---|---|
npm run build |
Bundle src/ into dist/near-cli.js via Vite |
npm run lint |
Run ESLint on source files |
npm run fmt |
Format source files with Prettier |
npm run fmt:check |
Check formatting without writing |