Free, open-source Solana wallet authentication demo
Built with Next.js, NextAuth.js, shadcn/ui, Tailwind CSS
Features responsive wallet sign-in and account modal
Supports Solana wallet adapter and in-memory auth state
MIT-licensed with Vercel-hosted demo
SolanAuth is a free, open-source demo application showcasing responsive Solana wallet authentication and an account modal, integrating NextAuth.js with shadcn/ui components. Its primary goal is to provide developers with a practical example of Solana wallet-based sign-in for decentralized applications (dApps), targeting React developers building Web3 apps on the Solana blockchain, such as NFT marketplaces or DeFi platforms. Built with Next.js, NextAuth.js, Solana Wallet Adapter, shadcn/ui, Tailwind CSS, and TypeScript, it offers a user-friendly authentication flow with wallet connection (e.g., Phantom, Solflare) and a styled account modal. The project, bootstrapped from the next-auth-example repository and adapted from SIWE (Sign-In with Ethereum), supports in-memory auth state persistence, allowing users to stay signed in without constant wallet reconnection. For shadcn/ui enthusiasts, SolanAuth is a perfect fit, delivering accessible, modern UI components for Web3 authentication, hosted on Vercel.
Solana Wallet Sign-In: Authenticate users via Solana wallets using Solana Wallet Adapter.
Account Modal: Responsive, shadcn/ui-styled modal for user account details.
NextAuth Integration: Secure authentication with NextAuth.js, adapted for Solana.
In-Memory Auth State: Persists auth state without constant wallet reconnection.
Accessibility: WAI-ARIA-compliant UI via shadcn/ui’s Radix UI foundation.
Responsive Design: Tailwind CSS ensures cross-device compatibility.
Type Safety: TypeScript for robust, error-free development.
Wallet Flexibility: Configurable with multiple Solana wallets (e.g., Phantom, Solflare).
Web3 Authentication: Simplifies Solana wallet sign-in for dApps.
Free and Open-Source: MIT license with no usage restrictions.
Accessible: shadcn/ui’s Radix UI ensures inclusive UI interactions.
Shadcn UI Synergy: Seamless integration with shadcn/ui projects.
Developer-Friendly: TypeScript and NextAuth reduce setup complexity.
Vercel Demo: Live demo at solanauth.vercel.app showcases functionality.
Community Potential: Aligns with Solana and shadcn/ui ecosystems.
React-Only: Limited to Next.js/React ecosystems.
Solana-Specific: Focused on Solana wallets, not cross-chain (e.g., Ethereum).
Learning Curve: Requires knowledge of NextAuth, Solana Wallet Adapter, and shadcn/ui.
Documentation Needs: Could expand on wallet setup or customization guides.
Early Stage: New project with limited community feedback.
Wallet Dependency: Relies on user-installed Solana wallets (e.g., Phantom).
Demo Scope: Focused on authentication, not full dApp features.
SolanAuth provides a variety of authentication-related components:
SignInButton: shadcn/ui-styled button for initiating wallet sign-in.
AccountModal: Modal displaying user wallet details (e.g., address, balance).
WalletAdapter: Solana Wallet Adapter wrapper for wallet connection.
AuthProvider: NextAuth.js context for managing auth state (inferred).
LayoutWrapper: Responsive layout styled with Tailwind CSS (inferred).
SolanAuth operates on a Free model:
Free Access: Fully open-source under MIT license, available via GitHub (likely under a personal repo, e.g., solanauth).
No Pro Version: No premium features or paid tiers mentioned.
SolanAuth integrates with:
Next.js: Core framework for SSR and file-based routing.
NextAuth.js: Authentication library for Solana wallet sign-in.
Solana Wallet Adapter: Connects to Solana wallets (e.g., Phantom, Solflare).
Shadcn UI: Radix UI-based components for accessible UI.
Tailwind CSS: Utility-first styling for responsive design.
TypeScript: Static typing for robust development.
Vercel: Hosting for demo site.
Solana Blockchain: Devnet/mainnet for wallet interactions.
SolanAuth is a free demo for Solana wallet authentication using NextAuth.js and shadcn/ui’s accessible components.
Yes, fully open-source under MIT license.
No, designed for Next.js/React ecosystems.
Submit your Shadcn product to AllShadcn, get featured, and drive genuine traffic while showcasing your work to the world. Turn your creativity into revenue and begin selling today! 🚀