2.0 KiB

Phantom Agent Starter

A modern web application built with NextJs and Solana integration, featuring authentication via Phantom and AI capabilities.

Demo

Watch the video

๐Ÿš€ Features

  • Authentication: Secure user authentication powered by Phantom
  • Solana Integration: Built with Solana Agent Kit for blockchain interactions
  • AI Capabilities: OpenAI integration for intelligent features
  • Modern UI: Built modern UI components with Tailwind CSS
  • Type Safety: Full TypeScript support

๐Ÿ› ๏ธ Tech Stack

  • Tech Stack: NextJs
  • Authentication: Phantom
  • Blockchain: Solana Web3.js, Solana Agent Kit
  • Styling: Tailwind CSS
  • AI: OpenAI SDK
  • Development: TypeScript

๐Ÿ“ฆ Installation

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

๐Ÿš€ Development

Start the development server:

pnpm dev

The application will be available at http://localhost:3000.

๐Ÿ—๏ธ Project Structure

src/app
    โ”œโ”€โ”€ components/     # UI components
    โ”œโ”€โ”€ chat/           # /chat route
    โ”œโ”€โ”€ 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.