
Solidity Compiler IDE
io.github.nirholas由 GitHub 账号 nirholas 发布v1.0.0更新于 Oct 24, 2026
Browser Solidity compiler IDE - smart contract development testing deploy
概览
一个本地运行的 Solidity 编译器 IDE 服务器,让助手在浏览器 Web3 演练场中进行智能合约的开发、测试与部署。
- 可以做什么
- 使用多个编译器版本(0.6.x 至 0.8.24)编译 Solidity 合约,显示错误与警告,并可复制 ABI 或字节码。将合约部署到模拟的 JavaScript VM 或 Sepolia、Mumbai、Mainnet 等测试网与网络,随后调用函数并查看带 gas 统计的交易记录。根据自然语言提示生成合约,或从代币、NFT、DeFi、DAO 和跨链桥模板库起步。构建包含合约、前端和实时预览的全栈 dApp,并针对重入、闪电贷和溢出场景测试合约。浏览教程、示例和社区项目,查看实时加密货币价格与 DeFi 指标。
- 适用场景
- 适合希望助手在本地开发环境中协助编写、编译、测试或部署 Solidity 智能合约并快速原型化 dApp 的场景,尤其适用于学习或在测试网上试验。
- 运行要求
- 作为本地进程在用户机器上运行(仅限桌面端)。README 描述为 Node.js 18+ 项目,通过 npm install 和 npm run dev 启动,服务地址为 localhost:3000。可选功能需要在 .env 文件中配置凭据:VITE_PRIVY_APP_ID、VITE_API_URL、VITE_INFURA_API_KEY、VITE_SUPABASE_URL 和 VITE_SUPABASE_ANON_KEY。真实网络部署需要 MetaMask 等钱包和测试网资金。
安装
在 SourceWeft 中
- 打开 控制台中的 Solidity Compiler IDE,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Lyra Web3 Playground
✨ Built by nich | GitHub | X/Twitter
[](https://github.com/nirholas/lyra-web3-playground) [](https://www.typescriptlang.org/) [](https://react.dev/) [](docs/ACCESSIBILITY.md) [](docs/ARCHITECTURE.md) [](https://x.com/nichxbt)A comprehensive open-source Web3 learning platform. Professional development environments, AI-assisted tools, security testing, and collaborative features — all in your browser.
Hosting note: the hosted demo at lyra.works is currently offline while hosting is being migrated. Clone the repo and run
npm install && npm run devto use every environment below athttp://localhost:3000.
🛠️ Development Environments
Professional IDEs
Innovation Lab (Experimental)
Open http://localhost:3000/innovation or enable "Innovation Mode" in the sandbox:
♿ Accessibility (WCAG 2.1 AAA)
Comprehensive accessibility support:
See ACCESSIBILITY.md for complete documentation.
Quick Access to All Tools
🎯 Who is this for?
⚡ Start in 30 Seconds
Run npm install && npm run dev, then pick an option below.
Option 1: Browse the tutorials
- Open
http://localhost:3000 - Click any tutorial or example
- Start coding immediately
Option 2: Try the Solidity IDE
- Open
http://localhost:3000/ide - Write or paste a smart contract
- Click "Compile" then "Deploy" (uses JavaScript VM - no wallet needed)
Option 3: Follow a tutorial
- Open
http://localhost:3000 - Scroll to "Learn Web3 Development"
- Pick a tutorial based on your level
🎮 What can you do here?
For Learning
- 📖 50+ tutorials from "What is a blockchain?" to advanced DeFi
- 🎯 Interactive examples - code runs as you read
- 💡 Instant feedback - see errors and results immediately
- 🏆 Progress tracking - pick up where you left off
For Building
- ⚡ Solidity IDE - compile and deploy in seconds
- 📝 40+ templates - tokens, NFTs, DAOs, DeFi
- 🤖 AI dApp Builder - describe what you want, get code
- 🔗 Multi-chain - Ethereum, Polygon, Base, Arbitrum, and more
For Everyone
- 🌍 10 languages - English, Spanish, Chinese, Arabic, and more
- ♿ Fully accessible - screen readers, keyboard nav, color blind support
- 🌙 Dark mode - easy on the eyes
- 📱 Mobile friendly - learn on any device
📚 Learning Paths
🌱 I'm new to blockchain
- Start with the "What is Ethereum?" tutorial on the home page (
/) - Continue with "Your First Smart Contract" (
/) - Try the Hello World example (
/example/hello-world)
💻 I know JavaScript, teach me Solidity
- Read "Solidity for JS Developers" on the home page (
/) - Compare JavaScript and Solidity side by side (
/) - Build a Simple Token (
/example/erc20-token)
🚀 I want to build a dApp
- Use the AI dApp Builder on the home page (
/) and describe your idea - Or start from a template in the IDE (
/ide) - Deploy to testnet and share with the community
✨ Features
🎮 Premium Code Sandbox (NEW!)
- World-class IDE comparable to CodePen, JSFiddle, and Remix
- Web Sandbox: Multi-file projects with HTML, CSS, JS, React, Vue, Python
- Solidity IDE: Full-featured smart contract development environment
- Split-pane layouts with draggable resize
- Device presets for responsive testing (Desktop/Tablet/Mobile)
- Auto-run on change with live preview
- Console panel with log/warn/error capture
- Settings panel: Theme, font size, Vim mode, auto-save, and more
🎮 Interactive Code Playground (/playground)
- Multi-file editor with file tabs (HTML, CSS, JS, Solidity, JSON, and more)
- Dual-pane layout with live hot-reload preview
- Console capture — see
console.log/warn/errorfrom your code in real-time - File management — create, delete, and switch between files
- AI-powered contract generation from natural language prompts
- 40+ smart contract templates ready to deploy
- One-click deployment to any supported blockchain
🔧 Solidity Development (NEW!)
- Multiple Solidity versions (0.6.x through 0.8.24)
- Real-time compilation with error/warning highlighting
- Deploy to any network (JS VM, Sepolia, Goerli, Mumbai, Mainnet)
- Interactive contract UI - call functions directly
- Transaction history with gas tracking
- Copy ABI/Bytecode with one click
- Keyboard shortcuts (Ctrl+S to compile)
�️ Full-Stack Sandbox (/sandbox)
- File tree navigation with workspace management
- Web preview panel with live hot-reload for HTML/CSS/JS projects
- Console log capture from preview iframe
- Contract interaction panel for deployed smart contracts
- AI Assistant integration for code suggestions
- Innovation Mode — experimental features like AI Whisperer, Time Machine, Exploit Lab
- Export/share workspaces with one click
📚 Smart Contract Templates
- 40+ ready-to-use templates across categories:
- ERC-20, ERC-721, ERC-1155 tokens
- DeFi (staking, vaults, DEX)
- NFT marketplaces and minting
- Governance and DAOs
- Cross-chain bridges
📖 Comprehensive Tutorials
- 50+ tutorials from beginner to advanced [in progress]
- Step-by-step guides with interactive examples
- Topics: Solidity basics, DeFi mechanics, security patterns, gas optimization
🔗 Multi-Chain Support
- Ethereum, Base, Polygon, Avalanche, BSC, Arbitrum
- Solana integration
- Monad testnet support
🧹 Token Consolidation Tool
- Sweep dust tokens across wallets
- Multi-chain token management
- Gas-efficient batch operations
🎨 Modern UI/UX
- Dark/light mode
- Fully responsive design
- Keyboard shortcuts for power users
- Mobile-optimized with bottom navigation
♿ Accessibility - Beyond WCAG 2.1 AAA (NEW!)
We go far beyond standard accessibility. Our system includes futuristic features that make Web3 truly accessible to everyone:
Quick Profiles (one-click presets):
- 👓 Low Vision • 🦯 Blind • 🦻 Deaf • 🖐️ Motor Impaired • 🧠 Cognitive
Vision Features:
- High contrast mode, large text (up to 200%), custom colors
- Color blind filters: Protanopia, Deuteranopia, Tritanopia, and more
- Reading guide: Horizontal line follows your cursor for easier reading
- OpenDyslexic font: Specially designed for dyslexic readers
Motor Accessibility:
- Dwell Click: Click by hovering - no mouse button needed
- Large click targets (up to 64px), sticky keys simulation
- Full keyboard navigation with
Alt+Aquick access
Cognitive Support:
- Simplified interface mode, focus mode, reduced animations
- Extended timeouts, reading speed adjustment
- Clear, consistent layouts
Screen Reader & Audio:
- ARIA live regions announce all actions
- Text-to-Speech: Read content aloud with adjustable speed/pitch
- Code-to-Natural-Language: Translates code to plain English
Developer-Friendly:
- Draggable floating accessibility button
- Export/import custom settings
- Full keyboard shortcut support
See ACCESSIBILITY.md for full documentation
🤖 AI-Powered dApp Builder (NEW!)
- Natural language → Full-stack dApp generation
- Generates Solidity + HTML + CSS + JavaScript from prompts
- Smart contract templates: Token, NFT, DAO
- Interactive tutorial-style editor with step-by-step guidance
- Deploy directly to testnets
🌐 Community Features (NEW!)
- Share Projects: Publish your work with unique shareable links
- Explore Gallery: Discover projects, templates, and tutorials from the community
- Like & Comment: Engage with other developers' work
- Fork Projects: Build on top of others' code
- Wallet Authentication: Connect wallet to access community features
- Embed Code: Embed shared projects in your own websites
🌍 Internationalization (NEW!)
- 10 languages supported out of the box
- English, Spanish, Chinese, French, German, Japanese, Korean, Portuguese, Russian, Arabic
- RTL support for Arabic
- Language selector in navigation
- Persisted language preference
📊 Market Data Integration (NEW!)
- Live Crypto Prices: Real-time data from CoinGecko
- DeFi Analytics: Protocol TVL, yields from DeFiLlama
- Chain Statistics: TVL by chain, trending coins
- Markets Page: Comprehensive market overview at
/markets
🚀 Quick Start
Prerequisites
- Node.js 18+
- npm or yarn
Installation
Open http://localhost:3000 in your browser.
Environment Variables
The app runs without configuration, but wallet login, the backend API, RPC access and Supabase-backed features need credentials. Copy the example file and fill it in:
Every VITE_-prefixed value is inlined into the client bundle and is therefore
public — never put a private key or server secret in .env. Server-side secrets
belong in server/.env (see server/.env.example).
Build for Production
🏗️ Project Structure
🛠️ Tech Stack
📖 Documentation
❓ Frequently Asked Questions
Do I need to install anything?
No! Run npm run dev and open http://localhost:3000 in your browser. Everything runs in your browser.
Do I need cryptocurrency or a wallet?
No! You can learn and practice without any crypto. The IDE has a "JavaScript VM" mode that simulates a blockchain locally. When you're ready to deploy for real, you'll need MetaMask and testnet ETH (which is free).
Is this free?
Yes, it is free to run. No hidden fees, no premium tier. See the LICENSE file for usage terms.
I'm getting errors. What do I do?
- Check the error message - it usually tells you what's wrong
- Make sure your Solidity version matches your code
- Check the
/faqfor common issues - Open an issue if you're stuck
Can I use this for my class/workshop?
Absolutely! That's one of the main use cases. You can share links to specific examples, and students can code along in their browsers. No setup required.
How do I deploy to a real network?
- Install MetaMask
- Get testnet ETH from a faucet (free)
- Connect your wallet on Lyra
- Select your network (e.g., Sepolia, Mumbai)
- Click "Deploy" - your contract is now on the blockchain!
I found a bug / I have a suggestion
Please open an issue! We appreciate all feedback.
🤝 Contributing
Contributions are welcome! Please read our Contributing Guide for details on:
- Code of conduct
- Development workflow
- Pull request process
- Coding standards
- Accessible commit messages - We use a format designed for screen readers and cognitive accessibility
Commit Message Format
Example: [add] Keyboard navigation for dropdown menus ♿
Why this format?
- Text first - Screen readers read emoji names, so meaning comes first
- Plain words - Clear for developers with cognitive disabilities
- Consistent - Easy to scan for low vision users
See CONTRIBUTING.md for full guidelines.
Good First Issues
Check out issues labeled good first issue to get started.
📄 License
All rights reserved. See the LICENSE file for details.
🙏 Acknowledgments
- Remix IDE for inspiration
- OpenZeppelin for contract standards
- The Web3 developer community
If you find this project useful, please consider giving it a ⭐
Built with ❤️ by nich
Documentation
Full documentation site: https://nirholas.github.io/lyra-web3-playground/
- Getting started covers install and first run.
- Examples has copy-paste snippets.
Star History
来源:README.md,提交 779a786
工具
0版本历史
1- v1.0.0最新Sep 16, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。