A modern web interface for interacting with the Perplexity AI API, built with React, TypeScript, and Tailwind CSS.
Before you begin, ensure you have the following installed:
- Node.js (version 18 or higher)
- npm (comes with Node.js)
- A Perplexity API key
- Open PowerShell or Command Prompt and run:
# Clone the repository
git clone https://github.com/PierrunoYT/perplexity-webui.git
# Navigate to project directory
cd perplexity-webui
# Install dependencies
npm install
- Create a
.env
file in the root directory:
VITE_PERPLEXITY_API_KEY=your_api_key_here
- Start the development server:
npm run dev
- Open Terminal and run:
# Clone the repository
git clone https://github.com/PierrunoYT/perplexity-webui.git
# Navigate to project directory
cd perplexity-webui
# Install dependencies
npm install
# Create .env file
echo "VITE_PERPLEXITY_API_KEY=your_api_key_here" > .env
# Start development server
npm run dev
To build and preview the production version:
# Build the project
npm run build
# Preview the build
npm run preview
- 🌙 Dark/Light mode support
- 💬 Real-time chat interface
- ⚙️ Customizable API settings
- 📊 Structured output support
- 🔍 Related questions suggestions
- 📝 Markdown rendering with citation support
- 🌐 Cross-platform compatibility
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production buildnpm run lint
- Run ESLint
perplexity-webui/
├── src/
│ ├── components/ # React components
│ ├── services/ # API and other services
│ ├── App.tsx # Main application component
│ └── main.tsx # Application entry point
├── public/ # Static assets
└── package.json # Project dependencies and scripts
This project is licensed under the MIT License - see the LICENSE file for details.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
If you encounter any issues or have questions, please open an issue on GitHub.