├── .gitignore ├── .replit ├── LICENSE ├── README.md ├── client ├── index.html └── src │ ├── App.tsx │ ├── components │ ├── api-test │ │ ├── request-builder.tsx │ │ └── response-viewer.tsx │ ├── tasks │ │ ├── status-chart.tsx │ │ ├── task-form.tsx │ │ └── task-list.tsx │ └── ui │ │ ├── accordion.tsx │ │ ├── alert-dialog.tsx │ │ ├── alert.tsx │ │ ├── aspect-ratio.tsx │ │ ├── avatar.tsx │ │ ├── badge.tsx │ │ ├── breadcrumb.tsx │ │ ├── button.tsx │ │ ├── calendar.tsx │ │ ├── card.tsx │ │ ├── carousel.tsx │ │ ├── chart.tsx │ │ ├── checkbox.tsx │ │ ├── collapsible.tsx │ │ ├── command.tsx │ │ ├── context-menu.tsx │ │ ├── dialog.tsx │ │ ├── drawer.tsx │ │ ├── dropdown-menu.tsx │ │ ├── form.tsx │ │ ├── hover-card.tsx │ │ ├── input-otp.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── menubar.tsx │ │ ├── navigation-menu.tsx │ │ ├── pagination.tsx │ │ ├── popover.tsx │ │ ├── progress.tsx │ │ ├── radio-group.tsx │ │ ├── resizable.tsx │ │ ├── scroll-area.tsx │ │ ├── select.tsx │ │ ├── separator.tsx │ │ ├── sheet.tsx │ │ ├── sidebar.tsx │ │ ├── skeleton.tsx │ │ ├── slider.tsx │ │ ├── switch.tsx │ │ ├── table.tsx │ │ ├── tabs.tsx │ │ ├── textarea.tsx │ │ ├── toast.tsx │ │ ├── toaster.tsx │ │ ├── toggle-group.tsx │ │ ├── toggle.tsx │ │ └── tooltip.tsx │ ├── hooks │ ├── use-mobile.tsx │ └── use-toast.ts │ ├── index.css │ ├── lib │ ├── api.ts │ ├── queryClient.ts │ ├── utils.ts │ └── websocket.ts │ ├── main.tsx │ └── pages │ ├── dashboard.tsx │ ├── metrics-dashboard.tsx │ ├── not-found.tsx │ └── test-dashboard.tsx ├── db ├── index.ts └── schema.ts ├── drizzle.config.ts ├── generated-icon.png ├── package-lock.json ├── package.json ├── postcss.config.js ├── server ├── index.ts ├── routes.ts └── vite.ts ├── tailwind.config.ts ├── theme.json ├── tsconfig.json └── vite.config.ts /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | .DS_Store 4 | server/public 5 | vite.config.ts.* 6 | *.tar.gz -------------------------------------------------------------------------------- /.replit: -------------------------------------------------------------------------------- 1 | modules = ["nodejs-20", "web", "postgresql-16"] 2 | run = "npm run dev" 3 | hidden = [".config", ".git", "generated-icon.png", "node_modules", "dist"] 4 | 5 | [nix] 6 | channel = "stable-24_05" 7 | 8 | [deployment] 9 | deploymentTarget = "cloudrun" 10 | build = ["npm", "run", "build"] 11 | run = ["npm", "run", "start"] 12 | 13 | [[ports]] 14 | localPort = 5000 15 | externalPort = 80 16 | 17 | [workflows] 18 | runButton = "Project" 19 | 20 | [[workflows.workflow]] 21 | name = "Project" 22 | mode = "parallel" 23 | author = "agent" 24 | 25 | [[workflows.workflow.tasks]] 26 | task = "workflow.run" 27 | args = "Start application" 28 | 29 | [[workflows.workflow]] 30 | name = "Start application" 31 | author = "agent" 32 | 33 | [workflows.workflow.metadata] 34 | agentRequireRestartOnSave = false 35 | 36 | [[workflows.workflow.tasks]] 37 | task = "packager.installForAll" 38 | 39 | [[workflows.workflow.tasks]] 40 | task = "shell.exec" 41 | args = "npm run dev" 42 | waitForPort = 5000 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Pippin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | *This tool was entirely built, tested, and open-sourced on Github using a combination of OpenAI's Operator using Replit Agent ([video](https://x.com/yoheinakajima/status/1882707264936845329)).* 2 | 3 | # Pippin Tasks 4 | 5 | A comprehensive API-based task management system designed for AI agents and teams, featuring advanced real-time monitoring, robust performance metrics tracking, and dynamic task tracking functionalities. 6 | 7 | ## Features 8 | 9 | - 📋 **Task Management** 10 | - Create, update, and delete tasks 11 | - Real-time status updates via WebSocket 12 | - Priority and assignment tracking 13 | - Task status visualization 14 | 15 | - 🧪 **API Testing Dashboard** 16 | - Interactive API request builder 17 | - Response viewer with syntax highlighting 18 | - Historical test results tracking 19 | - Support for all HTTP methods 20 | 21 | - 📊 **Performance Metrics** 22 | - Real-time API response time tracking 23 | - Error rate monitoring 24 | - Endpoint performance visualization 25 | - Request volume analytics 26 | 27 | ## Tech Stack 28 | 29 | - **Frontend** 30 | - React.js with TypeScript 31 | - TanStack Query for data fetching 32 | - Recharts for data visualization 33 | - Tailwind CSS with shadcn/ui components 34 | - WebSocket for real-time updates 35 | 36 | - **Backend** 37 | - Express.js 38 | - PostgreSQL database 39 | - Drizzle ORM 40 | - WebSocket server 41 | - Performance metrics middleware 42 | 43 | ## Getting Started 44 | 45 | 1. Clone the repository: 46 | ```bash 47 | git clone https://github.com/pippinlovesyou/pippin-tasks.git 48 | cd pippin-tasks 49 | ``` 50 | 51 | 2. Install dependencies: 52 | ```bash 53 | npm install 54 | ``` 55 | 56 | 3. Set up the database: 57 | ```bash 58 | # Create a PostgreSQL database and set the DATABASE_URL environment variable 59 | npm run db:push 60 | ``` 61 | 62 | 4. Start the development server: 63 | ```bash 64 | npm run dev 65 | ``` 66 | 67 | ## API Documentation 68 | 69 | ### Tasks 70 | 71 | ```typescript 72 | // Task schema 73 | interface Task { 74 | id: number; 75 | title: string; 76 | description?: string; 77 | status: 'pending' | 'in-progress' | 'completed' | 'cancelled'; 78 | assignedTo?: string; 79 | priority: 'low' | 'medium' | 'high'; 80 | createdAt: Date; 81 | updatedAt: Date; 82 | } 83 | ``` 84 | 85 | #### Endpoints 86 | 87 | - `GET /api/tasks` - Get all tasks 88 | - `POST /api/tasks` - Create a new task 89 | - `PUT /api/tasks/:id` - Update a task 90 | - `DELETE /api/tasks/:id` - Delete a task 91 | 92 | ### API Tests 93 | 94 | ```typescript 95 | // API Test schema 96 | interface ApiTest { 97 | id: number; 98 | endpoint: string; 99 | method: string; 100 | requestBody?: string; 101 | responseStatus: number; 102 | responseBody?: string; 103 | createdAt: Date; 104 | } 105 | ``` 106 | 107 | #### Endpoints 108 | 109 | - `GET /api/tests` - Get all API tests 110 | - `POST /api/tests` - Create a new API test 111 | 112 | ### Metrics 113 | 114 | ```typescript 115 | // Metric schema 116 | interface Metric { 117 | id: number; 118 | endpoint: string; 119 | method: string; 120 | responseTime: number; 121 | responseStatus: number; 122 | timestamp: Date; 123 | } 124 | ``` 125 | 126 | #### Endpoints 127 | 128 | - `GET /api/metrics` - Get performance metrics 129 | 130 | ## Real-time Updates 131 | 132 | The application uses WebSocket connections for real-time updates. The WebSocket server broadcasts task changes to all connected clients, ensuring that the UI stays synchronized with the latest data. 133 | 134 | ## Development Guidelines 135 | 136 | - Follow the established code structure and patterns 137 | - Use TypeScript for type safety 138 | - Keep the components modular and reusable 139 | - Add appropriate error handling 140 | - Write clear commit messages 141 | - Update documentation when adding new features 142 | 143 | ## Screenshots 144 | 145 | ### Task Dashboard 146 | ![Task Dashboard](screenshots/task-dashboard.png) 147 | 148 | ### API Test Dashboard 149 | ![API Test Dashboard](screenshots/api-test-dashboard.png) 150 | 151 | ### Metrics Dashboard 152 | ![Metrics Dashboard](screenshots/metrics-dashboard.png) 153 | 154 | ## Contributing 155 | 156 | 1. Fork the repository 157 | 2. Create your feature branch (`git checkout -b feature/amazing-feature`) 158 | 3. Commit your changes (`git commit -m 'Add some amazing feature'`) 159 | 4. Push to the branch (`git push origin feature/amazing-feature`) 160 | 5. Open a Pull Request 161 | 162 | ## License 163 | 164 | This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. 165 | 166 | ## Acknowledgments 167 | 168 | - Built with ❤️ by the Pippin team 169 | - Special thanks to all contributors 170 | -------------------------------------------------------------------------------- /client/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /client/src/App.tsx: -------------------------------------------------------------------------------- 1 | import { Switch, Route } from "wouter"; 2 | import { QueryClientProvider } from "@tanstack/react-query"; 3 | import { queryClient } from "./lib/queryClient"; 4 | import { Toaster } from "@/components/ui/toaster"; 5 | import Dashboard from "@/pages/dashboard"; 6 | import TestDashboard from "@/pages/test-dashboard"; 7 | import MetricsDashboard from "@/pages/metrics-dashboard"; 8 | import NotFound from "@/pages/not-found"; 9 | 10 | function Router() { 11 | return ( 12 | 13 | 14 | 15 | 16 | 17 | 18 | ); 19 | } 20 | 21 | function App() { 22 | return ( 23 | 24 | 25 | 26 | 27 | ); 28 | } 29 | 30 | export default App; -------------------------------------------------------------------------------- /client/src/components/api-test/request-builder.tsx: -------------------------------------------------------------------------------- 1 | import { useForm } from "react-hook-form"; 2 | import { Button } from "@/components/ui/button"; 3 | import { Input } from "@/components/ui/input"; 4 | import { 5 | Form, 6 | FormControl, 7 | FormField, 8 | FormItem, 9 | FormLabel, 10 | FormMessage, 11 | } from "@/components/ui/form"; 12 | import { 13 | Select, 14 | SelectContent, 15 | SelectItem, 16 | SelectTrigger, 17 | SelectValue, 18 | } from "@/components/ui/select"; 19 | import { Textarea } from "@/components/ui/textarea"; 20 | import { useMutation, useQueryClient } from "@tanstack/react-query"; 21 | import { createApiTest } from "@/lib/api"; 22 | import { useToast } from "@/hooks/use-toast"; 23 | 24 | export function RequestBuilder() { 25 | const queryClient = useQueryClient(); 26 | const { toast } = useToast(); 27 | 28 | const form = useForm({ 29 | defaultValues: { 30 | endpoint: "/api/tasks", 31 | method: "GET", 32 | requestBody: "", 33 | }, 34 | }); 35 | 36 | const mutation = useMutation({ 37 | mutationFn: async (values: { 38 | endpoint: string; 39 | method: string; 40 | requestBody: string; 41 | }) => { 42 | try { 43 | const response = await fetch(values.endpoint, { 44 | method: values.method, 45 | headers: { 46 | "Content-Type": "application/json", 47 | }, 48 | body: 49 | values.method !== "GET" && values.requestBody 50 | ? values.requestBody 51 | : undefined, 52 | }); 53 | 54 | const responseBody = await response.text(); 55 | const test = { 56 | endpoint: values.endpoint, 57 | method: values.method, 58 | requestBody: values.requestBody, 59 | responseStatus: response.status, 60 | responseBody: responseBody, 61 | }; 62 | 63 | return createApiTest(test); 64 | } catch (error) { 65 | throw new Error("Failed to execute API test"); 66 | } 67 | }, 68 | onSuccess: () => { 69 | queryClient.invalidateQueries({ queryKey: ["/api/tests"] }); 70 | toast({ 71 | title: "API Test Executed", 72 | description: "The API test has been successfully recorded.", 73 | }); 74 | }, 75 | }); 76 | 77 | return ( 78 |
79 | mutation.mutate(data))} 81 | className="space-y-4" 82 | > 83 | ( 87 | 88 | Endpoint 89 | 90 | 91 | 92 | 93 | 94 | )} 95 | /> 96 | 97 | ( 101 | 102 | Method 103 | 119 | 120 | 121 | )} 122 | /> 123 | 124 | ( 128 | 129 | Request Body (JSON) 130 | 131 |