2.7 KiB
Privy Agent Tanstack Starter
A modern web application built with TanStack Router, React, and Solana integration, featuring authentication via Privy and AI capabilities.
๐ Features
- Authentication: Secure user authentication powered by Privy
- Solana Integration: Built with Solana Agent Kit for blockchain interactions
- AI Capabilities: OpenAI integration for intelligent features
- Modern UI: Built with Radix UI components and Tailwind CSS
- Type Safety: Full TypeScript support
- Database: PostgreSQL with Drizzle ORM
- Routing: TanStack Router for type-safe routing
- Development Tools: Biome for linting and formatting
๐ ๏ธ Tech Stack
- Frontend: React 19, TanStack Router
- Authentication: Privy
- Blockchain: Solana Web3.js, Solana Agent Kit
- Styling: Tailwind CSS, Radix UI
- Database: PostgreSQL, Drizzle ORM
- AI: OpenAI SDK
- Development: TypeScript, Biome, Vinxi
๐ฆ Installation
- Clone the repository:
# CLone the starter template
npx gitpick sendaifun/solana-agent-kit/examples/privy-agent-tanstack-starter -b v2
cd privy-solana-agent
- Install dependencies:
pnpm install
-
Set up environment variables: Create a
.envfile in the root directory with the necessary environment variables. -
Run database migrations:
pnpm db:generate
pnpm db:migrate
๐ Development
Start the development server:
pnpm dev
The application will be available at http://localhost:3000.
๐งน Linting and Formatting
Run linting:
pnpm lint
Fix linting issues:
pnpm lint:fix
๐ฆ Database Management
- Generate migrations:
pnpm db:generate - Run migrations:
pnpm db:migrate - Open database studio:
pnpm db:studio - Push schema changes:
pnpm db:push - Pull schema changes:
pnpm db:pull - Check schema:
pnpm db:check - Update schema:
pnpm db:up
๐๏ธ Project Structure
src/
โโโ components/ # React components
โโโ functions/ # Server-side functions
โโโ hooks/ # Custom React hooks
โโโ lib/ # Library code and utilities
โโโ routes/ # Application routes
โโโ styles/ # Global styles
โโโ utils/ # Utility functions
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Note
This is a starter template and may not include all features or optimizations for production use (e.g the use of the OpenAI API key on the client). Please review and modify as necessary for your specific use case.