0.1.36 • Published 2 years ago

solana-mehmet-test v0.1.36

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Metaspace Deployment Kit

Description

Metaspace Deployment Kit is an SDK you can use to embed a metaspace into a desired website. This metaspace will be running on a cloud and will be pixel-streamed to the embed. It also comes with a Solana wallet connection that users can use to get a more personalized experience.

Some of the feature include:

  • Wallet connection and access restriction
  • Customizable buttons, fonts, and colors
  • Fullscreen

Customization Options

These are the configurable options that must be specified:

  • fontColor: font color of the Connect Wallet button
  • fullScreenColor: color of the Fullscreen button
  • fullScreenSize: size of the Fullscreen button
  • walletColor: color of the Connect Wallet button
  • walletFont: font family of the Connect Wallet button
  • walletId: wallet ID of the developer company
  • width: width of the embed

Dependencies

Most of the dependencies are indicated as PeerDependencies. Make sure they are installed with appropriate versions i.e:

"peerDependencies": {
  "@solana/wallet-adapter-base": "^0.9.5",
  "@solana/wallet-adapter-react": "^0.15.4",
  "@solana/wallet-adapter-react-ui": "^0.9.6",
  "@solana/wallet-adapter-wallets": "^0.16.1",
  "@solana/web3.js": "^1.41.4",
  "react-full-screen": "^1.1.0",
  "react-icons": "^4.3.1",
  "react": "^18.1.0",
  "react-dom": "^18.1.0",
  "crypto-browserify": "^3.12.0",
  "stream-browserify": "^3.0.0"
}

Installation & Usage

The package is currently on NPM with the name: metaspace-deployment-kit

After making sure of the dependencies, install the package using:

yarn add metaspace-deployment-kit

Due to Webpack 5's incompatibility with Web3 libraries, add the following fallbacks to your Webpack configuration files.

fallback: {
  crypto: require.resolve("crypto-browserify"),
  stream: require.resolve("stream-browserify")
}

This file is usually indicated as webpack.config.js.

After installation add the following imports to the desired location

import { MetaspaceWindow } from "metaspace-deployment-kit";
import "@solana/wallet-adapter-react-ui/styles.css";
require("metaspace-deployment-kit/lib/css/metaspace.css");
require("metaspace-deployment-kit/lib/css/content.css");

Now, you can use the MetaspaceWindow components just like any other react component.

Example

A screenshot of the embed image

Authors

These are the five main contributors of the project:

  • Ata Çil
  • Bartu Mehmet Ortal
  • Efe Sozen
  • Mehmet Alp Sözüdüz
  • Tarık Ziyar Üzel
0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.26

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago