Skip to content

Latest commit

Β 

History

History
69 lines (47 loc) Β· 1.68 KB

File metadata and controls

69 lines (47 loc) Β· 1.68 KB

InitCode

InitCode

Browser-based IDE for CosmWasm smart contract development on the Initia blockchain.

πŸ”— Live: https://initcode-eta.vercel.app


What it does

InitCode lets you write, edit, and deploy CosmWasm smart contracts directly from the browser β€” no local toolchain required. It ships with:

  • Monaco editor (VS Code engine) with syntax highlighting, bracket matching, and multi-tab support
  • AI inline completions β€” ghost-text suggestions as you type, accepted with Tab
  • AI chat assistant β€” custom-trained model that understands CosmWasm and Initia patterns
  • One-click deploy β€” compiles and deploys your contract to Initia Testnet via a server-side deployer wallet
  • File explorer β€” create, rename, and delete files; full project tree

Setup

1. Clone & install

git clone https://github.com/CodeswithrohStudio/initcode.git
cd initcode
npm install

2. Environment variables

Create a .env.local file:

# AI (Gemma 4 via Google AI Studio)
GEMINI_API_KEY=your_key_here

# Deployer wallet (Initia testnet)
DEPLOYER_MNEMONIC="your twelve word mnemonic phrase here"

# Chain config
WASM_REST_URL=https://rest.testnet.initia.xyz
WASM_CHAIN_ID=initiation-2
WASM_GAS_DENOM=uinit

3. Run

npm run dev --turbo=false

Open http://localhost:3000.


Tech stack

Layer Tech
Framework Next.js 16 (App Router)
Editor Monaco Editor (@monaco-editor/react)
AI Gemma 4 via Google Generative AI SDK
State Zustand
Styling Tailwind CSS
Deploy target Initia Testnet (CosmWasm)