A React-based open-source authentication framework for Cardano NFT and wallet integration, currently at v0.1.52 beta. Provides frontend wallet connection UI components (WalletProvider, WalletConnectButton, WalletConnectPage) and server-side auth functions (signup, login, verifySignature) tailored for Cardano blockchain. Ships TypeScript types, requires React 18, and is designed for Next.js App Router. Differentiates from generic web3 auth libraries by targeting Cardano ecosystem specifically, with built-in hex-to-ASCII decoding and CIP-8 message signing.
npm install littlefish-nft-auth-framework-betaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up WalletProvider in a Next.js 13+ App Router layout and uses useWallet hook with WalletConnectButton on a page. Demonstrates best practices for client-side rendering and provider wrapping.
Pin to exact version in package.json: "littlefish-nft-auth-framework-beta": "0.1.52"
Ensure all components using wallet hooks or buttons are children of <WalletProvider>.
Use exactly: 'littlefish-nft-auth-framework-beta/frontend' and 'littlefish-nft-auth-framework-beta/server'.
Use ESM import syntax or dynamic import() if the consuming project is CJS.
Treat assets as Array<[string, string, number]> for now; check CHANGELOG for interface updates.
Only call connectWallet with a value from the `wallets` array returned by useWallet.
Use: import { ... } from 'littlefish-nft-auth-framework-beta/frontend' or '/server'.Use: import { useWallet } from 'littlefish-nft-auth-framework-beta/frontend'.Add "use client"; at the top of the file that renders WalletProvider.
Check if the wallet exists: if (window.cardano && window.cardano[wantedWallet]) before calling connectWallet.