Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

139 Commits

Repository files navigation

Relaycode

CIcodecovLicense: Apache-2.0TypeScriptW3F Grant

The developer toolkit for Polkadot. Build extrinsics, write smart contracts, and interact with Substrate chains — all from your browser.

Relaycode — The Developer Toolkit for Polkadot

Tools

Contract Studio

Relaycode Studio

Browser-based smart contract IDE for Polkadot Hub. Write Solidity, compile to EVM or PVM (PolkaVM), and deploy with native Polkadot wallets. No CLI, no MetaMask, no fragmented toolchain.

relaycode.org/studio

Extrinsic Builder

Relaycode Builder

Visual extrinsic builder for the Polkadot ecosystem. Build, encode, decode, and submit any Substrate extrinsic with a dual-pane interface. Supports all pallets across all chains.

relaycode.org/builder

Component Docs

Documentation for input components, encoding/decoding APIs, and usage guides. Built with Fumadocs.

relaycode.org/docs

Substrate Utilities (planned)

SS58, EVM, and hex address converter plus other Substrate utilities.

Tech Stack

LayerTechnology
FrameworkNext.js 15 (App Router)
LanguageTypeScript (strict mode)
StylingTailwind CSS + shadcn/ui
Polkadot ClientDedot
WalletLunoKit (Polkadot.js, Talisman, SubWallet)
Smart ContractsSolidity → EVM / PVM via PolkaVM
DocsFumadocs
TestingJest + React Testing Library
DeploymentVercel (Edge + Serverless)
Package ManagerYarn 1.x

Supported Chains

Polkadot, Kusama, Westend, Paseo, Asset Hubs, People chains, Coretime chains.

Getting Started

Prerequisites

  • Node.js 18+
  • Yarn 1.x (npm install -g yarn)

Setup

# Clone the repository
git clone https://github.com/itsyogesh/relaycode.git
cd relaycode
# Install dependencies
yarn install
# Start the development server
yarn dev

Open http://localhost:3000 in your browser.

Environment Variables

Copy the example and configure:

cp .env.example .env
VariableDescriptionDefault
NEXT_PUBLIC_APP_URLApplication URLhttp://localhost:3000
NEXT_PUBLIC_DEFAULT_CHAINDefault chain identifierpop-network-testnet
NEXT_PUBLIC_SUPPORTED_CHAINSJSON array of supported chainsSee .env

Available Commands

CommandDescription
yarn devStart development server
yarn buildProduction build
yarn startStart production server
yarn lintRun ESLint
yarn testRun Jest tests
yarn test:watchRun tests in watch mode

Project Structure

app/
(marketing)/ # Landing pages
builder/ # Extrinsic builder
studio/ # Contract Studio IDE
docs/ # Documentation (Fumadocs)
api/
og/ # Dynamic OG image generation
compile/ # Solidity compilation endpoint
components/
builder/ # Extrinsic builder components
studio/ # Contract Studio components
params/inputs/ # Substrate type input components
ui/ # shadcn/ui base components
context/ # React context providers
hooks/ # Custom React hooks
lib/ # Utility libraries
types/ # TypeScript type definitions

Input Components

The extrinsic builder includes type-aware input components for every Substrate type:

Account, Amount, Balance, Bool, BTreeMap, BTreeSet, Bytes, Call, Enum, Hash (H160/H256/H512), KeyValue, Moment, Option, Struct, Text, Tuple, Vector, VectorFixed, Vote, VoteThreshold.

Each component maps directly to SCALE-encoded Substrate types and supports validation, encoding, and real-time feedback.

Deployment

Relaycode is deployed on Vercel. Pushes to master trigger automatic production deployments.

OG images are generated dynamically at the edge via next/og ImageResponse routes:

  • /api/og/home — Homepage
  • /api/og/studio — Contract Studio
  • /api/og/builder — Extrinsic Builder
  • /api/og/docs — Documentation

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feat/my-feature)
  3. Commit your changes
  4. Push to the branch (git push origin feat/my-feature)
  5. Open a Pull Request

License

Apache 2.0

Acknowledgments

Funded by a Web3 Foundation grant. Built with Dedot and LunoKit.

About

Developer-focused tools and utilities to simplify, build and use Polkadot extrinsics with real-time insights

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages