Socket
Book a DemoInstallSign in
Socket

@hyperweb/playground

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperweb/playground

0.0.2
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
5
Weekly downloads
Β 
Created
Source

Hyperweb Playground

A comprehensive blockchain development playground component for React applications. Provides a complete environment for smart contract development, deployment, and interaction.

Features

  • πŸ”§ Smart Contract Editor - Monaco editor with syntax highlighting
  • πŸš€ Contract Deployment - Deploy contracts to Hyperweb
  • πŸ”— Contract Interaction - Interactive interface for calling contract methods
  • πŸ’§ Faucet Integration - Built-in faucet for testnet tokens
  • πŸ“Š Asset Management - View and manage blockchain assets
  • 🎨 Theming - Dark/light mode support
  • πŸ“± Responsive Design - Works on desktop and mobile devices

Quick Start

Step 1: Install the Package

npm install @hyperweb/playground
# or
yarn add @hyperweb/playground
# or
pnpm add @hyperweb/playground

Step 2: Import Required Styles

Add these imports to your app's root file:

For Next.js App Router (in app/layout.tsx):

import '@hyperweb/playground/styles';
import '@hyperweb/playground/wallet-styles';

export default function RootLayout({ children }: { children: React.ReactNode }) {
	return (
		<html lang='en'>
			<body>{children}</body>
		</html>
	);
}

For Next.js Pages Router (in pages/_app.tsx):

import '@hyperweb/playground/styles';
import '@hyperweb/playground/wallet-styles';

import type { AppProps } from 'next/app';

export default function App({ Component, pageProps }: AppProps) {
	return <Component {...pageProps} />;
}

Step 3: Use the Component

import { HyperwebPlayground } from '@hyperweb/playground';

function App() {
	return (
		<div>
			<h1>My Interchain App</h1>
			<HyperwebPlayground />
		</div>
	);
}

Configuration Options

HyperwebPlaygroundProps

PropertyTypeDefaultDescription
endpointsConfigPartial<EndpointsConfig>undefinedCustom RPC/REST endpoints
theme'light' | 'dark''light'Theme preference
requireHyperwebConnectionbooleantrueWhether to require Hyperweb chain connection
classNamestringundefinedAdditional CSS classes

Internal Configuration

The playground uses internal default configurations for Hyperweb connection and React Query:

Default Chain Configuration:

  • Pre-configured with Hyperweb chains and assets
  • Keplr wallet integration enabled by default
  • Automatic wallet modal theming

Default Query Client Configuration:

{
  defaultOptions: {
    queries: {
      retry: 2,
      refetchOnMount: false,
      refetchOnWindowFocus: false
    }
  }
}

Styling

The playground uses scoped CSS to prevent conflicts with your application's styles. All styles are contained within the .hwp class.

Required Style Imports

You must import the required styles in your app's root file (as shown in Step 2 above):

import '@hyperweb/playground/styles';
import '@hyperweb/playground/wallet-styles';

These imports include:

  • Core playground component styles
  • Wallet connection modal styles
  • Scoped CSS to prevent style conflicts

Examples

With Custom Endpoints

<HyperwebPlayground
	endpointsConfig={{
		chain: {
			rpc: 'https://rpc.example.com',
			faucet: 'https://faucet.example.com',
		},
		registry: {
			rest: 'https://rest.example.com',
		},
	}}
/>

With Dark Theme

<HyperwebPlayground theme='dark' />

Development

Development Server

pnpm dev

Building the Package

pnpm build

Interchain JavaScript Stack βš›οΈ

A unified toolkit for building applications and smart contracts in the Interchain ecosystem

CategoryToolsDescription
Chain InformationChain Registry, Utils, ClientEverything from token symbols, logos, and IBC denominations for all assets you want to support in your application.
Wallet ConnectorsInterchain Kitbeta, Cosmos KitExperience the convenience of connecting with a variety of web3 wallets through a single, streamlined interface.
Signing ClientsInterchainJSbeta, CosmJSA single, universal signing interface for any network
SDK ClientsTelescopeYour Frontend Companion for Building with TypeScript with Cosmos SDK Modules.
Starter KitsCreate Interchain Appbeta, Create Cosmos AppSet up a modern Interchain app by running one command.
UI KitsInterchain UIThe Interchain Design System, empowering developers with a flexible, easy-to-use UI kit.
Testing FrameworksStarshipUnified Testing and Development for the Interchain.
TypeScript Smart ContractsCreate Hyperweb AppBuild and deploy full-stack blockchain applications with TypeScript
CosmWasm ContractsCosmWasm TS CodegenConvert your CosmWasm smart contracts into dev-friendly TypeScript classes.

Credits

πŸ›  Built by Hyperweb (formerly Cosmology) β€”Β if you like our tools, please checkout and contribute to our github βš›οΈ

Disclaimer

AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED β€œAS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.

No developer or entity involved in creating this software will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of the code, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value.

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.