User Interface
Potpie is an open-source platform that creates AI agents specialized in your codebase, enabling automated code analysis, testing, and development tasks. By building a comprehensive knowledge graph of your code, Potpie's agents can understand complex relationships and assist with everything from debugging to feature development.
This repository contains the User Interface for the Potpie platform.
- Custom AI Agents: Create agents tailored to your specific codebase from a single prompt
- Pre-Built Agents: Choose from available list of Q&A, Debugging, Unit Test, Integration Test, Low Level Design, Code Generation Agents
- Chat: Easy to use chat interface to interact with your agents with streaming support.
-
Clone the repository:
git clone https://github.com/potpie-ai/potpie-ui.git cd potpie-ui
-
Copy the required configurations:
cp .env.template .env
-
Install dependencies and run the development server:
pnpm install pnpm build pnpm run dev
-
Open http://localhost:3000 with your browser to see the result.
This project supports a local development mode that allows you to run the app without external service dependencies. The app automatically detects if configuration for these services is missing and falls back to mock implementations:
- Firebase Authentication: Uses a mock user with predetermined credentials
- PostHog Analytics: Uses a no-op implementation
- Formbricks Bug Reporting: Disabled in local mode
-
Create a
.env
file without the following environment variables:- Firebase:
NEXT_PUBLIC_FIREBASE_API_KEY
,NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN
, etc. - PostHog:
NEXT_PUBLIC_POSTHOG_KEY
,NEXT_PUBLIC_POSTHOG_HOST
- Formbricks:
NEXT_PUBLIC_FORMBRICKS_ENVIRONMENT_ID
,NEXT_PUBLIC_FORMBRICKS_API_HOST
- Firebase:
-
Run the application normally with:
pnpm run dev
-
The app will automatically detect missing configurations and use mock implementations.
-
You'll be automatically logged in with a mock user (uid: 'local-dev-user', email: 'local-dev@example.com')
For production deployment, you'll need to set up the following services:
- Firebase Authentication: Set up Firebase credentials for authentication
- PostHog Analytics: Configure PostHog for analytics tracking (optional)
- Formbricks: Set up for bug reporting (optional)
Configure your environment variables in .env
file and run:
pnpm run build
pnpm start
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.