AfterMint: Plug-and-play SDK for post-mint NFT rewards, claim perks instantly after minting
AfterMint is a plug-and-play SDK that enables NFT projects to offer post-mint rewards instantly. Once users mint an NFT, AfterMint detects the event and triggers unlockable perks from ecosystem partners (e.g., POAP, Flowty).
The SDK is fully modular, written in TypeScript with a UMD build for seamless integration across environments. While the demo chain is Flow, the SDK is designed to support Zircuit and other EVM-compatible networks in future versions.
The system supports decentralized image storage via Walrus (Sui ecosystem) and Web3.Storage, ensuring IPFS immutability for all assets.
To demonstrate the SDK in action, I built Mintari ā a Ghibli-style NFT minting app where images are AI-transformed, uploaded to IPFS, and minted on Flow. After minting, the SDK triggers the reward experience automatically.
š§ AfterMint SDK:
Built using TypeScript, bundled with Vite into a UMD module.
Provides AfterMintProvider, useWallet, and showRewards() functions.
Listens to mint events and dynamically fetches partner perks.
Designed with future extensibility in mind for other chains like Zircuit.
šØ Mintari App (showcase app):
Built in Next.js 14 (App Router) with Tailwind CSS, Framer Motion, and Radix UI.
Image transformation is handled by a Django backend that mocks a Ghibli-style generator (via Replicate API).
Uploaded assets are stored via Walrus and Web3.Storage on IPFS.
NFTs are minted on Flow Testnet using FCL and Cadence smart contracts.
AfterMint SDK is used to trigger reward modals post-minting.