A complete suite of Flair reusable components and clients for frontend and backend development.
Name | Description |
---|---|
@flair‑sdk/connectors | Ready-made wagmi.sh connectors for various wallet providers. |
@flair‑sdk/react | React hooks and components for features like Wallet, NFT Collections, Token Streams, etc. (browser only) |
@flair‑sdk/metatx | Extension to ether.js Contract class to make all functions compatible with native meta transactions standard (ERC 2771). (node.js and browser) |
@flair‑sdk/ipfs | Utility functions to interact with IPFS, useful for NFT metadata storage. (node.js and browser) |
Explore all the examples using the Flair SDK in the flair-sdk/examples repo:
- Simple wallet integration and connect button
- Custom minting sales in your own website
- Minting NFTs from your backend via a trustless relayer API
- Customize sales logic in the smart contract
Visit docs.flair.dev for the full SDK documentation.
This repository is equipped with Storybook for ease of development and manual testing.
-
Clone this repo:
git clone https://github.com/flair-sdk/typescript.git
-
Install dependencies:
npm install
Due to breaking change in NPM you might need to enable legacy peer dependency resolution:
# Globally:
npm config set legacy-peer-deps true
# Or add --legacy-peer-deps to your npm install command