A Next.js application for teachers to input, evaluate, refine, and execute AI prompts.
- Prompt Input and Evaluation: Analyze prompts for effectiveness
- Prompt Execution: Test prompts with AI responses
- Prompt Management: Save and organize your prompts
- Learning Resources: Educational content on prompt engineering
- User Authentication: Secure login with Google via Supabase
- Frontend: Next.js 14 with App Router, React, and Tailwind CSS
- Backend: Next.js API routes
- Database: PostgreSQL with Prisma ORM
- Authentication: Supabase
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables in
.env:DATABASE_URL="postgresql://user:password@localhost:5432/mydatabase" NEXT_PUBLIC_SUPABASE_URL="your-supabase-url" NEXT_PUBLIC_SUPABASE_ANON_KEY="your-supabase-anon-key" - Generate Prisma client:
npm run prisma:generate
- Create database schema:
npm run prisma:push
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser
app/: Page components and API routescomponents/: Reusable UI componentslib/: Utility functions and configurationsprisma/: Database schema and configurationspublic/: Static assets
The prompt evaluation feature analyzes user prompts based on several criteria:
- Tone/Persona
- Task Clarity
- Format & Output Specification
- Context & Background
The application then provides a detailed analysis with suggestions for improvement.
The prompt execution feature sends the user's prompt to an AI model and displays the response, allowing users to:
- Test their prompts with real AI models
- Compare different versions of prompts
- Save successful prompts for future use
Users can:
- Save prompts with versions
- Organize prompts by categories
- Mark favorites for quick access
- Track prompt performance and history
- 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 MIT License - see the LICENSE file for details.
- Next.js team for the amazing framework
- Supabase for authentication and database solutions
- The developers of all the libraries used in this project