Play0G

This is a devtool for Zero Gravity chain to help the new developers.

Play0G

Created At

ETHGlobal New Delhi

Project Description

Play0G is a developer-focused playground for the ZeroGravity (0G) blockchain that provides a lightweight environment to experiment, test, and interact with the core features of the network. The playground allows developers to upload and retrieve data using 0G Storage, run AI or computation tasks through 0G Compute, and interact with smart contracts for storing and retrieving data. It features a real-time code editor where developers can write TypeScript or Solidity scripts and execute them directly on the 0G network via a Node.js backend. The backend handles code execution, interacts with the 0G SDKs, and returns results such as root hashes for stored data or outputs from compute tasks. ZeroPlay is designed to be minimal and developer-friendly, focusing on testing and learning rather than serving as a full platform. Its tech stack includes React with a Monaco-based code editor, Node.js and Express for the backend, @0glabs/0g-storage-sdk for storage, @0glabs/0g-serving-broker for compute, and ethers.js for smart contract interactions. By providing a safe and simple environment, ZeroPlay enables developers to quickly prototype scripts, test storage and compute features, and gain hands-on experience with the 0G ecosystem. Future enhancements may include a tabbed editor for multiple script types, a visual output console, prebuilt templates for storage and compute tasks, sandboxed code execution for safety, and integration with wallets or testnet faucets for easier onboarding. Overall, ZeroPlay serves as a practical and educational tool for developers looking to explore the ZeroGravity blockchain efficiently.

How it's Made

We have used different CLI and SDK's and wallet connection. we have used dockerized container for the backend. Play0G is a developer-focused playground for the ZeroGravity (0G) blockchain that provides a lightweight environment to experiment, test, and interact with the core features of the network. The playground allows developers to upload and retrieve data using 0G Storage, run AI or computation tasks through 0G Compute, and interact with smart contracts for storing and retrieving data. It features a real-time code editor where developers can write TypeScript or Solidity scripts and execute them directly on the 0G network via a Node.js backend. The backend handles code execution, interacts with the 0G SDKs, and returns results such as root hashes for stored data or outputs from compute tasks. ZeroPlay is designed to be minimal and developer-friendly, focusing on testing and learning rather than serving as a full platform. Its tech stack includes React with a Monaco-based code editor, Node.js and Express for the backend, @0glabs/0g-storage-sdk for storage, @0glabs/0g-serving-broker for compute, and ethers.js for smart contract interactions. By providing a safe and simple environment, ZeroPlay enables developers to quickly prototype scripts, test storage and compute features, and gain hands-on experience with the 0G ecosystem. Future enhancements may include a tabbed editor for multiple script types, a visual output console, prebuilt templates for storage and compute tasks, sandboxed code execution for safety, and integration with wallets or testnet faucets for easier onboarding. Overall, ZeroPlay serves as a practical and educational tool for developers looking to explore the ZeroGravity blockchain efficiently.

background image mobile

Join the mailing list

Get the latest news and updates