Coder Social home page Coder Social logo

vykt-sdk's Introduction

wagmi logo


Introduction

Welcome to the Vykt-SDK, your one-stop solution for displaying personalized profile pictures on the Ethereum blockchain. Using Vykt, users can choose their own profile picture for their public address, adding a unique touch to their wallets.

Our powerful Vykt-sdk component and hook make it simple and straightforward to display these profiles within your dApps. Use Vykt to create new profile pictures & Vykt-SDK to show them to everyone.

Currently we only support Mantle! But we will soon support multichain as well.

Installation

Install wagmi and its ethers peer dependency.

npm -

npm install vykt-sdk

yarn -

yarn add vykt-sdk

pnpm -

pnpm install vykt-sdk

Quick Start

The vykt-sdk is currently very straightforward to use, as it only has one component and hook. However, more features will be added soon to make it even easier to display profiles.

Component

  • VyktProfile
import { VyktProfile } from "vykt-sdk";
import { Address, useAccount } from "wagmi";

export function App() {
  const { address, isConnected } = useAccount();

  return (
    <>
      {isConnected && (
        <VyktProfile address={address!} size="lg" type="circle" />
      )}
    </>
  );
}

Hook

  • useFetchImageURI
import { useFetchImageURI } from "vykt-sdk";
import { Address } from "wagmi";

export type Props = {
  address: Address;
}

export function Profile(props: Props) {
  const { data } = useFetchImageURI(address);
  return (
    <div>
      <img src={data as string} />
    </div>
  );
}

Documentation

For now, there is a single component and hook for vykt-sdk. We will add more in near future.

Component

  • VyktProfile - This component is designed to display your Vykt profile, and it requires an address as a mandatory prop. Additionally, size, type, and style are available as optional props to customize the component's appearance.
Prop type required
address Address true
size sm | md | lg optional
type circle | square optional
style React.CSSProperties optional

Hook

  • useFetchImageURI - In order to use this hook, you must specify an address that will retrieve your vykt profile image if it exists, and a blockie image otherwise.

Authors

License

MIT License


vykt-sdk's People

Contributors

keshavsharma25 avatar miralsuthar avatar

Stargazers

Roman avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.