..
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00
2026-05-17 20:24:58 +03:00

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

  1. Clone the repository:
# CLone the starter template
npx gitpick sendaifun/solana-agent-kit/examples/privy-agent-tanstack-starter -b v2
cd privy-solana-agent
  1. Install dependencies:
pnpm install
  1. Set up environment variables: Create a .env file in the root directory with the necessary environment variables.

  2. 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.