sails-frontend

Generate typed React frontends for Gear/Vara Sails dApps from IDL files.

17|23|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/gear-foundation/vara-skills --skill sails-frontend
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sails-frontend
Source: https://github.com/gear-foundation/vara-skills/tree/main/skills/sails-frontend
Command: npx skills add https://github.com/gear-foundation/vara-skills --skill sails-frontend

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill eliminates the tedious, error-prone work of manually building untyped frontends for Gear/Vara Sails applications, removing the need to hand-craft SCALE payloads, manage wallet integrations from scratch, or reconcile mismatched contract interfaces between your frontend and on-chain services.

Core Features & Use Cases

  • Typed Client Generation: Auto-generates TypeScript clients from Sails IDL files to eliminate interface mismatches and reduce boilerplate.
  • Wallet & Transaction UX: Provides pre-built patterns for wallet connection, transaction signing, gas estimation, and voucher/signless flows with proper state handling.
  • Framework Compatibility: Includes dedicated guidance for Vite, React, and Next.js App Router projects, with fixes for common SSR and build issues with Gear JS packages. Use case: A builder creating a counter dApp on Vara can use this Skill to scaffold a fully typed frontend with working wallet connect, read queries, and write transactions in minutes instead of days of manual setup.

Quick Start

Use the sails-frontend skill to build a fully functional typed React frontend for your Vara Sails application with integrated wallet support and generated IDL clients.

Frequently Asked Questions about sails-frontend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a typed React client from a Gear Sails IDL file?

You can generate a typed React client from a Sails IDL file to eliminate interface mismatches and manual boilerplate. This auto-generation ensures your frontend queries, commands, and events align perfectly with the on-chain Vara application.

How do I integrate a wallet into a Vara Sails Next.js application?

Integrating a wallet into a Vara Sails Next.js application requires pre-built patterns for wallet connection, transaction signing, and gas estimation. This Skill provides standardized flows that handle transaction state and voucher or signless operations.

Does Gear JS work with Vite and Next.js for Vara Sails frontends?

Yes, Gear JS works with Vite and Next.js App Router projects. This Skill provides dedicated guidance to resolve common SSR and build issues, ensuring framework compatibility for your Vara Sails decentralized application.

Why does my Vara dApp frontend throw SCALE payload errors during transactions?

Vara dApp frontend SCALE payload errors occur when manually building untyped clients that mismatch contract interfaces. Using a typed Sails IDL client eliminates the need to hand-craft payloads and prevents these transaction errors.

What is the best way to handle signless and voucher transaction flows in a React dApp?

The best way to handle signless and voucher transaction flows in a React dApp is to use standardized state management patterns. This Skill provides pre-built wallet and transaction UX components for proper transaction state handling.

Do I need to manually resolve Gear JS dependency versions for my Sails frontend?

No, you do not need to manually resolve Gear JS dependency versions for your Sails frontend. This Skill manages dependency version resolution and provides pre-handoff validation checks to satisfy end-to-end delivery requirements.